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

Error "Equipped is not a valid property name."?

local plr = game.Players.LocalPlayer
local HammerGuiFake = plr.PlayerGui:WaitForChild("HammerGui")
local HammerGuiReal = HammerGuiFake:WaitForChild("FullHammerGui")

local function onChanged()
if script.Parent.Equipped then
    HammerGuiReal.Visible = true
else
    HammerGuiReal.Visible = false
end
end

script.Parent:GetPropertyChangedSignal("Equipped"):Connect(onChanged)

2 answers

✓ Accepted answer
script.Parent.Equipped:Connect

That’s the problem, I have you answer :)

6 comments

0

what line?

0

also error "Players.diggerbear1.Backpack.Hammer.LocalScript:13: Expected '(', '{' or when parsing function call, got "

0

nvm i was just being and idiot ???????

0

Lol did it work

0

yes

0

Great!

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