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

necesito ayuda , quiero que cuando una herramienta este equipada aparezca un interfaz? ,

Asked by 3 years ago

local gui = game.StarterGui.ScreenGui.Frame.Visible

script.Parent.Equipped:Connect(function() print("hola") wait(1) gui = true

end)

0
help please :c ImDragron 7 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

You're referencing the StarterGui instead of the local player's PlayerGui.

local player = game:GetService("Players").LocalPlayer
local gui = LocalPlayer.PlayerGui.ScreenGui.Frame.Visible

script.Parent.Equipped:Connect(function()
    print("hola")
    wait(1)
    gui = true
end)
Ad

Answer this question