Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Im trying to make a fast travel gui but it wont work i need help?

Asked by 5 years ago
Edited 5 years ago

Im trying to make a fast travel gui for my game but when i click the teleport button it wont work

script.Parent.MouseButtonClick:connect(function() game.Players.LocalPlayer.character.LowerTorso.CFrame = CFrame.new(workspace.Point.Position) end)

1 answer

Log in to vote
0
Answered by 5 years ago
local Players = game:GetService("Players")
local button = script.Parent

function Click()
 Players.LocalPlayer.character.HumanoidRootPart.CFrame = CFrame.new(0, 0, 0) 
end
script.Parent.MouseButton1Down:connect(Click)
Ad

Answer this question