llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
|
| 06 Apr 2015 01:30 PM |
So basically I am making a gear card war game. In the cards I already made the script and it's fine but there's a certain part that only works in Studio Test Mode and not in the real play mode. It is a very important part of my game; I seriously need it fixed.
So, when activated Tool is supposed to completely deleted from a Player's StarterGear, so it doesn't show up for them again.
--local script else return end print(root) root.Parent = game.Players.LocalPlayer.Backpack root.Parent = game.Players.LocalPlayer.StarterGear local rc = root:Clone(root, workspace) rc.Parent = game.Players.LocalPlayer.Backpack game.StarterPack.BronzeMeleeCard:Destroy() Tool:Destroy() end
Please help me fix this I desperately need it fixed and I can't fix it. I'm paying 50 robux for whoever helps me.
vv He's a noob. vv |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
|
| 06 Apr 2015 01:30 PM |
Also this isn't the whole script, the rest works fine.
vv He's a noob. vv |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 06 Apr 2015 01:42 PM |
| You have to use :Remove() not :Destroy() |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 01:44 PM |
Get out, Cheeso.
I'm not sure what you're trying to do here. Once you use return, the code below it will not fire. Perhaps try this:
else print(root) root.Parent = game.Players.LocalPlayer.Backpack root.Parent = game.Players.LocalPlayer.StarterGear local rc = root:Clone(root, workspace) rc.Parent = game.Players.LocalPlayer.Backpack game.StarterPack.BronzeMeleeCard:Destroy() Tool:Destroy() return end |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
|
| 07 Apr 2015 10:14 AM |
That doesn't work q.q
I'm trying to make it so when the player respawns Tool is not in their starterpack.
vv He's a noob. vv |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
| |
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
| |
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 07 Apr 2015 10:55 AM |
| @Eternal I think it is StarterGear. @llcool try doing his script but change starter pack to gear. |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
|
| 07 Apr 2015 10:59 AM |
There is no StarterGear that's a child of Workspace, duh.
vv He's a noob. vv |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 07 Apr 2015 11:00 AM |
| StarterGear is a child of game.:/ |
|
|
| Report Abuse |
|
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 07 Apr 2015 11:02 AM |
game.Players.LocalPlayer.StarterGear.BronzeMeleeCard:Destroy() game.Players.LocalPlayer.Backpack.BronzeMeleeCard:Destroy() |
|
|
| Report Abuse |
|
|
llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 07 Apr 2015 11:12 AM |
| Give me the full code and i can help you. Your strange communication tactics are confusing me. |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2015 11:13 AM |
| PM me the whole script and I will fix it. |
|
|
| Report Abuse |
|
|
Proxemics
|
  |
| Joined: 30 Oct 2013 |
| Total Posts: 2542 |
|
|
| 07 Apr 2015 11:21 AM |
print(root) root.Parent = game.Players.LocalPlayer.BackPack root.Parent = game.Players.LocalPlayer.StarterGear local rc = root:Clone(root, game.Workspace) rc.Parent = game.Players.LocalPlayer.BackPack wait() game.StarterPack.BronzeMeeleCard:Destroy() Tool:Destroy() |
|
|
| Report Abuse |
|
|