I Tried Something but sice im new to coding idk whats wrong with it here is the script
local rs = game.ReplicatedStorage
local defend = rs.StarterCharacter:Clone()
local plr = game.Players.LocalPlayer
if plr.Team == game.Teams.Human then
wait()
defend.Name = plr.Name
plr.Character:Destroy()
plr.Character = defend
plr.Character.Parent = workspace
local respawnTime = 1
local Players = game:GetService("Players")
Players.CharacterAutoLoads = false
Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local Humanoid = Character:FindF
Humanoid.Died:connect(fuirstChild("Humanoid")
if Humanoid thennction()
wait(respawnTime)
Player:LoadCharacter()
end)
end
end)
Player:LoadCharacter()
