milktea
|
  |
| Joined: 31 Jan 2009 |
| Total Posts: 71 |
|
|
| 28 Jan 2012 06:19 AM |
local player = script.Parent.Parent.Parent.Parent function = (OnClick) for _,c in pairs(workspace:player()) do if c.ClassName == "Hat" then c.Handle.Transparency = 0
this is the script,just made there to make hats invisible,and all was well until that happend,help? |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2012 06:56 AM |
local player = script.Parent.Parent.Parent.Parent function OnClick() for _,c in pairs(workspace:GetChildren()) do f c:IsA("Hat") then c.Handle.Transparency = 0 end end
It's not easy being cheesy. I love Marilyn Mason,Sucicide Silence, and IWABO. Baseplate Maker Plugin here: http://www.roblox.com/Baseplate-maker-plugin-item?id=71012144 |
|
|
| Report Abuse |
|
|
milktea
|
  |
| Joined: 31 Jan 2009 |
| Total Posts: 71 |
|
|
| 28 Jan 2012 07:34 AM |
| Now it is Hat:4: '=' expected near 'c' hmmmmm.. |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2012 07:42 AM |
local player = script.Parent.Parent.Parent.Parent function OnClick() for _,c in pairs(workspace:GetChildren()) do if c:IsA("Hat") then c.Handle.Transparency = 0 end end
It's not easy being cheesy. I love Marilyn Mason,Sucicide Silence, and IWABO. Baseplate Maker Plugin here: http://www.roblox.com/Baseplate-maker-plugin-item?id=71012144 |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2012 08:07 AM |
^ ^ ^Dont forget 1 more end to end the function ^ >>>>>
~I used to script like a noob, but then I took a lua book to the head. |
|
|
| Report Abuse |
|
|
|
| 28 Jan 2012 08:10 AM |
local player = script.Parent.Parent.Parent.Parent function OnClick() for _,c in pairs(workspace:GetChildren()) do if c:IsA("Hat") then c.Handle.Transparency = 0 end end end
Here. |
|
|
| Report Abuse |
|
|