| |
|
tifpoo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 16 |
|
|
| 29 Jul 2014 11:55 PM |
| Don't feel like typing on but really you just anchor the torso |
|
|
| Report Abuse |
|
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 29 Jul 2014 11:58 PM |
function changeProp(o, p, c) for _, v in pairs (o:GetChildren()) do pcall(function() v[p] = c end) changeProp(v, p, c) end end
changeProp(Game.Players.Player1.Character, "Anchored", true) |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2014 11:59 PM |
| Way to make it more difficult when I did it with one line |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 30 Jul 2014 12:00 AM |
Mine will anchor every part in them, and every part inside those parts (Hats and such) and every part in those and in those and so on
Also can be used for other things than anchoring
function changeProp(o, p, c) for _, v in pairs (o:GetChildren()) do pcall(function() v[p] = c ebd) changeProp(v, p, c) end end
changeProp(Workspace, "BrickColor", BrickColor.new("Bright blue"))
Now the whole workspace is blue. |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2014 12:10 AM |
player.Character.Anchored = true
Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding. |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2014 12:11 AM |
oops, hold on.
player.Character.Torso.Anchored = true
Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding. |
|
|
| Report Abuse |
|
|