Hello! Scythe here! Apologies if this post has been made before, I haven’t really seen one asking the same questions as me, but if you do find one, please link! Anyways, how could I go about doing this:
In the picture, the user clicks on an object, and then it opens up a GUI. Now, I already have that:
local Player = game.Players.LocalPlayer
local Frame = Player.PlayerGui.GUI.Frame
local ClickDetector = workspace.clickbox.ClickDetector
ClickDetector.MouseClick:Connect(function(plr)
if (plr == Player) then
Frame.Visible = not Frame.Visible
end
end)
How could I make a script to do as shown in the picture above? Any help is appreciated, thank you!