--		

		Player.PetAttachment = Instance.new("Attachment")
		Player.PetAttachment.CFrame = CFrame.new(-3,-1,-1)
		Player.PetAttachment.Parent = Player.Character.PrimaryPart
		
		Player.CharacterAdded:Fire(char)
		if Player.CharacterListeners then
			for func, args in pairs(Player.CharacterListeners) do
				func(args)
			end
		end	
	end
	
	function Player:AddCharacterListener(func, ...)
		Player.CharacterListeners = Player.CharacterListeners or {}
		Player.CharacterListeners[func] = ...
	end
	
	Player.CharacterAdded = Instance.new("BindableEvent")
	Player.Player.CharacterAdded:Connect(Player.NewCharacter)
	if Player.Player.Character then
		Player.NewCharacter(Player.Player.Character)
	else
		Player.Player.CharacterAdded:Wait()
	end
	Services.RunService.Heartbeat:Connect(function()
		if Player.Character and Player.Character.PrimaryPart then
			local original = Player.Character.PrimaryPart.Velocity
			Player.Character.PrimaryPart.Velocity = Vector3.new(original.X, math.clamp(original.Y, -300, 300), original.Z)
		end
	end)
	

return Player
