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: issue with remote event

Previous Thread :: Next Thread 
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Feb 2016 10:19 AM
local checkIfActive = game.ReplicatedStorage.CheckIfOreActive
checkIfActive.OnServerEvent:connect(function(player,part)
if part.Active.Value == true then return nil
else
part.Active.Value = true
game.ReplicatedStorage.OreIsGood:InvokeClient(player)
end
end)

if the 3rd line is true it won't work ever again

also, it will work on any brick until I try it on one that has the "Active" value set to true

I guess what I need is a way for it not to invoke the client if nil without breaking it


#Code print("Narwhals are our future")
Report Abuse
Csharp0 is not online. Csharp0
Joined: 05 Mar 2015
Total Posts: 261
06 Feb 2016 10:24 AM
Post any console errors?
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Feb 2016 10:26 AM
"Post any console errors?"

none

the event basically won't fire again if Active == true


#Code print("Narwhals are our future")
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Feb 2016 10:40 AM
.


#Code print("Narwhals are our future")
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
06 Feb 2016 11:13 AM
did it a diff way and solved my problem


#Code print("Narwhals are our future")
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
06 Feb 2016 11:39 AM
"if part.Active.Value == true then return nil
else"

if part.Active.Value ~= true then



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