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

Whats wrong with this Teleport Script?

Asked by 9 years ago

local lvl = script.Parent.Parent.Level.Value function onTouch(hit) local p = game.Players.localplayer if p~=nil and p.leaderstats.Lvl.Value>=lvl then wait(0.1) p:FindFirstChild("Torso").CFrame = CFrame.new(script.Parent.Parent.Teleport1.Position) end end script.Parent.Touched:connect(onTouch)

This is a local script. I feel like im missing something really silly. Any help? no errors

Answer this question