How do i make a player teleport where their mouse is? [closed]
Im trying to make a script that teleports a player at a limited distance, but my script is not working very well. I am completely baffled on how to go about making a limit distance that the player can go ;-;
1 | tool = script.Parent.Parent.Parent |
2 | player = tool.Parent.Parent |
4 | mouse = player:GetMouse() |
5 | Dash.OnServerEvent:connect( function (player, mousehit) |
6 | local torso = player.Character:findFirstChild( "UpperTorso" ) |
7 | torso.CFrame = CFrame.new(Vector 3. new(mousehit)) |
Marked as Duplicate by cabbler, pluginfactory, User#5423, abnotaddable, and Goulstem
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?