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

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

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

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

end)

1 comment

0

help please :c

1 answer

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)

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