Output randomly spams errors that aren't even errors

Basically, For some really strange reason, when a player dies, the output spams a TON of errors, But literally everything works fine? last time I changed anything client related it worked perfectly fine. its super weird:

This doesn’t really cause any harm in-game, But makes debugging 1000% harder then it used to be

Everything server side seems fine

Things I have tried:

I tried getting the UI from an older version, And the same issue occurs? It’s so strange, I don’t know if a roblox update broke anything.

Adding a BUNCH of repeat task.wait() until game:IsLoaded() to nearly every client script to no avail

Thanks if u can help :doh:

Can you confirm that your GUI’s have ResetOnSpawn disabled? (unless if this is required for your game to function.)

1 Like

A few do and a few don’t, But literally every single one breaks no matter their value (tmk)

Well, the errors seem to be caused by nil objects within GUI objects. Can you check the scripts where these errors originate and see if anything fishy is going on? It is a little hard to provide any solution without seeing any code as well!

1 Like

check if you have extra scripts laying around that are causing the errors

1 Like

Here is the hierarchy and script example of something that errors:
image

humanoid:GetPropertyChangedSignal("Health"):Connect(function()
	local newHealth = math.ceil(humanoid.Health)
	
	script.Parent.TextLabel.Text = newHealth
	if PreviousHealth > newHealth and newHealth ~= 0 then
		-- print("Lost:", newHealth-PreviousHealth)
		TweenRemove(newHealth)
	elseif PreviousHealth < newHealth and newHealth ~= 100 then
		TweenGain(newHealth-PreviousHealth)
		-- print("Gained:", newHealth-PreviousHealth)
	end
	
	if newHealth < 20 then
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(255,57,57)
		script.Parent.HealthHolder.Health.BackgroundColor3 = Color3.fromRGB(255,57,57)
		script.Parent.HeartIcon.ImageColor3 = Color3.fromRGB(255, 57, 57)
		script.Heartbeat:Play()
	elseif newHealth > 20 then
		script.Parent.HealthHolder.Health.BackgroundColor3 = Color3.fromRGB(94,255,85)
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(94,255,85)
		script.Parent.HeartIcon.ImageColor3 = Color3.fromRGB(94, 255, 85)
		script.Heartbeat:Stop()
	end
	
	local goal = {}
	goal.Size = UDim2.new(newHealth/100, 0,1,0,1)
	local TweenInfo2 = TweenInfo.new(PulseSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)

	TweenService:Create(script.Parent.HealthHolder.Health, TweenInfo2, goal):Play()
	PreviousHealth = newHealth
end)

If you’re alluding I use free models (Not saying you are) I don’t, I have wrote everything

nah

thirtycharacterslimitaaaaaaaaaaaaa

check if this might be happening because things are not being properly disconnected

1 Like