#does anyone know why this doesn't work
1 messages · Page 1 of 1 (latest)
local Ui = script:WaitForChild("bomengui")
script.Parent.Equipped:Connect(function()
local player = game.Players.LocalPlayer
local screenGui = Ui:Clone()
screenGui.Parent = player:WaitForChild("PlayerGui")
end)
script.Parent.Unequipped:Connect(function()
local player = game.Players.LocalPlayer
local gui = player.PlayerGui:FindFirstChild(Ui.Name)
if gui then
gui:Destroy()
end
end)
what dosent work about it
i might be wrong, but arent u supposed to put the GUI in StarterGui service?
local player = game:GetService("Players").LocalPlayer
local Ui = player:WaitForChild("PlayerGui"):WaitForChild("bomengui")
** You are now Level 3! **