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

Can someone troubleshoot my GUI Script?

So this is output:

18:47:17.678 - TimeVal is not a valid member of Frame 18:47:17.679 - Script 'Workspace..Humanoid.Script', Line 20 18:47:17.679 - Stack End

What puzzles me, is that there is nothing called "Frame" Here is the script:

script.Parent.Parent:WaitForChild("Humanoid").Died:connect(function(bob)
			for k, p in pairs(game.Players:GetPlayers()) do
				local t=p.PlayerGui.TargetGui.Targets
				local f=script.Parent.Parent.head.face.Texture
				local gui=p.PlayerGui
				
				if t.Target1.Image~=f then
					gui.TimeGui.Timer.TextLabel.TimeVal.Value=gui.TimeGui.Timer.TimeVal.Value-20
					elseif  t.Target2.Image~=f then
					gui.TimeGui.Timer.TextLabel.TimeVal.Value=gui.TimeGui.Timer.TimeVal.Value-20
					elseif t.Target3.Image~=f then
					gui.TimeGui.Timer.TextLabel.TimeVal.Value=gui.TimeGui.Timer.TimeVal.Value-20
					elseif t.Target4.Image~=f then
					gui.TimeGui.Timer.TextLabel.TimeVal.Value=gui.TimeGui.Timer.TimeVal.Value-20
					elseif t.Target5.Image~=f then
					gui.TimeGui.Timer.TextLabel.TimeVal.Value=gui.TimeGui.Timer.TimeVal.Value-20
					elseif t.Target6.Image~=f then
					gui.TimeGui.Timer.TextLabel.TimeVal.Value=gui.TimeGui.Timer.TimeVal.Value-20
					
					
				end
			end
		end)

1 comment

0

I can help, while typing on a phone q.q

1 answer

Nevermind, I figured out that i forgot to put .TextLabel in the second part of the elseif

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