rs = game:GetService("ReplicatedStorage")
ss = game:GetService("ServerStorage")
rs.q.OnServerEvent:Connect(function(player)
local NewChar = ss.Rogue:Clone()
local Pos = player.Character:GetPrimaryPartCFrame()
player.Character :Destroy()
player.Character = NewChar
NewChar.Parent = workspace
NewChar:SetPrimaryPartCFrame(Pos)
wait(5)
player:LoadCharacter()
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Humanoid.Died:Connect(function()
local PositionWhenDied = Character.Torso.Position
Player.CharacterAdded:Wait()
Player.Character:MoveTo(PositionWhenDied)
end)
end)
end)
end)
so this is the script but it doesnt seem to work
