Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 answer

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)


1 comment

0

Eww. Spoon feeding and giving deprecated code.

This discussion is preserved as it was. New answers, comments, and votes are closed.