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

How do I fix this error? KeyDownGui is not a valid member of PlayerGui

Asked by 5 years ago
Edited 5 years ago

When ever I do this:

script.Parent.Humanoid.Health = 1 print("health =",script.Parent.Humanoid.Health) wait(1) if script.Parent.Humanoid.Health == 1 then local random = math.random(1,5) local FirstFeather = game.Players.SuperMonkeyRules.PlayerGui.KeyDownGui.Inventory.SpecialItems.Pigeon.FirstFeather if random == 5 then FirstFeather.Image = 'https://www.roblox.com/library/2956275295/TestFeather' end end

This is the error it gives me: 11:57:20.956 - KeyDownGui is not a valid member of PlayerGui

11:57:20.958 - Stack Begin

11:57:20.958 - Script 'Workspace.Jerry.GivingScript', Line 10

11:57:20.959 - Stack End

Please help.

0
Is this script local? DeceptiveCaster 3761 — 5y
0
No SuperMonkeyRules 0 — 5y
0
THe script is in the workspace SuperMonkeyRules 0 — 5y

Answer this question