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

How do you make a give GUI?

Asked by 8 years ago

Hello, I am building a cafe for someone for free. I'd like to out in a give tool GUI so the Baristas won't have to use admin? If you know how may you help me with this?

1 answer

Log in to vote
0
Answered by 8 years ago
  1. Put a script into a part
  2. Put a gui into that script and name it Gui 3.Change the scripts code to this:
script.Parent.Touched:connect(function(t)
if game.Players:FindFirstChild(t.Parent.Name) then
local player = game.Players:FindFirstChild(t.Parent.Name)
local gui = script.Gui:Clone()
if player.PlayerGui:FindFirstChild(gui.Name) == nil then
gui.Parent = player.PlayerGui
end
end
end)
0
Wow, Thank you! Coolkid9569 0 — 8y
Ad

Answer this question