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: Why wont this work???

Previous Thread :: Next Thread 
SilverGecko is not online. SilverGecko
Joined: 24 Apr 2010
Total Posts: 189
28 Apr 2010 11:31 AM
function onChatted(msg, speaker)


msg = string.lower(msg)

if msg == "suit" then
speaker.CharacterAppearance = = "http://www.roblox.com/asset/?ID= 13026272" -- It says it all; Suit on.
end
end

function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg) onChatted(msg, newPlayer) end)
end

game.Players.ChildAdded:connect(onPlayerEntered)
-- Brought to you by SilverGecko
Report Abuse
Spaniel77 is not online. Spaniel77
Joined: 18 Apr 2009
Total Posts: 3596
28 Apr 2010 11:36 AM
function onChatted(msg, speaker)


msg = string.lower(msg)

if msg == "suit" then
speaker.CharacterAppearance = "http://www.roblox.com/asset/?ID= 13026272" -- It says it all; Suit on.
end
end

function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg) onChatted(msg, newPlayer) end)
end

game.Players.ChildAdded:connect(onPlayerEntered)



You basically had it right, you just had an extra = at the CharacterAppearance bit.
Report Abuse
Clone512 is not online. Clone512
Joined: 02 Mar 2008
Total Posts: 7810
28 Apr 2010 11:39 AM
Isn't the CharacterAppearance property locked?
Report Abuse
Spaniel77 is not online. Spaniel77
Joined: 18 Apr 2009
Total Posts: 3596
28 Apr 2010 11:41 AM
Nope, I don't think it is. I use it all the time in SB.
Report Abuse
aase69 is not online. aase69
Joined: 04 Apr 2008
Total Posts: 3794
28 Apr 2010 11:55 AM
i think it was locked, but they enabled it again :D
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
28 Apr 2010 11:58 AM
I don't know if this matters in a URL in roblox, but you have a space beside the "=":

http://www.roblox.com/asset/?ID=13026272
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