rs = game:GetService("ReplicatedStorage")
ss = game:GetService("ServerStorage")

rs.q.OnServerEvent:Connect(function(player)
    local Hum = player.Character.Humanoid
    local anim = Instance.new("Animation")
    anim.AnimationId = "rbxassetid://5176967471"
	local NewChar = ss.Rogue:Clone()
	local Pos = player.Character:GetPrimaryPartCFrame()
	player.Character :Destroy()
	player.Character = NewChar
	NewChar.Parent = workspace
	NewChar:SetPrimaryPartCFrame(Pos)
	wait(1)
	local animation = Hum:LoadAnimation(anim)
    animation:Play()
	Hum.Walkspeed = 0
	wait(4)
	Hum.Walkspeed = 30
	animation:Stop()
	
end)

this is the script and idk how i would go about and play a animation so any is appreciated