generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: 'name' expected near '='

Previous Thread :: Next Thread 
milktea is not online. 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
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
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 is not online. 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
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
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
RobloxNewb01 is not online. RobloxNewb01
Joined: 16 Apr 2011
Total Posts: 348
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
shadowsoulforever is not online. shadowsoulforever
Joined: 28 Sep 2011
Total Posts: 635
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image