I've already asked this but the only answer I got was "Your script could be a lot simpler", so I'm asking it again (with an updated script).
You're supposed to get 1 coin for touching this coin, but you can't get it again. In a Script (Normal):
(EDITED SCRIPT)
game.Players.PlayerAdded:connect(function(player)
got = false
print("SET UP GOT VARIABLE")
script.Parent.Touched:connect(function(part)
if part.Parent.findFirstChild("Torso") ~= nil then
print("PLAYER TOUCHED IT")
if got == false then
_G.Coins = _G.Coins + 1
got = true
print("PLAYER DOESN'T HAVE YET! GAVE PLAYER 1 COIN")
part.Parent.Torso.CFrame = CFrame.new(Vector3.new(-16.1, 3, -219))
end
print("ENDING PLAYER CHECK")
end
print("ENDING SCRIPT!")
end)
end)
Why doesn't it work? It doesn't even print the messages!

6 comments
Oh. Thanks. I don't know that much about LocalScripts. Also, I love your games Nexx!
Edited it... Still doesn't work...
Anything?
...
Nevermind! I solved the problem!
Sorry! Rarely got on here! Would of helped out if I was.