Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my brick not move when I press a button on my keyboard?

Asked by
Cowgato 33
2 years ago
local distance = 5
local userinputservice = game:GetService("UserInputService")


userinputservice.InputBegan:Connect(function(input, gameProcessedEvent)
    while true do
        for i = 0, distance do
            script.Parent.CFrame = script.Parent.CFrame+Vector3.new(0,0,1) -- Change To Your Parts X, Y, Or Z Direction
            wait()
        end
        wait(2)
        script.Parent:Destroy()
    end

end)

0
Where is this script located? Kingu_Criminal 205 — 2y

Answer this question