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 » Scripters
Home Search
 

Re: How To Make This:

Previous Thread :: Next Thread 
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Aug 2015 04:55 PM
function MyGame:SetUpFlagConnections()
for _, child in pairs(game.Workspace:GetChildren()) do
if child and child:FindFirstChild('FlagScript') then
local captureEvent = child.FlagScript:FindFirstChild('FlagCaptured')
if captureEvent then
captureEvent.Event:connect(function(player)
if not MyGame:RoundOver() then
MyGame.IncreasePlayerScore:Invoke(player, 'Captures', 1)
MyGame.IncreaseTeamScore:Invoke(player, 1)
MyGame:RoundOver()
end
end)
else
print("event missing from flag script")
end
end
end
end



Above is the script [Part of it] how can I make it so that when a player [on a team etc: red or blue] when they score that it adds + 1 to the main gui but it has to be so that it goes to their team so: RedScoreGui or BlueScoreGui
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Aug 2015 05:02 PM
bump :/
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Aug 2015 05:40 PM
:(
Report Abuse
igunaa is not online. igunaa
Joined: 15 Sep 2010
Total Posts: 2588
02 Aug 2015 05:43 PM
Since you`re using CustomEvents it gets hard to tell.


Said the wise.
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Aug 2015 05:45 PM
I just need a function so that when it gets captured that it adds +1 to the team that captured it...
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
02 Aug 2015 05:50 PM
^
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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