So, I am trying to make a boat move, but.. It doesn't, I used a Vehicle seat and it still didn't work. I used rotors but I don't have control over them. any ideas?
Hi mix,
local keys = { ["W"] = true; ["A"] = true; ["S"] = true; ["D"] = true; } local uis = game:GetService("UserInputService"); uis.InputBegan:Connect(function(input, gp) if keys[input.KeyCode.Name] and not gp then --[[ input is the key that was pressed and gp is a boolean that is true if the key was pressed while the person was typing(as in chat or something). So, you need to check that it's not gp if you don't want the function to activate while they're typing. --]] -- Blah blah blah. Do whatever you want, from here on it's WASD territory. end end)
Thanks,
Best regards,
~~ KingLoneCat