Answered by
6 years ago Edited 6 years ago
This is because you’re referencing to the Player Object, instead of the Character, your issue should easily be resolved by writing this in your Mouse Event.
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | local Character = workspace [ Playername ] |
3 | Character:MoveTo(Coordinates).p + Vector 3. new( 0 , 3 , 0 ) |
Hope this helps, don’t forget to accept and upvote! Something wrong? Comment!
I understand :MoveTo()
might be new to you, if you’d like to learn more, see this website