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

compare a value in a player when touched?

Asked by 6 years ago

I am making a football game and I made it to were if you touch the inzone the touched event checks if the player is on a cartan team but for some reason it does not work it says the value is false

0
Post the script, what value is false? theCJarmy7 1293 — 6y
0
print("the") script.Parent.Touched:connect(function(hit) local thehit = hit.Parent:FindFirstChild("Humanoid") if thehit then if game.Players[hit.Parent.Name].Team == "Team Red" then print("you are in red team") end print("the end") end end tacobell158 10 — 6y

Answer this question