Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
|
| 30 Jun 2012 01:52 PM |
The following code is supposed to create a stringvalue for each part in the workspace detailing its classname, name, position, and size, but it doesn't work when I try it out.
function epic()
local a = game.Workspace:GetChildren() for i =1,#a do
if a[i].className == "Part" then local a2 = Instance.new("StringValue") a2.Value = a.className.." "..a.Name.." "..a.Size.X.." "..a.Size.Y.." "..a.Size.Z.." "..a.Position.X.." "..a.Position.Y.." "..a.Position.Z.." " a2.Parent = script a:remove() end
end
while true do epic() wait() end |
|
|
| Report Abuse |
|
|
Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
|
| 30 Jun 2012 03:48 PM |
| Does anyone know how to script? |
|
|
| Report Abuse |
|
|
Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
| |
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 03 Jul 2012 07:39 AM |
You better don't say that "Does anyone even know how to script?" if you make faults in your own script.
function epic()
local a = game.Workspace:GetChildren() for i =1,#a do
if a[i].className == "Part" then local a2 = Instance.new("StringValue") a2.Value = a[i].className.." "..a[i].Name.." "..a[i].Size.X.." "..a[i].Size.Y.." "..a[i].Size.Z.." "..a[i].Position.X.." "..a[i].Position.Y.." "..a[i].Position.Z.." " --You failed here? a2.Parent = script a[i]:remove() --Euhm.... huh? end
end
while true do epic() wait() end |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 03 Jul 2012 07:40 AM |
| As I read that I thought like "that guy means he's something better...". |
|
|
| Report Abuse |
|
|
Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
| |
|