so ive got an RPG and part of my GUI is a teleport book, you press a button it opens the book and you get a list of teleports with buttons next to them.....when you click a button it sends you there.....
my script works fine when test running in studio but does nothing online, any ideas why it would do this?
here is the script the button runs
local reqLevel >= 1
local player = game.Players.LocalPlayer
local pos = CFrame.new()
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)
i did not write this script fully, i took a telelport script and added the level req, so plz if something is written wrong point it out so i can fix it :P
