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: More efficient system.

Previous Thread :: Next Thread 
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
11 Jun 2015 08:48 PM
game.Players.PlayerAdded:connect(function(player)
local item = script.Parent.Parent:FindFirstChild("LOCKED")
getItem = nil
script.Parent.AddPointsScript.Disabled = false
end



SO I got this and how do I make the script check every second for the "LOCKED" thingy without stopping?


"There's candy in the white van kids!"
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
11 Jun 2015 11:38 PM
bumpd



"There's candy in the white van kids!"
Report Abuse
01000100010000010 is not online. 01000100010000010
Joined: 23 Nov 2014
Total Posts: 35
11 Jun 2015 11:41 PM
game.Players.PlayerAdded:connect(function(player)
for i=1, math.huge do
local item = script.Parent.Parent:FindFirstChild("LOCKED")
getItem = nil
script.Parent.AddPointsScript.Disabled = false
end
wait(1)
end

I have skin, potatoes have skin, therefore I'm a potato.
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
17 Jun 2015 02:35 AM
doesn't work do i put it in local or regular script


There's candy in the white van kids!
Report Abuse
ImperialOutcast is not online. ImperialOutcast
Joined: 24 Nov 2009
Total Posts: 12054
17 Jun 2015 02:52 AM
Just used child added?
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
17 Jun 2015 03:26 AM
I did that already. But this script is for two things. so that wouldn't work


There's candy in the white van kids!
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
27 Jun 2015 01:53 AM
bump


"There's candy in the white van kids!"
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
29 Jun 2015 01:26 AM

bumpwump

"There's candy in the white van kids!"
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
29 Jun 2015 01:30 AM
I'm pretty sure ChildAdded can handle two things.
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
29 Jun 2015 01:38 AM
I know but I want it to update like that.

And that was the first thing i did and it didn't work.


"There's candy in the white van kids!"
Report Abuse
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
09 Jul 2015 01:41 AM
BUMp


"There's candy in the white van kids!"
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
11 Jul 2015 11:21 PM
""
game.Players.PlayerAdded:connect(function(player)
local item = script.Parent.Parent:FindFirstChild("LOCKED")
getItem = nil
script.Parent.AddPointsScript.Disabled = false
end

SO I got this and how do I make the script check every second for the "LOCKED" thingy without stopping?
""

game.Players.PlayerAdded:connect(function(player)
script.Parent.Parent.ChildAdded:connect(function(added)
if added.Name=='LOCKED' then
getItem = nil
script.Parent.AddPointsScript.Disabled = false
end
end)
end)

or

game.Players.PlayerAdded:connect(function(player)
local item=script.Parent.Parent:FindFirstChild("LOCKED")
repeat wait(1) until item
getItem = nil
script.Parent.AddPointsScript.Disabled = false
end
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