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
 

ability to disable sections of scripts?

Previous Thread :: Next Thread 
NinjaboySC is not online. NinjaboySC
Joined: 17 Sep 2010
Total Posts: 5738
15 Aug 2014 11:29 AM
i was thinking that debounce might help
ill give you an example

if hit.Parent:findFirstChild("Humanoid") and script.Parent.HasBeenTouchedFor1st.Value == false then
a = hit.Parent.Name
game.Players[a]:findFirstChild("place").Value = 1
script.Parent.HasBeenTouchedFor1st.Value = true
end
end)
how would you disable this?
Report Abuse
Haschwalth is not online. Haschwalth
Joined: 30 Sep 2009
Total Posts: 24661
15 Aug 2014 11:32 AM
You really wouldn't disable it, but you could avoid it by setting a condition and placing that in the script.

if condition = false then
return end
if condition = true then
--place this here
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