Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui Button Sometimes Working?

Asked by 8 years ago
Edited 8 years ago

Things To Know

Local Script ,Gui Button ,Everything is in thier proper places ,No Errors In output ,Non Filtering Enabled Place

Problem: Let's say I'd join the game, Once i have met all the requirements, I would press the Equip Button, NOTHING HAPPENS, then I leave and join the place again, And I do the EXACT Same thing and press the Equip Button, And it works, IDK why this happens, Second Problem is that if I were to equip and unequip and re-equip the tool would not be there, what i mean by that is that i can equip the tool but i am not holding anything, it's like an empty tool.

Script

01player = game.Players.LocalPlayer
02local leaderstats = player:WaitForChild("leaderstats")
03local Tool = leaderstats:WaitForChild('StoneSword')
04local cl = game.ReplicatedStorage:FindFirstChild("StoneSword")
05local cl2 = cl:Clone()
06local Bought = script.Parent:WaitForChild('HasBought')
07local CurImage = script.Parent.Parent:WaitForChild('ImageLabel')
08local Equiped = false
09local UnequipedColor = BrickColor.new("Really red")
10local UnequipedColor2 = UnequipedColor.Color
11local EquipColor = BrickColor.new("Lime green")
12local EquipColor2 = EquipColor.Color
13local AnyEquiped = script.Parent.Parent.Parent.Parent:WaitForChild('MeleeEquip')
14local NA = script.Parent:WaitForChild('NA')
15local Player = game.Players.LocalPlayer
View all 54 lines...

UPDATE: I have added a print, at the very beggining of the script, The local script is NOT disabled and the button is Clickable but NOTHING Prints when i press f9 in play mode, ???????

0
I hae also tried If Bought.Value == True and Equiped == false, sam results NetworkMan243 65 — 8y

Answer this question