InteralServerError

Hi! I have a tiny issue with my game producing this “InteralServerError” on functions that are encoded into roblox like the Touched event or the Humanoid.Died event. When trying to get the arguments from these encoded functions, they error like crazy.

This is game-breaking. I am losing players due to this.

Please help me!

Some code from these errors:

pad.Touched:Connect(function(obj)
	local plr = game.Players:GetPlayerFromCharacter(obj.Parent)
	if plr and debounce == true then
		if BadgeId.Value ~= 0 then
			if not BadgeService:UserHasBadgeAsync(plr.UserId, BadgeId.Value) then
				return
			end
		end
		
		debounce = false

		local charClone = character:Clone()
		charClone.HumanoidRootPart.Anchored = false
		charClone.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Subject
		charClone.Humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.DisplayWhenDamaged
		charClone.Humanoid.MaxHealth = 150
		charClone.Humanoid.Health = 150
		charClone.Name = plr.DisplayName

		plr.Character = charClone

		local rootPart = charClone:FindFirstChild("HumanoidRootPart") or charClone:FindFirstChild("Torso")
		local plrRoot = obj.Parent:FindFirstChild("HumanoidRootPart") or obj.Parent:FindFirstChild("Torso")

		if rootPart and plrRoot then
			rootPart.CFrame = plrRoot.CFrame
		end

		charClone.Parent = workspace

		giveItems(plr)
		wait(1)
		debounce = true
		plr:FindFirstChild("leaderstats"):FindFirstChild("Team").Value = string.sub(pad.Parent.Name, 5, #pad.Parent.Name)
	end
end)

No reason to error like they are

I also just noticed this HTTP 500 error that is related to the one above:

I would say something is up on Robloxs end, the servers are failing in some regard. Been happening to me on and off a lot the past few days. It’s happening right now as well, things are failing to load, internal server error messages, etc…

Here is how my avatar is currently loading in:
image

So, ya somethings not right and you prob won’t be able to fix it on your end.

Is there any way you could show more of the script because I would like to help but I can’t see where error line 33 or Line 42 is. If so I perhaps can help further with your script problem.

33 is the line right after the listener of the function (1st line). It’s when the script tries to get the touched part of the character using the argument that was passed from the listener.

I guess roblox servers are having issues rn. But if this keeps happening let me know.