What I am trying to do is aim the part at Mouse.UnitRay.Direction but it aims randomly into the ground and doesnt aim to my real unitray.Direction why is this?
Here is the code i used :
local oldDir = Mouse.UnitRay.Direction
game:GetService("RunService").RenderStepped:connect(function()
weld1.C1 = CFrame.new(Player.Character.Head.CFrame.p,oldDir):toObjectSpace(Player.Character.Torso.CFrame)
oldDir = Mouse.UnitRay.Direction
end)

1 comment
thanks :D