Workspace.VIP.VIPDoorScript:7: attempt to index global 'Players' (a nil value)
Thats what it says in the output.
VIP = game.Workspace.VIP
TShirt = game.Workspace.TShirt
ID = TShirt.Graphic
function onTouched(hit)
if Players.TShirt.ID == "http://www.roblox.com/The-Games-VIP-T-shirt-item?id=154826128" then
VIP.Transparency = 1
VIP.CanCollide = false
wait(2)
VIP.Transparency = 0
VIP.CanCollide = true
else
if Players.TShirt.ID ~= "http://www.roblox.com/The-Games-VIP-T-shirt-item?id=154826128" then
game.Workspace.Players:GetPlayers("Humanoid")
Players.Humanoid.Health = 0
end
end
end
script.Parent.Touched:connect(onTouched)
I don't see whats the problem? Why?

1 comment
Ahh! Thanks!