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
 

Re: Not sure if this will work...

Previous Thread :: Next Thread 
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
25 Aug 2013 02:40 PM
timer = script.Parent.CapTime
start = 60
capturing = script.Parent.Cap

function onTouch(part)
if part.Name == "BlueZone" then
capturing.Value = true
else
capturing.Value = false
end
end

if capturing.Value == true then
repeat
timer.Value = timer.Value - 1
wait(1)
until timer.Value == 1
end

if capturing.Value == false then
timer.Value = start
end

if timer.Value == 1 then
script.Parent.Name = "AReady"
end

script.Parent.Touched:connect(onTouch)

I'm novice at writing my own scripts from scratch.
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
25 Aug 2013 06:55 PM
Bump
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
25 Aug 2013 08:02 PM
Please help!
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
26 Aug 2013 06:49 AM
Anyone find a solution?
Report Abuse
adam1717 is not online. adam1717
Joined: 07 May 2011
Total Posts: 960
26 Aug 2013 07:21 AM
well what is the script for?
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
26 Aug 2013 07:42 AM
timer = script.Parent.CapTime
start = 60
capturing = script.Parent.Cap

function onTouch(part)
if part.Name == "BlueZone" then -- Assuming you want a human to touch it there leg or what ever won't be called this
capturing.Value = true
else
capturing.Value = false
end -- You don't need two for one if statement unless you are ending the function there

if capturing.Value == true then
repeat
timer.Value = timer.Value - 1
wait(1)
until timer.Value == 1
end

if capturing.Value == false then
timer.Value = start
end

if timer.Value == 1 then
script.Parent.Name = "AReady"
end

script.Parent.Touched:connect(onTouch)

Other wise I think this is good :/
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
26 Aug 2013 08:05 AM
It's not working...
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
26 Aug 2013 10:54 AM
It's a timer system. I need it to stop if it's not touching "BlueZone", And change the Part's name. From there a script within "BlueZone" will accept it.
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
26 Aug 2013 04:30 PM
Can anyone help?
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