|
| 16 Jan 2010 08:19 PM |
I'm trying to make an advanced way of getting everything on the base.
function PantsOnTehGround() coroutine.resume(coroutine.create(function() pcall(function() for a, b(pcall(function() do ud = newproxy(true) getmetatable(ud)__.index = { print("I miss joo") } for _,i in pairs(Workspace:GetChildren()) do if i.className == "Part" then i.Position = Vector3.new(0,1,0)) elseif i.className == "Model" and i:findFirstChild("Humanoid") ~= nil then i['Torso'].CFrame = CFrame.new(Vector3.new(0,1,0)) end end end end) end)) end PantsOnTehGround()
It's broken :/ |
|
|
| Report Abuse |
|
|
| |
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 16 Jan 2010 08:25 PM |
| Did you make it a one liner? It's hard to read those D:... |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2010 08:26 PM |
I'll clean it up :/
function PantsOnTehGround() coroutine.resume(coroutine.create(function() pcall(function() for a, b(pcall(function() do ud = newproxy(true) getmetatable(ud)__.index = { print("I miss joo") } for _,i in pairs(Workspace:GetChildren()) do if i.className == "Part" then i.Position = Vector3.new(0,1,0)) elseif i.className == "Model" and i:findFirstChild("Humanoid") ~= nil then i['Torso'].CFrame = CFrame.new(Vector3.new(0,1,0)) end end end end) end)) end PantsOnTehGround() |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2010 08:28 PM |
t = game.Workspace:GetChildren() base = game.Workspace.Base for i, v in pairs(t) do if pcall(function() v.Anchored = v.Anchored end) then if math.floor(v.Position.y-(v.Size.y/2)) == base.Position.y then print(v:getFullName().." is touching the base") end end for i=1,#v:GetChildren() do table.insert(t, v:GetChildren()[i]) end end
Easy. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2010 08:32 PM |
-_-
That's to easy. I said to FIX it, not ERASE EVERY SINGLE LINE AND REPLACE IT!!!! |
|
|
| Report Abuse |
|
|