|
| 08 Nov 2014 01:19 PM |
player = script.Parent.Parent.Parent.Parent
function onClicked() script.Disabled = true if player.leaderstats.Gold.Value > 5 then if player.Character:FindFirstChild("LinkedSword") == nil then if player.Backpack:FindFirstChild("LinkedSword") == nil then Sword = game.Lighting.ClassicSword:Clone() Sword.Parent = player.Backpack player.leaderstats.Gold.Value = player.leaderstats.Gold.Value - 5 if player.leaderstats.Gold.Value < 5 then Instance.new("TextButton", script.Parent) .Text = "Sorry Not enough money!" wait(5) Instance.new("TextButton" , script.Parent).Text = "Buy Linked Sword" end end end wait() script.Disabled = false end end
script.Parent.MouseButton1Click:connect(onClicked)
Ok so baisically nothing comes up in the output i want it to change the gui's text box to say they dont have enough money and change it back but nothings working i got it to give the link sword provided they have enough gold :)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|