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: script.Disabled doesn't disable script?

Previous Thread :: Next Thread 
Poine is not online. Poine
Joined: 14 Aug 2011
Total Posts: 391
07 Aug 2016 06:40 AM
for i,v in pairs(game.Workspace.CurMap:GetChildren()) do
if v:FindFirstChild("dominationPoints") then
print("Map is Domination Compatible")
else
send("ERROR: This map is not compatible with the gamemode 'Domination'.Map loaded without any gamemodes.","error")
print "error"
script.Disabled = true
end
end


Prints "error" , doesn't disable script.
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
07 Aug 2016 06:42 AM
--try this:
local clone = script:clone()
clone.disabled = true
clone.parent = script.Parent; wait()
script:destroy()
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Aug 2016 06:45 AM
After script.Disabled = true put "break".


Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
07 Aug 2016 06:46 AM
^^^
Maybe even try i,v in next ,(game.Workspace.CurMap:GetChildren()) do
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Aug 2016 06:49 AM
That is totally unrelated though. He is pretty much doing that already anyways.


Report Abuse
Poine is not online. Poine
Joined: 14 Aug 2011
Total Posts: 391
07 Aug 2016 06:52 AM
Ok guys I did this

local x = script:Clone()
x.Disabled = true
x.Parent = script.Parent
script:Destroy()


and worked

ty
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