of     1   

TobiasKairos
#227679357Saturday, November 18, 2017 7:42 PM GMT

Why isn't this working? I have this in game.ServerStorage.Tool.Local Also the function is inside the Tool as well. But it's not working :/ local Active = game.StarterGui.ScreenGui.Frame.Active function onClick(Active) if (not activated) then activate() else unactivate() end end
TobiasKairos
#227685588Saturday, November 18, 2017 10:04 PM GMT

Bump
DaR3ka
#227685938Saturday, November 18, 2017 10:15 PM GMT

You're not actually registering the click. You'd either do one of two: Add a Active. MouseButton1Click: connect (onClick) or put the function inside of the above. ^ ~DaR3ka
Soybeen
#227686722Saturday, November 18, 2017 10:35 PM GMT

A few big problems 1: You are referencing the StarterGui- that's a big No No. You see, the contents of the StarterGui are cloned into the player's local PlayerGui. You need to make sure you have the PlayerGui and not the StarterGui. The PlayerGui is a child of the player Looks like this... -- local script local player = game.Players.LocalPlayer local playerGui = player.PlayerGui local active = game.StarterGui.ScreenGui.Frame.Active 2: You did not tie an event to your onClick function. When it's clicked, it will never know. You can set up an anonymous event active.MouseButton1Down:connect(function() -- do stuff end) 3: You did not reference any variable named "activated" nor did you reference the functions "activate()" or "unactivate()", so unless you have those and just didn't post them on this thread, you'll need to make them.

    of     1