of     1   

EpicGoldFox
#140810695Saturday, July 19, 2014 3:16 AM GMT

It doesn't work and I'm not that skilled in Lua. Here's what I put: function change.part.color part.BrickColor = BrickColor.random() end
EpicGoldFox
#140810865Saturday, July 19, 2014 3:18 AM GMT

Please!!!
MHebes
#140813053Saturday, July 19, 2014 3:41 AM GMT

So first things first: don't put periods in function names - you'll learn when that's appropriate latter on in your scripting career. For now, it will throw an error. Also, functions need parentheses () after their name. Your middle section "part.BrickColor = BrickColor.random()" is right, except for one thing: you never told us what 'part' was. Maybe you were trying with "function change.part.color", but that's incorrect. If you want a function to be versatile, so you can use it with different parts, you can use an "argument", which goes inside the parentheses next to its name (as I said you needed above) function ChangeColor(part) -- notice the new, no-"." name, with ()s with a variable in them part.BrickColor = BrickColor.random() -- we'll figure out what part is when we call the function end So the function is defined, but you need to run it! Don't forget to tell it what `part` is! function ChangeColor(part) part.BrickColor = BrickColor.random() end ChangeColor(Workspace.Part) -- Notice how the function is called, with parentheses and we tell it what `part` is inside of them. This concludes your lua lesson for today :)
EpicGoldFox
#140883416Saturday, July 19, 2014 10:09 PM GMT

Thank you.

    of     1