I have a script inside of a tool that makes a frame in a GUI visible when activated.
But when I activate, nothing happens.
There is no error in the output.
Script:
local Tool = script.Parent
function Activated()
Plyr.PlayerGui.GUI.Frame.Visible = true
end
function Equip()
local Char = Tool.Parent
Plyr = game.Players:GetPlayerFromCharacter(Char)
print(Plyr)
end
Tool.Activated:Connect(Activated)
Tool.Equipped:Connect(Equip)