|
| 28 Oct 2012 12:13 PM |
So when I was testing my game, I got the other teams flag, and walked over my flag base on my teams side. When I captured their flag, it removed the flag in my inventory, but it didn't regen the other teams flag. I know this is not much of a scripting, more a building question. Any help? This is the script in the FlagPost that removes the flag out of the players inventory:
script.Parent.Touched:connect(function(hit) pcall(function() player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then player.Character["Blue Flag"]:Destroy() player.leaderstats.Captures.Value = player.leaderstats.Captures.Value + 1 end end) end) |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 12:19 PM |
I don't know how the ctf flags work in ROBLOX, but is it suppose to automatically regen the flags? I just made my own flag system, a lot easier to use, though probably inefficient coding on my part.
¤ ¤ †KMXD† ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 12:22 PM |
| The flags did regen when I first made the game, but now they don't. It's really strange. The teams and flags are the same TeamColor. I don't know why it's breaking. Maybe I'll reinsert them. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 12:37 PM |
| So apparently, the CTF Flags can't be in models. If they are, they will not regenerate. Weird. |
|
|
| Report Abuse |
|
|