Script Working for Every Players Instead of One

  1. What do you want to achieve? Fix my Kill Streak Script.

  2. What is the issue? The script works for every player instead of only the player with the Kill Streak.

  3. What solutions have you tried so far? I tried to look at DevHub but din’t found any solution.

My script:

local Players = game:GetService("Players")
local power = script.Parent
local character = script.Parent.Parent
local tool = script.Parent.Parent.Parent.Parent.MeshPart
local sound = script.Parent.Parent.Parent.Sound

script.Parent.Changed:Connect(function()
	for _, v in pairs(Players:GetChildren()) do
		local Player = v
		
		
		if script.Parent.Value == 43 then
			local kills5 = Instance.new("Sound",Player.Character.Torso)
			kills5.Name = "kills5"
			kills5.SoundId = "rbxassetid://10636340314"
			kills5.Looped = true
			kills5.Volume = 2.2
			kills5:Play()
			Player.Character.Humanoid.WalkSpeed = 25
			sound.SoundId = "rbxassetid://511340819"
		end

		if script.Parent.Value == 45 then
			Player.Character.Humanoid.WalkSpeed = 27
			for _, v in pairs(Players:GetChildren()) do
				local Player = v
				local Torso = Player.Character.Torso
				local head = Player.Character["Head"]
				local rightarm = Player.Character["Right Arm"]
				local leftarm = Player.Character["Left Arm"]
				local leftleg = Player.Character["Left Leg"]
				local rightleg = Player.Character["Right Leg"]
				
				local par = game:GetService("ServerStorage")["kills5"]
				local par1 = par:Clone()
				par.Enabled = true
				par1.Parent = Player.Character["Torso"]
				
				local par2 = game:GetService("ServerStorage")["kills6"]
				local par2 = par2:Clone()
				par2.Enabled = true
				par2.Parent = Player.Character["Torso"]
				
				local par3 = game:GetService("ServerStorage")["kills7"]
				local par3 = par3:Clone()
				par3.Enabled = true
				par3.Parent = Player.Character["Torso"]
				
				local par4 = game:GetService("ServerStorage")["kills8"]
				local par4 = par4:Clone()
				par4.Enabled = true
				par4.Parent = Player.Character["Torso"]
				
				local pont = game:GetService("ServerStorage")["PointLight"]
				local pont = pont:Clone()
				pont.Enabled = true
				pont.Parent = Player.Character["Torso"]
				
				local par5 = game:GetService("ServerStorage")["kills9"]
				local par5 = par5:Clone()
				par5.Enabled = true
				par5.Parent = Player.Character["Right Arm"]
				
				local par6 = game:GetService("ServerStorage")["kills5 1"]
				local par6 = par6:Clone()
				par6.Enabled = true
				par6.Parent = Player.Character["Right Arm"]
				
				
				local par7 = game:GetService("ServerStorage")["kills6 1"]
				local par7 = par7:Clone()
				par7.Enabled = true
				par7.Parent = Player.Character["Right Arm"]
				
				local par8 = game:GetService("ServerStorage")["kills7 1"]
				local par8 = par8:Clone()
				par8.Enabled = true
				par8.Parent = Player.Character["Right Arm"]
				
				local par9 = game:GetService("ServerStorage")["kills8 1"]
				local par9 = par9:Clone()
				par9.Enabled = true
				par9.Parent = Player.Character["Left Arm"]
				
				local par51 = game:GetService("ServerStorage")["kills9 1"]
				local par51 = par51:Clone()
				par51.Enabled = true
				par51.Parent = Player.Character["Left Arm"]
				
				local par52 = game:GetService("ServerStorage")["kills5 2"]
				local par52 = par52:Clone()
				par52.Enabled = true
				par52.Parent = Player.Character["Left Arm"]
				
				local par53 = game:GetService("ServerStorage")["kills6 2"]
				local par53 = par53:Clone()
				par53.Enabled = true
				par53.Parent = Player.Character["Left Arm"]
				
				
				local par54 = game:GetService("ServerStorage")["kills7 2"]
				local par54 = par54:Clone()
				par54.Enabled = true
				par54.Parent = Player.Character["Left Leg"]
				
				local par55 = game:GetService("ServerStorage")["kills8 2"]
				local par55 = par55:Clone()
				par55.Enabled = true
				par55.Parent = Player.Character["Left Leg"]
				
				local par56 = game:GetService("ServerStorage")["kills9 2"]
				local par56 = par56:Clone()
				par56.Enabled = true
				par56.Parent = Player.Character["Left Leg"]
				
				local par57 = game:GetService("ServerStorage")["kills5 3"]
				local par57 = par57:Clone()
				par57.Enabled = true
				par57.Parent = Player.Character["Left Leg"]
				
				local par58 = game:GetService("ServerStorage")["kills6 3"]
				local par58 = par58:Clone()
				par58.Enabled = true
				par58.Parent = Player.Character["Right Leg"]
				
				local par59 = game:GetService("ServerStorage")["kills7 3"]
				local par59 = par59:Clone()
				par59.Enabled = true
				par59.Parent = Player.Character["Right Leg"]
				
				local par60 = game:GetService("ServerStorage")["kills8 3"]
				local par60 = par60:Clone()
				par60.Enabled = true
				par60.Parent = Player.Character["Right Leg"]
				
				local par61 = game:GetService("ServerStorage")["kills9 3"]
				local par61 = par61:Clone()
				par61.Enabled = true
				par61.Parent = Player.Character["Right Leg"]
				
				local par62 = game:GetService("ServerStorage")["kills5 4"]
				local par62 = par62:Clone()
				par62.Enabled = true
				par62.Parent = Player.Character["Head"]
				
				local par63 = game:GetService("ServerStorage")["kills6 4"]
				local par63 = par63:Clone()
				par63.Enabled = true
				par63.Parent = Player.Character["Head"]
				
				local par64 = game:GetService("ServerStorage")["kills7 4"]
				local par64 = par64:Clone()
				par64.Enabled = true
				par64.Parent = Player.Character["Head"]	
				
				local par65 = game:GetService("ServerStorage")["kills8 4"]
				local par65 = par65:Clone()
				par65.Enabled = true
				par65.Parent = Player.Character["Head"]	
				tool.top3.Enabled = true
				tool["top3.1"].Enabled = true
		end -- 5 kills
		end-- do 4 kills
	end -- do 5 kills
	
	if script.Parent.Value == 55 then
		for _, v in pairs(Players:GetChildren()) do
			local Player = v
			local destroy = Player.Character.Torso.kills5
			destroy:Destroy()
		local kills10 = Instance.new("Sound",Player.Character.Torso)
		kills10.Name = "kills10"
		kills10.SoundId = "rbxassetid://10264870680"
		kills10.Volume = 2.2
		kills10.Looped = true
			kills10:Play()
			Player.Character.Humanoid.WalkSpeed = 38
			local kills10s = game.ReplicatedStorage:WaitForChild("kills10s")
			wait(0.01)
			kills10s:FireAllClients()
		end -- 10 kills
	end
	if script.Parent.Value == 85 then
		for _, v in pairs(Players:GetChildren()) do
			local Player = v
			local destroy1 = Player.Character.Torso.kills10
			destroy1:Destroy()
			local kills25 = Instance.new("Sound",Player.Character.Torso)
			kills25.Name = "kills25"
			kills25.SoundId = "rbxassetid://9871772675"
			kills25.Volume = 2.2
			kills25.Looped = true
			kills25:Play()
			Player.Character.Humanoid.WalkSpeed = 8
			local kills25s = game.ReplicatedStorage:WaitForChild("kills25s")
			wait(0.01)
			kills25s:FireAllClients()
			Player.Character["Torso"].kills5.Enabled = false
			Player.Character["Torso"].kills6.Enabled = false
			Player.Character["Torso"].kills7.Enabled = false
			Player.Character["Torso"].kills8.Enabled = false
			Player.Character["Right Arm"].kills9.Enabled = false
			Player.Character["Right Arm"]["kills5 1"].Enabled = false
			Player.Character["Right Arm"]["kills6 1"].Enabled = false
			Player.Character["Right Arm"]["kills7 1"].Enabled = false
			Player.Character["Left Arm"]["kills8 1"].Enabled = false
			Player.Character["Left Arm"]["kills9 1"].Enabled = false
			Player.Character["Left Arm"]["kills5 2"].Enabled = false
			Player.Character["Left Arm"]["kills6 2"].Enabled = false
			Player.Character["Left Leg"]["kills7 2"].Enabled = false
			Player.Character["Left Leg"]["kills8 2"].Enabled = false
			Player.Character["Left Leg"]["kills9 2"].Enabled = false
			Player.Character["Left Leg"]["kills5 3"].Enabled = false
			Player.Character["Right Leg"]["kills6 3"].Enabled = false
			Player.Character["Right Leg"]["kills7 3"].Enabled = false
			Player.Character["Right Leg"]["kills8 3"].Enabled = false
			Player.Character["Right Leg"]["kills9 3"].Enabled = false
			Player.Character["Head"]["kills5 4"].Enabled = false
			Player.Character["Head"]["kills6 4"].Enabled = false
			Player.Character["Head"]["kills7 4"].Enabled = false
			Player.Character["Head"]["kills8 4"].Enabled = false
			wait(8.7)
			Player.Character.Humanoid.WalkSpeed = 45
			local par25 = game:GetService("ServerStorage")["kills25"]
			local par25 = par25:Clone()
			par25.Enabled = true
			
			par25.Parent = Player.Character["Head"]
			local par26 = game:GetService("ServerStorage")["kills26"]
			local par26 = par26:Clone()
			par26.Enabled = true
			par26.Parent = Player.Character["Head"]
			
			local par27 = game:GetService("ServerStorage")["kills27"]
			local par27 = par27:Clone()
			par27.Enabled = true
			par27.Parent = Player.Character["Head"]
			
			local par28 = game:GetService("ServerStorage")["kills28"]
			local par28 = par28:Clone()
			par28.Enabled = true
			par28.Parent = Player.Character["Left Arm"]
			
			local par29 = game:GetService("ServerStorage")["kills29"]
			local par29 = par29:Clone()
			par29.Enabled = true
			par29.Parent = Player.Character["Left Arm"]
			
			local par251 = game:GetService("ServerStorage")["kills25 1"]
			local par251 = par251:Clone()
			par251.Enabled = true
			par251.Parent = Player.Character["Left Arm"]
			
			local par261 = game:GetService("ServerStorage")["kills26 1"]
			local par261 = par261:Clone()
			par261.Enabled = true
			par261.Parent = Player.Character["Left Arm"]
			
			
			local par271 = game:GetService("ServerStorage")["kills27 1"]
			local par271 = par271:Clone()
			par271.Enabled = true
			par271.Parent = Player.Character["Left Leg"]
			
			local par281 = game:GetService("ServerStorage")["kills28 1"]
			local par281 = par281:Clone()
			par281.Enabled = true
			par281.Parent = Player.Character["Left Leg"]
			
			local par291 = game:GetService("ServerStorage")["kills29 1"]
			local par291 = par291:Clone()
			par291.Enabled = true
			par291.Parent = Player.Character["Left Leg"]
			
			local par252 = game:GetService("ServerStorage")["kills25 2"]
			local par252 = par252:Clone()
			par252.Enabled = true
			par252.Parent = Player.Character["Right Arm"]
			
			local par262 = game:GetService("ServerStorage")["kills26 2"]
			local par262 = par262:Clone()
			par262.Enabled = true
			par262.Parent = Player.Character["Right Arm"]
			
			local par272 = game:GetService("ServerStorage")["kills27 2"]
			local par272 = par272:Clone()
			par272.Enabled = true
			par272.Parent = Player.Character["Right Arm"]
			
			local par282 = game:GetService("ServerStorage")["kills28 2"]
			local par282 = par282:Clone()
			par282.Enabled = true
			par282.Parent = Player.Character["Right Leg"]
			
			local par292 = game:GetService("ServerStorage")["kills29 2"]
			local par292 = par292:Clone()
			par292.Enabled = true
			par292.Parent = Player.Character["Right Leg"]
			
			local par253 = game:GetService("ServerStorage")["kills25 3"]
			local par253 = par253:Clone()
			par253.Enabled = true
			par253.Parent = Player.Character["Torso"]
			
			local par263 = game:GetService("ServerStorage")["kills26 3"]
			local par263 = par263:Clone()
			par263.Enabled = true
			par263.Parent = Player.Character["Torso"]
			
			local par273 = game:GetService("ServerStorage")["kills27 3"]
			local par273 = par273:Clone()
			par273.Enabled = true
			par273.Parent = Player.Character["Torso"]
			
			local par283 = game:GetService("ServerStorage")["kills28 3"]
			local par283 = par283:Clone()
			par283.Enabled = true
			par283.Parent = Player.Character["Torso"]
		end
	end--25 kills
end)


script.Parent.Changed:Connect(function()
	if script.Parent.Value == 133 then
		for _, v in pairs(Players:GetChildren()) do
			local Player = v
			local destroy2 = Player.Character["Torso"].kills25
			destroy2:Destroy()
			sound.SoundId = "rbxassetid://5540424854"
			local explosion = Instance.new("Sound",Player.Character["Torso"])
			explosion.SoundId = "rbxassetid://10820573561"
			explosion.Volume = 2.5
			explosion:Play()
			local kills50 = Instance.new("Sound",Player.Character["Torso"])
			kills50.Name = "kills50"
			kills50.SoundId = "rbxassetid://10270307496"
			kills50.Volume = 2.2
			kills50.Looped = true
			kills50:Play()
			local kills50s = game.ReplicatedStorage:WaitForChild("kills50s")
			wait(0.01)
			kills50s:FireAllClients()
			Player.Character.Humanoid.WalkSpeed = 53
			tool.Material = "Neon"
			tool.Top4.Enabled = true
			tool.top3.Enabled = false
			script.Parent.Value = 250
		
			local par25 = Player.Character["Head"].kills25
			par25.Enabled = false
			local par26 = Player.Character["Head"].kills26
			par26.Enabled = false
			local par27 = Player.Character["Head"].kills27
			par27.Enabled = false
			local par28 = Player.Character["Left Arm"].kills28
			par28.Enabled = false
			local par29 = Player.Character["Left Arm"].kills29
			par29.Enabled = false
			local par251 = Player.Character["Left Arm"]["kills25 1"]
			par251.Enabled = false
			local par261 = Player.Character["Left Arm"]["kills26 1"]
			par261.Enabled = false
			local par271 = Player.Character["Left Leg"]["kills27 1"]
			par271.Enabled = false
			local par281 = Player.Character["Left Leg"]["kills28 1"]
			par281.Enabled = false
			local par291 = Player.Character["Left Leg"]["kills29 1"]
			par291.Enabled = false
			local par252 = Player.Character["Right Arm"]["kills25 2"]
			par252.Enabled = false
			local par262 = Player.Character["Right Arm"]["kills26 2"]
			par262.Enabled = false
			local par272 = Player.Character["Right Arm"]["kills27 2"]
			par272.Enabled = false
			local par282 = Player.Character["Right Leg"]["kills28 2"]
			par282.Enabled = false
			local par292 = Player.Character["Right Leg"]["kills29 2"]
			par292.Enabled = false
			local par253 = Player.Character["Torso"]["kills25 3"]
			par253.Enabled = false
			local par263 = Player.Character["Torso"]["kills26 3"]
			par263.Enabled = false
			local par273 = Player.Character["Torso"]["kills27 3"]
			par273.Enabled = false
			local par283 = Player.Character["Torso"]["kills28 3"]
			par283.Enabled = false
			wait(15.5)
			--head
			local par50 = game.ServerStorage.kills50
			local par50 = par50:Clone()
			par50.Parent = Player.Character["Head"]
            local par51 = game.ServerStorage.kills51
			local par51 = par51:Clone()
			par51.Parent = Player.Character["Head"]
			local par52 = game.ServerStorage.kills52
			local par52 = par52:Clone()
			par52.Parent = Player.Character["Head"]
			local par53 = game.ServerStorage.kills53
			local par53 = par53:Clone()
			par53.Parent = Player.Character["Head"]
			local par54 = game.ServerStorage.kills54
			local par54 = par54:Clone()
			par54.Parent = Player.Character["Head"]
			local par55 = game.ServerStorage.kills55
			local par55 = par55:Clone()
			par55.Parent = Player.Character["Head"]
			local par56 = game.ServerStorage.kills56
			local par56 = par56:Clone()
			par56.Parent = Player.Character["Head"]
			local par57 = game.ServerStorage.kills57
			local par57 = par57:Clone()
			par57.Parent = Player.Character["Head"]
			local par58 = game.ServerStorage.kills58
			local par58 = par58:Clone()
			par58.Parent = Player.Character["Head"]
			local par59 = game.ServerStorage.kills59
			local par59 = par59:Clone()
			--head
			--braco
			par59.Parent = Player.Character["Left Arm"]
			local par501 = game.ServerStorage["kills50 1"]
			local par501 = par501:Clone()
			par501.Parent = Player.Character["Left Arm"]
			local par511 = game.ServerStorage["kills51 1"]
			local par511 = par511:Clone()
			par511.Parent = Player.Character["Left Arm"]
			local par521 = game.ServerStorage["kills52 1"]
			local par521 = par521:Clone()
			par521.Parent = Player.Character["Left Arm"]
			local par531 = game.ServerStorage["kills53 1"]
			local par531 = par531:Clone()
			par531.Parent = Player.Character["Left Arm"]
			local par541 = game.ServerStorage["kills54 1"]
			local par541 = par541:Clone()
			par541.Parent = Player.Character["Left Arm"]
			local par551 = game.ServerStorage["kills55 1"]
			local par551 = par551:Clone()
			par551.Parent = Player.Character["Left Arm"]
			local par561 = game.ServerStorage["kills56 1"]
			local par561 = par561:Clone()
			par561.Parent = Player.Character["Left Arm"]
			local par571 = game.ServerStorage["kills57 1"]
			local par571 = par571:Clone()
			par571.Parent = Player.Character["Left Arm"]
			--braco
			--perna
			local par581 = game.ServerStorage["kills58 1"]
			local par581 = par581:Clone()
			par581.Parent = Player.Character["Left Leg"]
			local par591 = game.ServerStorage["kills59 1"]
			local par591 = par591:Clone()
			par591.Parent = Player.Character["Left Leg"]
			local par502 = game.ServerStorage["kills50 2"]
			local par502 = par502:Clone()
			par502.Parent = Player.Character["Left Leg"]
			local par512 = game.ServerStorage["kills51 2"]
			local par512 = par512:Clone()
			par512.Parent = Player.Character["Left Leg"]
			local par522 = game.ServerStorage["kills52 2"]
			local par522 = par522:Clone()
			par522.Parent = Player.Character["Left Leg"]
			local par532 = game.ServerStorage["kills53 2"]
			local par532 = par532:Clone()
			par532.Parent = Player.Character["Left Leg"]
			local par542 = game.ServerStorage["kills54 2"]
			local par542 = par542:Clone()
			par542.Parent = Player.Character["Left Leg"]
			local par552 = game.ServerStorage["kills55 2"]
			local par552 = par552:Clone()
			par552.Parent = Player.Character["Left Leg"]
			local par562 = game.ServerStorage["kills56 2"]
			local par562 = par562:Clone()
			par562.Parent = Player.Character["Left Leg"]
			--perna
			--braco
			local par572 = game.ServerStorage["kills57 2"]
			local par572 = par572:Clone()
			par572.Parent = Player.Character["Right Arm"]
			local par582 = game.ServerStorage["kills58 2"]
			local par582 = par582:Clone()
			par582.Parent = Player.Character["Right Arm"]
			local par592 = game.ServerStorage["kills59 2"]
			local par592 = par592:Clone()
			par592.Parent = Player.Character["Right Arm"]
			local par503 = game.ServerStorage["kills50 3"]
			local par503 = par503:Clone()
			par503.Parent = Player.Character["Right Arm"]
			local par513 = game.ServerStorage["kills51 3"]
			local par513 = par513:Clone()
			par513.Parent = Player.Character["Right Arm"]
			local par523 = game.ServerStorage["kills52 3"]
			local par523 = par523:Clone()
			par523.Parent = Player.Character["Right Arm"]
			local par533 = game.ServerStorage["kills53 3"]
			local par533 = par533:Clone()
			par533.Parent = Player.Character["Right Arm"]
			local par543 = game.ServerStorage["kills54 3"]
			local par543 = par543:Clone()
			par543.Parent = Player.Character["Right Arm"]
			local par553 = game.ServerStorage["kills55 3"]
			local par553 = par553:Clone()
			par553.Parent = Player.Character["Right Arm"]
			--braco
			--perna
			local par563 = game.ServerStorage["kills56 3"]
			local par563 = par563:Clone()
			par563.Parent = Player.Character["Right Leg"]
			local par573 = game.ServerStorage["kills57 3"]
			local par573 = par573:Clone()
			par573.Parent = Player.Character["Right Leg"]
			local par583 = game.ServerStorage["kills58 3"]
			local par583 = par583:Clone()
			par583.Parent = Player.Character["Right Leg"]
			local par593 = game.ServerStorage["kills59 3"]
			local par593 = par593:Clone()
			par593.Parent = Player.Character["Right Leg"]
			local par504 = game.ServerStorage["kills50 4"]
			local par504 = par504:Clone()
			par504.Parent = Player.Character["Right Leg"]
			local par514 = game.ServerStorage["kills51 4"]
			local par514 = par514:Clone()
			par514.Parent = Player.Character["Right Leg"]
			local par524 = game.ServerStorage["kills52 4"]
			local par524 = par524:Clone()
			par524.Parent = Player.Character["Right Leg"]
			local par534 = game.ServerStorage["kills53 4"]
			local par534 = par534:Clone()
			par534.Parent = Player.Character["Right Leg"]
			local par544 = game.ServerStorage["kills54 4"]
			local par544 = par544:Clone()
			par544.Parent = Player.Character["Right Leg"]
			--perna
			--torso
			local par554 = game.ServerStorage["kills55 4"]
			local par554 = par554:Clone()
			par554.Parent = Player.Character["Torso"]
			local par564 = game.ServerStorage["kills56 4"]
			local par564 = par564:Clone()
			par564.Parent = Player.Character["Torso"]
			local par574 = game.ServerStorage["kills57 4"]
			local par574 = par574:Clone()
			par574.Parent = Player.Character["Torso"]
			local par584 = game.ServerStorage["kills58 4"]
			local par584 = par584:Clone()
			par584.Parent = Player.Character["Torso"]
			local par594 = game.ServerStorage["kills59 4"]
			local par594 = par594:Clone()
			par594.Parent = Player.Character["Torso"]
			local par505 = game.ServerStorage["kills50 5"]
			local par505 = par505:Clone()
			par505.Parent = Player.Character["Torso"]
			local par515 = game.ServerStorage["kills51 5"]
			local par515 = par515:Clone()
			par515.Parent = Player.Character["Torso"]
			local par525 = game.ServerStorage["kills52 5"]
			local par525 = par525:Clone()
			par525.Parent = Player.Character["Torso"]
			local par535 = game.ServerStorage["kills53 5"]
			local par535 = par535:Clone()
			par535.Parent = Player.Character["Torso"]
			--torso
		end
	end
end)

script.Parent.Changed:Connect(function()
	if script.Parent.Value == 290 then
		for _, v in pairs(Players:GetChildren()) do
			local Player = v
			local destroy3 = Player.Character["Torso"].kills50
			destroy3:Destroy()
			script.Parent.Value = 135
			sound.SoundId = "rbxassetid://511340819"
			tool.Material = "DiamondPlate"
			tool.Top4.Enabled = false
			tool["top3.1"].Enabled = false
			game.Lighting.kills50.TintColor = Color3.new(0.666667, 0, 1)		
			local kills75s = game.ReplicatedStorage:WaitForChild("kills75s")
			wait(0.001)
			kills75s:FireAllClients()
			Player.Character.Humanoid.WalkSpeed = 23
			local kills75 = Instance.new("Sound",Player.Character["Torso"])
			kills75.Name = "kills75"
			kills75.SoundId = "rbxassetid://10276347232"
			kills75.Volume = 2.2
			kills75.Looped = true
			kills75:Play()
			local par50 = Player.Character["Head"].kills50
			par50:Destroy()
			local par51 = Player.Character["Head"].kills51
			par51:Destroy()
			local par52 = Player.Character["Head"].kills52
			par52:Destroy()
			local par53 = Player.Character["Head"].kills53
			par53:Destroy()
			local par54 = Player.Character["Head"].kills54
			par54:Destroy()
			local par55 = Player.Character["Head"].kills55
			par55:Destroy()
			local par56 = Player.Character["Head"].kills56
			par56:Destroy()
			local par57 = Player.Character["Head"].kills57
			par57:Destroy()
			local par58 = Player.Character["Head"].kills58
			par58:Destroy()
			local par59 = Player.Character["Left Arm"].kills59
			par59:Destroy()
		    local par501 = Player.Character["Left Arm"]["kills50 1"]
			par501:Destroy()
			local par511 = Player.Character["Left Arm"]["kills51 1"]
			par511:Destroy()
			local par521 = Player.Character["Left Arm"]["kills52 1"]
			par521:Destroy()
			local par531 = Player.Character["Left Arm"]["kills53 1"]
			par531:Destroy()
			local par541 = Player.Character["Left Arm"]["kills54 1"]
			par541:Destroy()
			local par551 = Player.Character["Left Arm"]["kills55 1"]
			par551:Destroy()
			local par561 = Player.Character["Left Arm"]["kills56 1"]
			par561:Destroy()
			local par571 = Player.Character["Left Arm"]["kills57 1"]
			par571:Destroy()
			local par581 = Player.Character["Left Leg"]["kills58 1"]
			par581:Destroy()
			local par591 = Player.Character["Left Leg"]["kills59 1"]
			par591:Destroy()
			local par502 = Player.Character["Left Leg"]["kills50 2"]
			par502:Destroy()
			local par512 = Player.Character["Left Leg"]["kills51 2"]
			par512:Destroy()
			local par522 = Player.Character["Left Leg"]["kills52 2"]
			par522:Destroy()
			local par532 = Player.Character["Left Leg"]["kills53 2"]
			par532:Destroy()
			local par542 = Player.Character["Left Leg"]["kills54 2"]
			par542:Destroy()
			local par552 = Player.Character["Left Leg"]["kills55 2"]
			par552:Destroy()
			local par562 = Player.Character["Left Leg"]["kills56 2"]
			par562:Destroy()
			local par572 = Player.Character["Right Arm"]["kills57 2"]
			par572:Destroy()
			local par582 = Player.Character["Right Arm"]["kills58 2"]
			par582:Destroy()
			local par592 = Player.Character["Right Arm"]["kills59 2"]
			par592:Destroy()
			local par503 = Player.Character["Right Arm"]["kills50 3"]
			par503:Destroy()
			local par513 = Player.Character["Right Arm"]["kills51 3"]
			par513:Destroy()
			local par523 = Player.Character["Right Arm"]["kills52 3"]
			par523:Destroy()
			local par533 = Player.Character["Right Arm"]["kills53 3"]
			par533:Destroy()
			local par543 = Player.Character["Right Arm"]["kills54 3"]
			par543:Destroy()
			local par553 = Player.Character["Right Arm"]["kills55 3"]
			par553:Destroy()
			local par563 = Player.Character["Right Leg"]["kills56 3"]
			par563:Destroy()
			local par573 = Player.Character["Right Leg"]["kills57 3"]
			par573:Destroy()
			local par583 = Player.Character["Right Leg"]["kills58 3"]
			par583:Destroy()
			local par593 = Player.Character["Right Leg"]["kills59 3"]
			par593:Destroy()
			local par504 = Player.Character["Right Leg"]["kills50 4"]
			par504:Destroy()
			local par514 = Player.Character["Right Leg"]["kills51 4"]
			par514:Destroy()
			local par524 = Player.Character["Right Leg"]["kills52 4"]
			par524:Destroy()
			local par534 = Player.Character["Right Leg"]["kills53 4"]
			par534:Destroy()
			local par544 = Player.Character["Right Leg"]["kills54 4"]
			par544:Destroy()
			local par554 = Player.Character["Torso"]["kills55 4"]
			par554:Destroy()
			local par564 = Player.Character["Torso"]["kills56 4"]
			par564:Destroy()
			local par574 = Player.Character["Torso"]["kills57 4"]
			par574:Destroy()
			local par584 = Player.Character["Torso"]["kills58 4"]
			par584:Destroy()
			local par594 = Player.Character["Torso"]["kills59 4"]
			par594:Destroy()
			local par505 = Player.Character["Torso"]["kills50 5"]
			par505:Destroy()
			local par515 = Player.Character["Torso"]["kills51 5"]
			par515:Destroy()
			local par525 = Player.Character["Torso"]["kills52 5"]
			par525:Destroy()
			local par535 = Player.Character["Torso"]["kills53 5"]
			par535:Destroy()
		end
		end
end)

script.Parent.Changed:Connect(function()
	for _, v in pairs(Players:GetChildren()) do
		local Player = v
		if script.Parent.Value == 290 then
			local par75 = game.ServerStorage.kills75
			local par75 = par75:Clone()
			par75.Parent = Player.Character["Head"]
			
			local par76 = game.ServerStorage.kills76
			local par76 = par76:Clone()
			par76.Parent = Player.Character["Head"]
			
			local par77 = game.ServerStorage.kills77
			local par77 = par77:Clone()
			par77.Parent = Player.Character["Head"]
			
			local par78 = game.ServerStorage.kills78
			local par78 = par78:Clone()
			par78.Parent = Player.Character["Head"]
			
			local par79 = game.ServerStorage.kills79
			local par79 = par79:Clone()
			par79.Parent = Player.Character["Left Arm"]
			
			local par80 = game.ServerStorage.kills80
			local par80 = par80:Clone()
			par80.Parent = Player.Character["Left Arm"]
			
			local par81 = game.ServerStorage.kills81
			local par81 = par81:Clone()
			par81.Parent = Player.Character["Left Arm"]
			
			local par82 = game.ServerStorage["kills82"]
			local par82 = par82:Clone()
			par82.Parent = Player.Character["Left Arm"]
			
			local par83 = game.ServerStorage["kills83"]
			local par83 = par83:Clone()
			par83.Parent = Player.Character["Left Leg"]
			
			local par84 = game.ServerStorage["kills84"]
			local par84 = par84:Clone()
			par84.Parent = Player.Character["Left Leg"]
			
			local par751 = game.ServerStorage["kills75 1"]
			local par751 = par751:Clone()
			par751.Parent = Player.Character["Left Leg"]
			
			local par761 = game.ServerStorage["kills76 1"]
			local par761 = par761:Clone()
			par761.Parent = Player.Character["Left Leg"]
			
			local par771 = game.ServerStorage["kills77 1"]
			local par771 = par771:Clone()
			par771.Parent = Player.Character["Right Arm"]
			
			local par781 = game.ServerStorage["kills78 1"]
			local par781 = par781:Clone()
			par781.Parent = Player.Character["Right Arm"]
			
			local par791 = game.ServerStorage["kills79 1"]
			local par791 = par791:Clone()
			par791.Parent = Player.Character["Right Arm"]
			
			local par801 = game.ServerStorage["kills80 1"]
			local par801 = par801:Clone()
			par801.Parent = Player.Character["Right Leg"]
			
			local par811 = game.ServerStorage["kills81 1"]
			local par811 = par811:Clone()
			par811.Parent = Player.Character["Right Leg"]
			
			local par821 = game.ServerStorage["kills82 1"]
			local par821 = par821:Clone()
			par821.Parent = Player.Character["Right Leg"]
			
			local par831 = game.ServerStorage["kills83 1"]
			local par831 = par831:Clone()
			par831.Parent = Player.Character["Right Leg"]
			
			local par841 = game.ServerStorage["kills84 1"]
			local par841 = par841:Clone()
			par841.Parent = Player.Character["Torso"]
			
			local par752 = game.ServerStorage["kills75 2"]
			local par752 = par752:Clone()
			par752.Parent = Player.Character["Torso"]
			
			local par762 = game.ServerStorage["kills76 2"]
			local par762 = par762:Clone()
			par762.Parent = Player.Character["Torso"]
			
			local par772 = game.ServerStorage["kills77 2"]
			local par772 = par772:Clone()
			par772.Parent = Player.Character["Torso"]
			
			local light = Player.Character["Torso"].PointLight
			light:Destroy()
		end
		if script.Parent.Value == 137 then
			Player.Character.Humanoid.WalkSpeed = 25
		end
		if script.Parent.Value == 139 then
			Player.Character.Humanoid.WalkSpeed = 27
		end
		if script.Parent.Value == 141 then
			Player.Character.Humanoid.WalkSpeed = 29
		end
		if script.Parent.Value == 143 then
			Player.Character.Humanoid.WalkSpeed = 31
		end
		if script.Parent.Value == 145 then
			Player.Character.Humanoid.WalkSpeed = 35
			local fire75 = game.ServerStorage.fire75
			local fire75 = fire75:Clone()
			fire75.Parent = Player.Character["Head"]
			
			local fire76 = game.ServerStorage.fire76
			local fire76 = fire76:Clone()
			fire76.Parent = Player.Character["Left Arm"]
			
			local fire77 = game.ServerStorage.fire77
			local fire77 = fire77:Clone()
			fire77.Parent = Player.Character["Left Leg"]
			
			local fire78 = game.ServerStorage.fire78
			local fire78 = fire78:Clone()
			fire78.Parent = Player.Character["Right Arm"]
			
			local fire79 = game.ServerStorage.fire79
			local fire79 = fire79:Clone()
			fire79.Parent = Player.Character["Right Leg"]
			
			local fire80 = game.ServerStorage.fire80
			local fire80 = fire80:Clone()
			fire80.Parent = Player.Character["Torso"]
		end
		if script.Parent.Value == 147 then
			Player.Character.Humanoid.WalkSpeed = 38
		end
		if script.Parent.Value == 151 then
			Player.Character.Humanoid.WalkSpeed = 40
		end
		if script.Parent.Value == 157 then
			Player.Character.Humanoid.WalkSpeed = 42
		end
		if script.Parent.Value == 167 then
			Player.Character.Humanoid.WalkSpeed = 45
		end
		if script.Parent.Value == 177 then
			Player.Character.Humanoid.WalkSpeed = 48
		end
	end	
end)


script.Parent.Changed:Connect(function()
	if script.Parent.Value == 187 then
		for _, v in pairs(Players:GetChildren()) do
			local Player = v
			sound.SoundId = "rbxassetid://5540424854"
			local destroy4 = Player.Character["Torso"].kills75
			destroy4:Destroy()
			Player.Character.Humanoid.WalkSpeed = 60
			tool.Material = "Neon"
			tool.Color = Color3.new(1, 1, 0)
			local kill100s = game.ReplicatedStorage:WaitForChild("kills100s")
			wait(0.001)
			kill100s:FireAllClients()
			local kills100b = game.ReplicatedStorage:WaitForChild("kills100b")
			wait(0.001)
			kills100b:FireAllClients()
			local explosion = Instance.new("Sound",workspace)
			explosion.SoundId = "rbxassetid://10820573561"
			explosion.Volume = 3
			explosion:Play()
			script.Parent.Value = 292
			tool.top5.Enabled = true
			tool.top6.Enabled = true
			local kills100 = Instance.new("Sound",Player.Character["Torso"])
			kills100.Name = "kills100"
			kills100.SoundId = "rbxassetid://9849884556"
			kills100.Volume = 2.2
			kills100.Looped = true
			wait(2)
			kills100:Play()
			local par75 = Player.Character["Head"].kills75
			par75:Destroy()
			local par76 = Player.Character["Head"].kills76
			par76:Destroy()
			local par77 = Player.Character["Head"].kills77
			par77:Destroy()
			local par78 = Player.Character["Head"].kills78
			par78:Destroy()
			local par79 = Player.Character["Left Arm"].kills79
			par79:Destroy()
			local par80 = Player.Character["Left Arm"].kills80
			par80:Destroy()
			local par81 = Player.Character["Left Arm"].kills81
			par81:Destroy()
			local par82 = Player.Character["Left Arm"].kills82
			par82:Destroy()
			local par83 = Player.Character["Left Leg"].kills83
			par83:Destroy()
			local par84 = Player.Character["Left Leg"].kills84
			par84:Destroy()
			local par751 = Player.Character["Left Leg"]["kills75 1"]
			par751:Destroy()
			local par761 = Player.Character["Left Leg"]["kills76 1"]
			par761:Destroy()
			local par771 = Player.Character["Right Arm"]["kills77 1"]
			par771:Destroy()
			local par781 = Player.Character["Right Arm"]["kills78 1"]
			par781:Destroy()
			local par791 = Player.Character["Right Arm"]["kills79 1"]
			par791:Destroy()
			local par801 = Player.Character["Right Leg"]["kills80 1"]
			par801:Destroy()
			local par811 = Player.Character["Right Leg"]["kills81 1"]
			par811:Destroy()
			local par821 = Player.Character["Right Leg"]["kills82 1"]
			par821:Destroy()
			local par831 = Player.Character["Right Leg"]["kills83 1"]
			par831:Destroy()
			local par841 = Player.Character["Torso"]["kills84 1"]
			par841:Destroy()
			local par752 = Player.Character["Torso"]["kills75 2"]
			par752:Destroy()
			local par762 = Player.Character["Torso"]["kills76 2"]
			par762:Destroy()
			local par772 = Player.Character["Torso"]["kills77 2"]
			par772:Destroy()
			local fire75 = Player.Character["Head"].fire75
			fire75:Destroy()
			local fire76 = Player.Character["Left Arm"].fire76
			fire76:Destroy()
			local fire77 = Player.Character["Left Leg"].fire77
			fire77:Destroy()
			local fire78 = Player.Character["Right Arm"].fire78
			fire78:Destroy()
			local fire79 = Player.Character["Right Leg"].fire79
			fire79:Destroy()
			local fire80 = Player.Character["Torso"].fire80
			fire80:Destroy()
		end
		end
end)

script.Parent.Changed:Connect(function()
	if script.Parent.Value == 187 then
		for _, v in pairs(Players:GetChildren()) do
			local Player = v
			local par100 = game.ServerStorage.kills100
			local par100 = par100:Clone()
			par100.Parent = Player.Character["Head"]
			
			local par101 = game.ServerStorage.kills101
			local par101 = par101:Clone()
			par101.Parent = Player.Character["Head"]
			
			local par102 = game.ServerStorage.kills102
			local par102 = par102:Clone()
			par102.Parent = Player.Character["Head"]
			
			local par103 = game.ServerStorage.kills103
			local par103 = par103:Clone()
			par103.Parent = Player.Character["Head"]
			
			local par104 = game.ServerStorage.kills104
			local par104 = par104:Clone()
			par104.Parent = Player.Character["Head"]
			
			local par105 = game.ServerStorage.kills105
			local par105 = par105:Clone()
			par105.Parent = Player.Character["Left Arm"]
			
			local par106 = game.ServerStorage.kills106
			local par106 = par106:Clone()
			par106.Parent = Player.Character["Left Arm"]
			
			local par107 = game.ServerStorage.kills107
			local par107 = par107:Clone()
			par107.Parent = Player.Character["Left Arm"]
			
			local par108 = game.ServerStorage.kills108
			local par108 = par108:Clone()
			par108.Parent = Player.Character["Left Arm"]
			
			local par109 = game.ServerStorage.kills109
			local par109 = par109:Clone()
			par109.Parent = Player.Character["Left Arm"]
			
			local par110 = game.ServerStorage.kills110
			local par110 = par110:Clone()
			par110.Parent = Player.Character["Left Leg"]
			
			local par101 = game.ServerStorage["kills100 1"]
			local par101 = par101:Clone()
			par101.Parent = Player.Character["Left Leg"]
			
			local par111 = game.ServerStorage["kills101 1"]
			local par111 = par111:Clone()
			par111.Parent = Player.Character["Left Leg"]
			
			local par121 = game.ServerStorage["kills102 1"]
			local par121 = par121:Clone()
			par121.Parent = Player.Character["Left Leg"]
			
			local par131 = game.ServerStorage["kills103 1"]
			local par131 = par131:Clone()
			par131.Parent = Player.Character["Left Leg"]
			
			local par141 = game.ServerStorage["kills104 1"]
			local par141 = par141:Clone()
			par141.Parent = Player.Character["Right Arm"]
			
			local par151 = game.ServerStorage["kills105 1"]
			local par151 = par151:Clone()
			par151.Parent = Player.Character["Right Arm"]
			
			local par161 = game.ServerStorage["kills106 1"]
			local par161 = par161:Clone()
			par161.Parent = Player.Character["Right Arm"]
			
			local par171 = game.ServerStorage["kills107 1"]
			local par171 = par171:Clone()
			par171.Parent = Player.Character["Right Arm"]
			
			local par181 = game.ServerStorage["kills108 1"]
			local par181 = par181:Clone()
			par181.Parent = Player.Character["Right Arm"]
			
			local par191 = game.ServerStorage["kills109 1"]
			local par191 = par191:Clone()
			par191.Parent = Player.Character["Right Leg"]
			
			local par201 = game.ServerStorage["kills110 1"]
			local par201 = par201:Clone()
			par201.Parent = Player.Character["Right Leg"]
			
			local par102 = game.ServerStorage["kills100 2"]
			local par102 = par102:Clone()
			par102.Parent = Player.Character["Right Leg"]
			
			local par112 = game.ServerStorage["kills101 2"]
			local par112 = par112:Clone()
			par112.Parent = Player.Character["Right Leg"]
			
			local par122 = game.ServerStorage["kills102 2"]
			local par122 = par122:Clone()
			par122.Parent = Player.Character["Right Leg"]
			
			local par132 = game.ServerStorage["kills103 2"]
			local par132 = par132:Clone()
			par132.Parent = Player.Character["Torso"]
			
			local par142 = game.ServerStorage["kills104 2"]
			local par142 = par142:Clone()
			par142.Parent = Player.Character["Torso"]
			
			local par152 = game.ServerStorage["kills105 2"]
			local par152 = par152:Clone()
			par152.Parent = Player.Character["Torso"]
			
			local par162 = game.ServerStorage["kills106 2"]
			local par162 = par162:Clone()
			par162.Parent = Player.Character["Torso"]
			
			local par172 = game.ServerStorage["kills107 2"]
			local par172 = par172:Clone()
			par172.Parent = Player.Character["Torso"]
		end
	end
end)

Why this is happening?

1 Like

Your code is very long and hard-coded you should simplify it with loops this is not readable

2 Likes

For this loop, why are you using Players:GetChildren(), that probably does not return a player, Use Players:GetPlayers()

Also i recommend creating a NumberValue called killstreak in each player and adding it when they get a kill, when they die they set it to 0

local killStreak = Instance.new("NumberValue", plr) -- Player goes here
killStreak.Name = "KillStreak"
killStreak.Value = 0

Add up this value when a player kills another player but set it to 0 when the player gets killed

1 Like