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
