My first script
Key RequiredUniversal

My first script

Universal ScriptObungaObunga 100.2K views 8 executesUpdated Aug 9, 2024
5.0/ 5(3 votes)
30100% Positive
Lua Script•18 lines (622 chars)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.Parent = humanoidRootPart

local speed = 30

UserInputService.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.Space then
        bodyVelocity.Velocity = Vector3.new(0, speed, 0)
    end
end)

Features & Information

[Test]

Community Comments (2)

Thestrongestman0080Thestrongestman0080Aug 9, 2024(edited)

Put it into loadstring

OrealatedOrealatedAug 10, 2024(edited)

People: put into loadstring Scriptblox: CLICK THE VIEW RAW

More Scripts for Universal Scripts