|
| 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 |
|
|
|
| 14 Jul 2013 10:05 AM |
Bump power... ACTIVATE!!!! HEEEEEEEEEEEEEYAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!
"IT'S A CONSPIRACY!" |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|