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

Would this keycode down move cloud script be fine on a local script?

Asked by 5 years ago

I was wondering if this script, which moves my cloud, would be fine on a local script or not? Here is my script:

local player = game.Players.LocalPlayer

game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.W then
        workspace.Cloud.BodyVelocity.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector
    end
end)
0
why the hell don't you test it yourself User#24403 69 — 5y
0
do you know how LookVectors work? SurfedZ 36 — 5y
0
No. CaptainD_veloper 290 — 5y
0
It wouldn't work due to filtering enabled theking48989987 2147 — 5y

Answer this question