of     1   

refig334
#36719591Monday, November 08, 2010 8:28 PM GMT

When I do script.Parent do I capitalize the S like... Script.Parent.... or script.Parent Answer fast!
crazypotato4
#36719613Monday, November 08, 2010 8:29 PM GMT

lowercase s. script.Parent But you MIGHT be allowed to use upper-case. I'm not sure.
ninga95
#36719627Monday, November 08, 2010 8:29 PM GMT

Just script.Parent
ninga95
#36719666Monday, November 08, 2010 8:30 PM GMT

Beat me to it lol 'Floodcheck is annoying.."
refig334
#36719722Monday, November 08, 2010 8:31 PM GMT

then what's wrong with my script? It wont work vip = game.Players.refig344 function onChatted(msg) if msg == "Blue" then script.Parent.BrickColor = BrickColor.new("Cyan") elseif msg == "Red" then script.Parent.BrickColor = BrickColor.new("Really red") elseif msg == "Pink" then script.Parent.BrickColor = BrickColor.new("Pink") elseif msg == "Purple" then script.Parent.BrickColor = BrickColor.new("Bright violet") elseif msg == "Green" then script.Parent.BrickColor = BrickColor.new("Bright green") elseif msg == "Orange" then script.Parent.BrickColor = BrickColor.new("Deep orange") elseif msg == "Yellow" then script.Parent.BrickColor = BrickColor.new("New Yeller") elseif msg == "Normal" then script.Parent.BrickColor = BrickColor.new("Medium stone grey") elseif msg == "White" then script.Parent.BrickColor = BrickColor.new("Institutional white") end end vip.Chatted:connect(onChatted) ~~~~~~~~~ The parent is a brick.
crazypotato4
#36719842Monday, November 08, 2010 8:33 PM GMT

You would have to use a Script Builder for that. When the server starts, you aren't in Players. vip = "refig334" -- your name. function onChatted(msg) if msg == "Blue" then script.Parent.BrickColor = BrickColor.new("Cyan") elseif msg == "Red" then script.Parent.BrickColor = BrickColor.new("Really red") elseif msg == "Pink" then script.Parent.BrickColor = BrickColor.new("Pink") elseif msg == "Purple" then script.Parent.BrickColor = BrickColor.new("Bright violet") elseif msg == "Green" then script.Parent.BrickColor = BrickColor.new("Bright green") elseif msg == "Orange" then script.Parent.BrickColor = BrickColor.new("Deep orange") elseif msg == "Yellow" then script.Parent.BrickColor = BrickColor.new("New Yeller") elseif msg == "Normal" then script.Parent.BrickColor = BrickColor.new("Medium stone grey") elseif msg == "White" then script.Parent.BrickColor = BrickColor.new("Institutional white") end end game.Players.PlayerAdded:connect(function(p) if p.Name == vip then p.Chatted:connect(onChatted) end end)
crazypotato4
#36719886Monday, November 08, 2010 8:34 PM GMT

Sorry, to clarify, your script would only work in a script builder if the script builder script was in a part ._. The modified version I gave you would work in an actual script.
blanman
#36719911Monday, November 08, 2010 8:34 PM GMT

if theres no output, it means that the script is running correctly, but its not doing what you expect it would... hate that. Im not sure how chat-scripts work, but is the way you target yourself as a player correct? check it against another onchat script
refig334
#36719953Monday, November 08, 2010 8:35 PM GMT

Thanks, because, that just answered a whole lot of questions to my REAL identity. I'm a girl xD
refig334
#36720021Monday, November 08, 2010 8:37 PM GMT

By the way, why all the parentheses? Can I take them away? Or I need them on the last part.
oysi93
#36720128Monday, November 08, 2010 8:39 PM GMT

When calling a function with a string or table, you don't need parenthesis. However, when creating a function or connecting one to an event, you sure do need one, brother. BrickColor.new "Bright blue" is valid. function A B end is not valid.
crazypotato4
#36720151Monday, November 08, 2010 8:39 PM GMT

In the script I gave you, the parenthesis contain function arguments, which are passed by the event of a function. something.Touched:connect(function(p) When something is touched, connect to this function with the argument of what touched it. In the line that I just showed, 'p' is the argument of the function, which is what touched it in that function.
refig334
#36720236Monday, November 08, 2010 8:41 PM GMT

Oysi! Once again we meet. Oh shoot, I'm in my test account. Sorry, i'm deenaoziel. Anyway, are you always fourming?
refig334
#36720296Monday, November 08, 2010 8:42 PM GMT

Lol, you always call people "Sister, brother" When I was in deenaoziel I made a thread "yeah you need ..... Sister" Today "When an arg... Brother"
oysi93
#36720302Monday, November 08, 2010 8:42 PM GMT

In that case, sorry if I offended ya by sayin' brother, sister. xP And yes, I am foruming a lot. =] I always wanna help, eh? =D
refig334
#36720453Monday, November 08, 2010 8:45 PM GMT

Lol, yeah I even have your Ro•Cleaner in my place right now. But what really bums me out is... O.O I can't enter! It keeps shutting down! Help? I shut it down after it says 0-8 players max and then I start new server "This game has shut down.." =.e?
refig334
#36720544Monday, November 08, 2010 8:47 PM GMT

Success :) I got in and it works. Anyone who wants to see my brick come. I'm so happy :D
refig334
#36720643Monday, November 08, 2010 8:48 PM GMT

It's a project I want to sell. I just started off with the basic features.
pwnedu46
#36749872Tuesday, November 09, 2010 4:47 AM GMT

"But you MIGHT be allowed to use upper-case. I'm not sure." (clarification) That's not true. If you use Script instead of script, it will return a nil value because it assumes that "Script" is a child of DataModel, while "script" is the script itself (script.Parent, etc).This happened to me once or twice, so I try to be as specific as possible when using caps in scripts.

    of     1