I am confused about how I would go about rotating a part in local space. I want it to rotate local to its current rotation. If I can do so with body movers and without using a loop then I would love that. I am currently using UserInput to fire the rotation inside of a function as seen below.
local Config = require(script.Parent.ShipSeat.Configuration)
game.ReplicatedStorage.KeyDownEvent.OnServerEvent:connect(function(player,key)
if player.Name == script.Parent.ShipSeat.ShipOwner.Value then
if key == Config.keyconfig.Forward then
elseif key == Config.keyconfig.Incline then
elseif key == Config.keyconfig.RotLeft then
end
end
end)
game.ReplicatedStorage.KeyUpEvent.OnServerEvent:connect(function(player,key)
if player.Name == script.Parent.ShipSeat.ShipOwner.Value then
if key == Config.keyconfig.Forward then
elseif key == Config.keyconfig.Incline then
elseif key == Config.keyconfig.RotLeft then
elseif key == Config.keyconfig.RotRight then
end
end
end)
whoever answers my question..Thanks in advance. :D

1 comment
Explain your answer in English. Don't just post code; this doesn't help the poster or the community understand why the code does what it does.