I'm trying to make a boat to move using Vector3 and there isn't very much info in regards to using NormalId. Is there a way to make this work or is there a better solution?
local UIS = game:GetService("UserInputService") local seat = script.Parent local gyro = seat.BodyGyro local pos = seat.BodyPosition local vel = seat.BodyVelocity local occupant = seat.Occupant local IsOccupied = false UIS.InputBegan:connect(function(input) if IsOccupied == true then if input.KeyCode == Enum.KeyCode.W then seat.Anchored = false vel.Velocity = Vector3.FromNormalId(Enum.NormalId.Front) -- These make it move very slowly elseif input.KeyCode == Enum.KeyCode.A then seat.Anchored = false vel.Velocity = Vector3.FromNormalId(Enum.NormalId.Left) elseif input.KeyCode == Enum.KeyCode.S then seat.Anchored = false vel.Velocity = Vector3.FromNormalId(Enum.NormalId.Back) elseif input.KeyCode == Enum.KeyCode.D then seat.Anchored = false vel.Velocity = Vector3.FromNormalId(Enum.NormalId.Right) end end end)
Thanks for the help!