[CLOSED] 100 robux to fix my script!

I’m offering someone 100 robux (I prefer to pay through T-shirt, but I can do group funds too) to fix my script, and explain to me what I did wrong:

function PlayerAdded(player)
	debounce = true
	player.CharacterAdded:Connect(function(player)
	if debounce == true then
			local Rig = game.Workspace.Rig:Clone()
			
			local RigCopy = Rig:Clone()
			RigCopy.Name = player.Name.."Backup"
			
			debounce = false
			local id = game.Players:FindFirstChild(player.Name).UserId
			local playername = player.Name			
			local character = player		
			local player = game.Players:FindFirstChild(player.Name)		
			print(id)		
			print(Rig.Humanoid.Name)		
			Rig.Parent = game.Workspace	
			Rig:WaitForChild("Humanoid"):ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(id))
			Rig.HumanoidRootPart.Position = character.HumanoidRootPart.Position
			Rig.Name = playername
			Rig.Humanoid.DisplayName = playername
			player.Character = Rig
			
			local Camera = game.Workspace.Camera
			Camera.CameraType = Enum.CameraType.Scriptable		
			Camera.CameraSubject = Rig.Head			
			Camera.CFrame = Rig.Head.CFrame			
			print("i work")			
			Camera.CameraType = Enum.CameraType.Custom			
			debounce = true		
			print("i finished working")
		end
			player.Humanoid.Died:Connect(function() 
			local plrr = game.Workspace:WaitForChild(player.Name.."Backup"):Clone()
			game.Players:FindFirstChild(player.Name).Character = plrr
			plrr.Name = player.Name
			print(plrr.Name)
			end)
		
			if debounce ~= true then				
				print("Not Working")

			return
				end
	end)
end

game.Players.PlayerAdded:Connect(PlayerAdded)

Current issue:
The died function sometimes works, but currently, it is printing out “Infinite Yield possible” and the camera completely breaks after switching the rig.

Dm me on Discord if interested:

Username: @Catherine858 #8796

This topic was automatically closed after 1 minute. New replies are no longer allowed.