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
 

Help

Previous Thread :: Next Thread 
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
14 Jul 2013 09:52 AM
Okay, so I made a simple script that lets you get gear, hats, and change your character by saying the player ID, hat ID, or Gear ID. There is no output. The player command works, but the other two don't. I'm not sure if it's a LoadAsset problem or what, but it doesn't work.

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(text)
if text:sub(1, 7) == "player " then
if player.Character then
player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..text:sub(8)
player:LoadCharacter()
end
elseif text:sub(1, 5) == "gear " then
if player.Character then
a = game["InsertService"]:LoadAsset(text:sub(6))
a.Parent = game.Workspace
b = a:GetChildren()
for i = 1, #b do
b.Parent = player.Backpack
a:remove()
end
end
elseif text:sub(1, 4) == "hat " then
if player.Character then
a = game["InsertService"]:LoadAsset(text:sub(5))
a.Parent = game.Workspace
b = a:GetChildren()
for i = 1, #b do
b.Parent = player.Character
a:remove()
end
end
end
end)
end)


"IT'S A CONSPIRACY!"
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
14 Jul 2013 10:05 AM
Bump power... ACTIVATE!!!! HEEEEEEEEEEEEEYAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!

"IT'S A CONSPIRACY!"
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
14 Jul 2013 10:15 AM
BAWWWWWWMP!!!! If you don't understand completely what I'm trying to do, you can ask. I want help, I don't really care what I have to do to get it :P I know it's just one or two stupid small mistakes in there, but I can't figure it out.

"IT'S A CONSPIRACY!"
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
14 Jul 2013 10:22 AM
Okay, one more bump. If this doesn't at least get me a response, I guess I'll just work on other stuff.

"IT'S A CONSPIRACY!"
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
14 Jul 2013 10:26 AM
It looks fine to me. You should make sure the Id is correct. You might also want to use :GetService() and remove "a" outside of the loop.
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