|
| 24 Nov 2013 01:59 PM |
When you click a gui it is supposed to give you a sword.. I have no errors... THis is the script (It is inside textbutton which is inside screenGUI which is inside starter GUI)
script.Parent.MouseButton1Click:connect(function() wait(0.1) script.Parent.Parent.Parent = nil wait(0.1) game.Lighting.LinkedSword:Clone() wait(0.1) game.Lighting.LinkedSword.Parent = game.Players.LocalPlayer.Backpack end)
|
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:01 PM |
script.Parent.Parent.Parent = nil
.....The script is inside that...So the script is no longer running...
Also: game.Lighting.LinkedSword:Clone().Parent = game.Players.LocalPlayer.Backpack |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Nov 2013 02:11 PM |
Fixed it
script.Parent.MouseButton1Click:connect(function() wait(0.1) script.Parent.Parent.Parent = nil wait(0.1) game.Lighting.LinkedSword:Clone() wait(0.1) game.Lighting.LinkedSword:Clone().Parent=game.Players.LocalPlayer.Backpack end)
|
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:14 PM |
| Nvm.. I broke it somehow... qq |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:15 PM |
| It works on Play Solo but not when I run the server and test player |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Nov 2013 02:28 PM |
| Okay.. I have no idea what that means and how to fix it... qq |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:33 PM |
| You are doing the cloning wrong...I posted that already... |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:37 PM |
| It has to be a localscript. |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:38 PM |
I don't know why you would need all the waits because I'm pretty sure the player's backpack would already be loaded if they can see the GUI.
script.Parent.MouseButton1Click:connect(function() script.Parent.Parent:Remove() game.Lighting.LinkedSword:Clone().Parent = game.Players.LocalPlayer.Backpack end) |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2013 02:49 PM |
| I did the change for the clone thing.. The thing worked in Solo.. |
|
|
| Report Abuse |
|
|