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
 

Quick fix?

Previous Thread :: Next Thread 
AvilianHolder is not online. AvilianHolder
Joined: 29 Jul 2014
Total Posts: 619
05 Oct 2014 01:03 PM
while true do
wait()
if hostiles.Value == "1" and officials.Value == true then
wait(1)
script.Parent.Value = script.Parent.Value+2
else
script.Disabled = true
end
end

-----------------------------
The rest of the script works, it's just;
"if hostiles.Value == "1" and officials.Value == true then"
Won't work correctly for some odd reason, I'm pretty sure it's right as well.
Anybody?
Report Abuse
PlumJar is not online. PlumJar
Joined: 04 Mar 2012
Total Posts: 907
05 Oct 2014 01:14 PM
if this is the whole script, your problem is that u didnt define the variables

if you DID define the variables and this ISNT ur whole script, please post the whole script


Mewo.
Report Abuse
AvilianHolder is not online. AvilianHolder
Joined: 29 Jul 2014
Total Posts: 619
05 Oct 2014 01:14 PM
local raidSystem = workspace:WaitForChild("RaidSystem")
local officials, hostiles = raidSystem:WaitForChild("RaidOfficial"), raidSystem:WaitForChild("1")

while true do
wait()
if hostiles.Value == "1" and officials.Value == true then
wait(1)
script.Parent.Value = script.Parent.Value+2
else
script.Disabled = true
end
end
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
05 Oct 2014 01:25 PM
If hostiles is a NumberValue then you need to put 1 instead of "1".

Other than that, I don't know what would be wrong with the script.
Report Abuse
AvilianHolder is not online. AvilianHolder
Joined: 29 Jul 2014
Total Posts: 619
05 Oct 2014 01:26 PM
It's an IntValue.
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