HEAT507
|
  |
| Joined: 31 Aug 2012 |
| Total Posts: 429 |
|
|
| 02 Apr 2013 07:52 PM |
ok look I know how but like I dont want to disable animate :/ can somone help out? |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Apr 2013 07:56 PM |
"Disable animate"
game.Players["Player"].Character.Animate.Disabled = true
... e-e is that really impossible?
~ Moo logic = logical logic ~ |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 07:57 PM |
| Are you talking about using ScriptsDisabled? |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 02 Apr 2013 08:23 PM |
| Create a recursive function that finds every object with the class Script and then set the Disabled property to true. Add in a condition to check for any script name you don't want to disable.I don't see why you would need to disable scripts on a scale like that unless you were exploiting, though. In Studio, you can just toggle off any Scripts you don't want to be running by clicking on the Disabled checkbox in the properties tab. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 08:51 PM |
@Solo do you know HEAT at all...?
~ Moo logic = logical logic ~ |
|
|
| Report Abuse |
|
|
Maradar
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 4478 |
|
|
| 02 Apr 2013 08:53 PM |
@18cwatford who?
@OP Assuming your model is a person, game.Workspace.[person model's name goes here].Animate.Disabled = true end) -- end the post here |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 08:55 PM |
Ohhhh, he doesn't want animate disabled. Aslo maradar, the following would error;
game.Workspace.18cwatford.Animate.Disabled = true
And for heat, cause I have nothing rather to do
function c(o) if o:IsA("BaseScript") and o.Name:lower() ~= "Animate" then o.Disabled = true end for i,v in pairs(o:GetChildren()) do c(v) end end
c(game)
~ Moo logic = logical logic ~ |
|
|
| Report Abuse |
|
|
Maradar
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 4478 |
|
|
| 02 Apr 2013 09:01 PM |
@18cwatford Once again, 2-3 days later, bad at Lua. I'm more in the web engineering world at the moment until maybe September of this year, maybe, where I'll actually learn programming. So, meh.
end) -- end the post here |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 09:04 PM |
Your script was fine, unless you're using it one someone wit a name like mine.
~ Moo logic = logical logic ~ |
|
|
| Report Abuse |
|
|
HEAT507
|
  |
| Joined: 31 Aug 2012 |
| Total Posts: 429 |
|
|
| 02 Apr 2013 09:14 PM |
ok leme fix this up I DONT WANT TO DISABLE ANIMATION Just new scripts that get created local/serversided
|
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
| |
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 02 Apr 2013 09:21 PM |
"ok leme fix this up I DONT WANT TO DISABLE ANIMATION Just new scripts that get created local/serversided"
You could use DescendantAdded and then check to see if something added is a script, and, if so, disable it. I doubt that is the best way though, especially if you would need to go and do so for all of the parts/models/other items in the game as well. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 09:27 PM |
| So basically he wants what I said, but he does not want it to disable animate, Idk if an if statement would work |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
| |
|
| |
|
|
| 02 Apr 2013 10:22 PM |
for _, descendant in next, get_descendants(Workspace) do if descendant:IsA('BaseScript') and descendant.Name ~= 'Animate' then descendant.Disabled = true end end |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 10:22 PM |
local Services = {Game.Players; Workspace; Game.StarterPack; Game.StarterGui; Game.Lighting } for i,v in pairs(Services)do v.DescendantAdded:connect(function(Obj) if Obj:IsA("LocalScript")or Obj:IsA("Script")then if Obj.Name == "Animate" then return end pcall(function()Obj.Disabled = true end) end end)end |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 10:25 PM |
| Not sure why you people would bother using DescendantAdded. If you disable all the scripts, I don't see how new scripts could be inserted. If they're inserted because of a script you didn't disable, then you didn't disable all the scripts anyway. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 10:26 PM |
| ^ That's what he wanted,isn't it? |
|
|
| Report Abuse |
|
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 02 Apr 2013 11:12 PM |
| He wants this so he can disable localscripts that would prevent him from exploiting. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
bob3joe
|
  |
| Joined: 01 Aug 2009 |
| Total Posts: 1147 |
|
|
| 03 Apr 2013 10:46 AM |
Hippo = 1 if Hippo == 1: print('There seems to be a hippo infestation') Identity = 2 if Identity = 2 print('April 1st 2013 was an inside job')
http://www.roblox.com/Forum/ShowPost.aspx?PostID=93727387 |
|
|
| Report Abuse |
|
|
bob3joe
|
  |
| Joined: 01 Aug 2009 |
| Total Posts: 1147 |
|
|
| 03 Apr 2013 10:48 AM |
| I messed that up ^^ suppose to be two == where if Identity = 2 |
|
|
| Report Abuse |
|
|