I have a game where you can click different checkpoints in a GUI to teleport throughout the map, However; it keeps teleporting players on top of roofs, etc.
I have read about CFRAME's but cannot get it to work properly.
Please help!
local self = script.Parent;
local Player = game.Players.LocalPlayer;
local Character = Player.Character or Player.CharacterAdded:wait();
self.MouseButton1Down:connect(function()
Character:MoveTo(Vector3.new(42.913, 37.644, -119.341));
end)
Thank You.

1 comment
Also might wanna make a few changes when you do make this a script, like not reffering to localplayer.