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
 

Not Invoking Properly?

Previous Thread :: Next Thread 
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:00 PM
I've used Bindable Functions before with no problem so why is this different? So this code is in a script in workspace

Game.Workspace:FindFirstChild("PlayerDied").OnInvoke = function(plr)
if plr.TeamColor == script.BrickColor1.Value then
removeprop(plr)
elseif plr.TeamColor == script.BrickColor2.Value then
removehunter(plr)
end
end


and this code is in StarterGui


script.Parent.Parent.Character:FindFirstChild("Humanoid").Died:connect(function()
Game.Workspace:FindFirstChild("PlayerDied"):Invoke(script.Parent.Parent)
end)


Is there any obvious problems with the code?
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:08 PM
Bump
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:30 PM
Anyone...?
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
01 Mar 2014 01:32 PM
I don't think that's how you use it
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:32 PM
What do you mean?
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:38 PM
Hey guys if you could actually reply to my forum... yeah.. that'd be great...
Report Abuse
acecateer is not online. acecateer
Joined: 05 Nov 2011
Total Posts: 128
01 Mar 2014 01:44 PM
Hey, someone help zack out. :P
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:50 PM
IS ANYONE EVEN READING THIS? JESUS
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
01 Mar 2014 01:51 PM
...?
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
01 Mar 2014 01:55 PM
Other than you no one is willing to reply, and you are not explaining what you mean so it is not helpful.
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