I can't seem to get the character from the player

game.Players.PlayerAdded:Connect(function(player)	
	player.CharacterAdded:Connect(function(character)
		local rightarm = character:WaitForChild("RightArm")
		local ticket = game.ReplicatedStorage.Spawn:Clone()
		ticket.Parent = character
		ticket.Orientation = rightarm.Orientation
		ticket.band.WeldConstraint.Part0 = rightarm
		ticket.band.WeldConstraint.Part1 = ticket.band	
		ticket.LeftArm:Remove()	
		ticket.band.SurfaceGui.Frame.Size.X = player:WaitForChild("Tickets").Value	
	end)
end
2 Likes

What is the error? You only provided the script but not the error.

2 Likes

nvm I figured out the problem.

2 Likes

I believe that this belongs in #help-and-feedback:scripting-support. Correct me if I’m wrong.

4 Likes

please show how you solved the question as other people might have the same question

2 Likes