could somone point out what is causing this button to not telelport?
01 | local reqLevel = 1 |
02 | local player = game.Players:WaitForChild( "LocalPlayer" ) |
03 | local pos = CFrame.new() |
04 | local Tele = game.StarterGui.Telebook:WaitForChild( "tele2" ) |
05 |
06 | script.Parent.MouseButton 1 Down:connect( function () |
07 | if player.leaderstats.Lvl.Value > = reqLevel then |
08 | player.Character:MoveTo(Vector 3. new( 408.486 , 378.5 , - 415.248 )) |
09 | end |
10 | end ) |
01 | local reqLevel = 1 |
02 | local player = game.Players.LocalPlayer |
03 | --local pos = CFrame.new() -- what's this? |
04 | --local Tele = game.StarterGui.Telebook:WaitForChild("tele2") -- not sure why you're waiting for something in startergui. Is this meant to be playergui? |
05 | local Tele = player.PlayerGui.Telebook:WaitForChild( "tele2" ) |
06 |
07 | script.Parent.MouseButton 1 Down:connect( function () |
08 | if player.leaderstats.Lvl.Value > = reqLevel and player.Character then |
09 | player.Character:MoveTo(Vector 3. new( 408.486 , 378.5 , - 415.248 )) |
10 | end |
11 | end ) |