Game get lag when died

Every player is getting something like lag when died or resetted .
To explain what is happening this is what happening :
-When Resetted or died nothing happens to game but stays in death screen not going back to spawn
-you wait long time and you go to spawn ( I looked to the game’s settings respawning time is only 5 ) your character is half loaded You cant see your head and shirt and pant a little time ( exapmle 20-30 second )
Your shirt and head is loaded but you write something on chat and it don’t send message to chat
**NOTE : The poeples who will probably say “Its your ping and your friend’s ping” Its not my ping You can go to game that I have problem and reset yourself and look for if its my ping or other think. Someone's revenge - Roblox
[EDIT] : Please don’t just flag this topic you can I really need help and I dont know put this to which category.

1 Like

more information : Tried to remove all scripts like auto team and others but still not fixing.

This is server lag, please optimize the scripts. This is not a roblox fault.

How to do it ? I don’t know how to optimize these

Where did you get your scripts from? Free models?

no I made auto team scripts myself

May i see the script you’re using?

local User = script:WaitForChild(“PlayerListJames”)
local Rank = script:WaitForChild(“Owner”)
local Regiment = script:WaitForChild(“|TH| Thailand Army”)

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
spawn(function()
wait(.8)
local c = User:clone()
local a = Rank:clone()
local b = Regiment:clone()
a.Adornee = Character:WaitForChild(“Head”)
a.TextLabel.Text = Player:GetRoleInGroup(4839701)
a.Enabled = true
a.Parent = Character
b.Adornee = Character:WaitForChild(“Head”)
b.TextLabel.Text = Player:GetRoleInGroup(4839701)
b.TextLabel.TextColor3 = (Player.TeamColor.Color)
b.Enabled = true
b.Parent = Character
c.Adornee = Character:WaitForChild(“Head”)
c.TextLabel.TextColor3 = (Player.TeamColor.Color)
c.TextLabel.Text = Player.Name
c.Enabled = true
c.Parent = Character
Character:WaitForChild(‘Humanoid’).NameOcclusion = Enum.NameOcclusion.OccludeAll
local h = Character.Head:Clone()
local m = Instance.new(‘Model’,Character)
m.Name = ‘NameTag’
h.Parent = m
Character.Head:WaitForChild(‘face’):Destroy()
Character.Head.Transparency = 1
local w = Instance.new(‘Weld’,Character.Head)
w.Part0, w.Part1 = Character.Head, h
end)
end)
end)
this and
game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRankInGroup(6723832) == 0 then
plr.TeamColor = BrickColor.new(“Pastel yellow”)
elseif plr:GetRankInGroup(6723832) == 241 then
plr.TeamColor = BrickColor.new(“Electric blue”)
elseif plr:GetRankInGroup(6723832) == 242 then
plr.TeamColor = BrickColor.new(“Bright yellow”)
elseif plr:GetRankInGroup(6723832) == 243 then
plr.TeamColor = BrickColor.new(“Bright yellow”)
elseif plr:GetRankInGroup(6723832) == 244 then
plr.TeamColor = BrickColor.new(“Bright yellow”)
elseif plr:GetRankInGroup(6723832) == 247 then
plr.TeamColor = BrickColor.new(“Bright yellow”)
elseif plr:GetRankInGroup(6723832) == 248 then
plr.TeamColor = BrickColor.new(“Bright yellow”)
elseif plr:GetRankInGroup(6723832) == 250 then
plr.TeamColor = BrickColor.new(“Deep orange”)
elseif plr:GetRankInGroup(6723832) == 251 then
plr.TeamColor = BrickColor.new(“Deep orange”)
elseif plr:GetRankInGroup(6723832) == 252 then
plr.TeamColor = BrickColor.new(“Deep orange”)
elseif plr:GetRankInGroup(6723832) == 254 then
plr.TeamColor = BrickColor.new(“Deep orange”)
elseif plr:GetRankInGroup(6723832) == 255 then
plr.TeamColor = BrickColor.new(“Deep orange”)
end
end)

I removed these scripts from game before … but it still lags when died

Have you tried removing all the scripts?

There is a few more script that is for uniform givers and adonis and HD admin

Are you sure none of your scripts contain a backdoor?

Jusr removing these all right now.

Thanks It worked Its not happening now :slight_smile: