generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Flags don't regen when captured.

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image