shlexware / Orion

107 stars 237 forks source link

buttons and that type of stuff's code is getting executed without even being clicked #41

Open HRT9014 opened 1 year ago

HRT9014 commented 1 year ago

Hello im trying to understand why it do that but i didnt found out, so tell me why the callback scripts are getting executed when i launch orion lib.

image

here proof

my script (not all) :

--Welcome Notification OrionLib:MakeNotification({ Name = "Thank you for using Spirit Hub !", Content = "Join discord for stay updated !", Image = "rbxassetid://4483345998", Time = 5 })

-- Tabs local Home = Window:MakeTab({ Name = "Main", Icon = "rbxassetid://11334465909", PremiumOnly = false }) local Farm = Window:MakeTab({ Name = "Farm", Icon = "rbxassetid://11334710528", PremiumOnly = false }) local Combat = Window:MakeTab({ Name = "Combat", Icon = "rbxassetid://11334570219", PremiumOnly = false })

local Esp = Window:MakeTab({ Name = "ESP", Icon = "rbxassetid://11334776784", PremiumOnly = false })

local Build = Window:MakeTab({ Name = "Build", Icon = "rbxassetid://11334738485", PremiumOnly = false })

local Other = Window:MakeTab({ Name = "Other", Icon = "rbxassetid://11334794044", PremiumOnly = false }) -- Water Walker Toggle Home:AddToggle({ Name = "Water Walker", Default = false, Callback = function() print('this print got executed without even clicking the toggle bruh') if toggles.WaterWalker == true then toggles.WaterWalker = false else toggles.WaterWalker = true WaterWalk() end end
})

devnorb commented 1 year ago

i have the same issue