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

How to fix gui showing up for all players?

---error
11:44:47.790 - hm is not a valid member of PlayerGui
11:44:47.790 - Stack Begin
11:44:47.791 - Script 'Workspace.Clues.Knife.Part.Script', Line 13
11:44:47.791 - Stack End

So this what happend to me since I'm working on a Horror,Multiplayer game the script doesn't work since It's says hm is not valid member of PlayerGui. this is the script

---Actual script
script.Parent.ClickDetector.MouseClick:Connect(function()
script.Parent:Destroy()
for i,v in pairs(game.Players:GetPlayers()) do
	local Clue = v.PlayerGui.hm.Clue
	for i=0, 100 do
		Clue.TextStrokeTransparency = Clue.TextStrokeTransparency - 0.01
		Clue.TextTransparency = Clue.TextTransparency - 0.01
	end
	wait(6)
	for i=0, 100 do
		Clue.TextStrokeTransparency = Clue.TextStrokeTransparency + 0.1
		Clue.TextTransparency = Clue.TextTransparency + 0.1
	end
end
end)

Can anyone explain what is going on?

1 answer

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