I've tried multiple things trying to get a tool that opens a gui upon equipping it and removing the gui when you put the tool away, but none work. Can anyone help me?
✓ ANSWER ACCEPTED
A tool that opens a gui?
2 answers
✓ Accepted answer
local player = game.Players.LocalPlayer
local gui = player.PlayerGui.MyScreenGui
gui.Parent = nil
script.Parent.Equipped:connect(function(mouse)
gui.Parent = player.PlayerGui
end)
script.Parent.Unequipped:connect(function(mouse)
gui.Parent = nil
end)
1 comment
1
Thanks a bunch!
Well, for one, this question can be answered by 3 links.
All what you will need to know, about Tools
Utilize those.
4 comments
2
Please refrain from just posting links, especially to the wiki. Try to write out a helpful answer.
0
Sorry that I do not want to encourage learking. I do not just give scripts, I help push them in the right direction for them to make it themselves.
0
As well, most people do not really know how to search for stuff that could help on the wiki. I am here to help, not give scripts. Thank you for the response though. :)
0
All 3 are expired :P
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
By the way, how do you do those Lua script boxes exactly like scripts on ROBLOX?
Hit the Lua logo when editing your post (it says "Code block" when hovered over) and insert your code inbetween the squigly lines (~~~~~~~~~~~~~~~~~)
put a startergui in it