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: Will this script work?

Previous Thread :: Next Thread 
HumpBot is not online. HumpBot
Joined: 11 May 2015
Total Posts: 31
03 Jun 2015 05:15 PM
local hump = game.workspace.hump.value

while true do
hump = true
wait(1)
hump = false
wait(1)
end
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
03 Jun 2015 05:18 PM
here's a better version:

local hump = workspace:FindFirstChild('hump').value
while wait(1) do
hump = not hump
end
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
03 Jun 2015 05:20 PM
here's an even better version

assuming that you want to change workspace.hump's value

local hump = workspace:WaitForChild('hump')
while wait(1) do
hump.Value = not hump.Value
end
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
03 Jun 2015 05:30 PM
here's a shorter version:

hump=workspace.hump.value;while wait(1) do hump=not hump end
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
03 Jun 2015 06:04 PM
hump=workspace.hump.Value for i=1,0 do hump=not hump end
Report Abuse
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
03 Jun 2015 06:05 PM
value should be Value.
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