I'm trying to make arms that tilt in the direction the mouse is pointing. I have tried both Weld and Motor6D but none replicates in FE. My guess would be to create a ROBLOX animation and then position the time that corresponds to the mouse's Y axis.
Use trig.
01 | local char = player.Character |
02 | local mouse = player:GetMouse() |
03 | local rus = game:GetService( "RunService" ) |
04 |
05 | local c = workspace.CurrentCamera |
06 |
07 | local rp = c.CameraFocus.RootPart |
08 |
09 | rus.RenderStepped:Connect( function () |
10 | local vec = (mouse.Position-rp.Position).unit |
11 | local pitch = math.atan 2 (vec.Y, vec.Z) --< If it's opposite change this to vec.Z, vec.Y |
12 | --send pitch to server and do arm lifting there |
13 | end ) |