At the moment, you have to press the "W" key each time to move one stud, however. I want it so if you hold the W key down, the part will keep going forward until the key is not being held anymore. Any ideas on how to fix this?
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
local UserInputService = game:GetService("UserInputService")
local LetterW = Enum.KeyCode.W
local function IsLetterDown()
return UserInputService:IsKeyDown(LetterW)
end
local function Input(input, gameProcessedEvent)
if not IsLetterDown() then
wait(1)
else
if FreeCam == true then -- The variables for FreeCam are already set.
game.Workspace.Camera.Blobby.Position = Vector3.new(game.Workspace.Camera.Blobby.Position.X+1, game.Workspace.Camera.Blobby.Position.Y, game.Workspace.Camera.Blobby.Position.Z)
end
end
end
Thank you.

3 comments
Sorry but this didn't quite work.
How did it not work? I have tested it in Studio and it did work.
anybody reading this?