Print() not printing anything

Hey there! I’ve been struggling for the past 30 minutes trying to find why my script isn’t printing anything, and I just don’t understand.

print("TEST !!!!") -- Works as expected

CatalogRemotes.Reset.OnServerEvent:Connect(function(player) -- Yes, I am sure it gets fired
	print("TEST !!!!") -- Does not print anything

    -- All lines above are correctly executed
	local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(player.UserId)
	local Character = player.Character or player.CharacterAdded:Wait()
	local Humanoid = Character:WaitForChild('Humanoid')
	Humanoid:ApplyDescription(HumanoidDescription)
	CatalogRemotes.Reset:FireClient(player)
end)

I am completely lost, any help is appreciated.

3 Likes

have you made sure that your event is getting fired?

I am 100% sure as my Roblox characters gets reset.

thats weird, maybe try printing a different thing?

(“TEST 2 !!!”)

it could also just be saying TEST !!! (x2)

Nope, nothing new. This problem is getting very annoying as I don’t even know how to fix it.

image

yeah that is really weird, this could be a new roblox bug?

you could also try relaunching studio to see if its just not working for some reason.

another thing i’d try is using warn(“TEST !!!”) instead, which warns instead of printing.

Restarted Studio several times already, nothing fixed. error() also does not seem to be detected.

thats weird…

probably is a new roblox bug or something, a question i have is do you need the print?

the other code works from what you said

Debugging is essential when programming. I just can’t act like this printing problem isn’t there.

1 Like

Does it still work if you temporarily remove the code that does the functional part? Are you very sure that is the code being executed? No duplicate scripts?

Is this on the server or the client?

I am 100% sure the code gets executed, as shown below:

https://youtu.be/BOrBD9s0DYY (video was too big to upload on DevForum)

What shows up in the server-side output? You only showed the client sided output

This code is placed in ServerScriptService.

1 Like

Can you please quickly check if the issue still occurs in game, and not just in studio?

1 Like

Which code is in serverscriptservice? The normal script or the local script?

Okay, the problem does not seen to happen in-game.
image

The normal one is located in ServerScriptService.

In Studio, see if you can view the print statement in the output window (view < output)

1 Like