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

How do I make a tool that when equiped a gui pops up? [closed]

Asked by 6 years ago

This was an old question but answers didn't work so ye.

Closed as Not Constructive by User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 6 years ago

Create a GUI. Put it in a tool. Write this on a local script and put the local script into the tool.

local tool = script.Parent
local GUI = tool:FindFirstChild("GUINAME") or tool:WaitForChild("GUINAME")

local function Equipped()
    local plr = game.Players.LocalPlayer
    local plrgui = plr.PlayerGui
    GUI.Parent = plrgui
end
local function Unequipped()
    GUI.Parent = tool
end
tool.Unquipped:connect(Unequipped)
tool.Equipped:connect(Equipped)


0
Eww. Spoon feeding and giving deprecated code. User#19524 175 — 6y
Ad