Teleporter that requires a stat to go through wont work?. Please help.
Asked by
2 years ago Edited 2 years ago
I've been trying to find the problem for this script for a while now and I cant seem to fix it.
The script requires a certain amount of stats to go through and get teleported to the area but it just wont work.
Here it is:
01 | script.Parent.Touched:Connect( function (hit) |
02 | local human = hit.Parent:FindFirstChild( "Humanoid" ) |
04 | local plr = game.Players:GetPlayerFromCharacter(hit.Parent) |
06 | if plr.leaderstats.Teleport.Value > = 650 then |
07 | hit.Parent:MoveTo(script.Parent.Parent.Spawn 1. Position) |