rs = game:GetService("ReplicatedStorage")
ss = game:GetService("ServerStorage")
rs.q.OnServerEvent:Connect(function(player)
local Cac = player.Character
local Hum = Cac.Humanoid
local P1 = Hum:LoadAnimation(script.Animation)
local NewChar = ss.Rogue:Clone()
local Pos = player.Character:GetPrimaryPartCFrame()
player.Character :Destroy()
player.Character = NewChar
NewChar.Parent = workspace
NewChar:SetPrimaryPartCFrame(Pos)
wait(1)
P1:Play()
Hum.Walkspeed = 0
wait(4)
Hum.Walkspeed = 30
P1:Stop()
end)
so basically i want it so after i changed my player's character it plays a animation and a sound(forgot to add sound) but anyhow this is the script and how i tried to do it any help is apreciated
