could somone point out what is causing this button to not telelport?
local reqLevel = 1 local player = game.Players:WaitForChild("LocalPlayer") local pos = CFrame.new() local Tele = game.StarterGui.Telebook:WaitForChild("tele2") script.Parent.MouseButton1Down:connect(function() if player.leaderstats.Lvl.Value >= reqLevel then player.Character:MoveTo(Vector3.new(408.486, 378.5, -415.248)) end end)
local reqLevel = 1 local player = game.Players.LocalPlayer --local pos = CFrame.new() -- what's this? --local Tele = game.StarterGui.Telebook:WaitForChild("tele2") -- not sure why you're waiting for something in startergui. Is this meant to be playergui? local Tele = player.PlayerGui.Telebook:WaitForChild("tele2") script.Parent.MouseButton1Down:connect(function() if player.leaderstats.Lvl.Value >= reqLevel and player.Character then player.Character:MoveTo(Vector3.new(408.486, 378.5, -415.248)) end end)