I'm trying to move a model to anywhere where the part is using rays but not float in the sky.
I want the model to go on top of the parts by sending a ray from the mouse but it isn't doing that,instead it just stays in one position,why?
How would I fix this?
Player = game.Players.LocalPlayer Part = game.ServerStorage.Part Mouse = Player:GetMouse() ClonedPart = Part:Clone() ClonedPart.Parent = game.Workspace Mouse.Move:connect(function() ClonedPart:MoveTo(Mouse.UnitRay.Direction)--Tried using Mouse.Hit.p but it made the part float in certain spots end) Mouse.Button1Down:connect(function() NewPart = ClonedPart:Clone() NewPart.Parent = game.Workspace end)