Need help with ("Hint"), or message in script that will not close?
When clicked, the button gives a tool and prints a message. The problem is the message doesnt go away so when the shop gui is closed, you can not open it again (part on touched open gui). I think it is the "hint" s fault because it also doesnt say anything. if someone could get rid of the hint (make it say something and close), that would be great. (i suck at scripting)
01 | local items = script.Parent.Frame:GetChildren() |
04 | Gold = script.Parent.Parent.Parent.Parent.leaderstats:FindFirstChild(items [ i ] .Currency.Value) |
05 | h = Instance.new( "Hint" ) |
06 | h.Parent = script.Parent.Parent.Parent |
07 | if Gold.Value > = items [ i ] .Cost.Value then |
08 | Gold.Value = Gold.Value - items [ i ] .Cost.Value |
09 | toolca = game.Lighting:FindFirstChild(items [ i ] .ItemName.Value):Clone() |
10 | toolcb = game.Lighting:FindFirstChild(items [ i ] .ItemName.Value):Clone() |
11 | toolca.Parent = script.Parent.Parent.Parent.Parent.Backpack |
12 | toolcb.Parent = script.Parent.Parent.Parent.Parent.StarterGear |
15 | items [ i ] .BuyButton.MouseButton 1 Click:connect(buy) |