| |
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 08 Sep 2015 01:18 PM |
You can't 'unlock workspace'. The hell you mean?
You can do this though. WS = game.Workspace:GetChildren() for i = 1, #WS do if WS[i].ClassName == "Part" then WS[i].Unlocked = true end end
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 08 Sep 2015 01:21 PM |
Script correction:
WS = game.Workspace:GetChildren()
for i = 1, #WS do if WS[i]:IsA'Part' then WS[i].Unlocked = true end end
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 08 Sep 2015 01:22 PM |
| Unlocked is not a property... it's Locked. |
|
|
| Report Abuse |
|
|
coplox
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 3252 |
|
|
| 08 Sep 2015 01:27 PM |
| Sorry, what's kohl's? Is it an admin script or a weapons system or what? |
|
|
| Report Abuse |
|
|
| |
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 08 Sep 2015 01:31 PM |
Oh yes, that's right. I'm just tired currently.
One last time correcting it:
WS = game.Workspace:GetChildren() for _,c in pairs(game.Workspace:GetChildren()) do for i = 1, #WS do if WS[i]:IsA'Part' then WS.Locked = true end end if game.Workspace.Changed and game.Workspace.ChildAdded do for _,p in pairs(game.Workspace:GetChildren()) do for i = 1, #WS do if WS[i]:IsA'Part' then WS.Locked = true end end end end end
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
|
| 08 Sep 2015 01:46 PM |
| Ooh I'm sorry guys, I mean't to say How do I locked = false my workspace. Makes more sense in english you know? |
|
|
| Report Abuse |
|
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 08 Sep 2015 04:46 PM |
Just use this, it locks everything.
WS = game.Workspace:GetChildren() for _,c in pairs(game.Workspace:GetChildren()) do for i = 1, #WS do if WS[i]:IsA'Part' then WS.Locked = true end end if game.Workspace.Changed and game.Workspace.ChildAdded do for _,p in pairs(game.Workspace:GetChildren()) do for i = 1, #WS do if WS[i]:IsA'Part' then WS.Locked = true end end end end end
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|