Client-Side is Bugged?

Hey There!
I’m having trouble with roblox’s client-side,
I am working on game and i am encountering Major Issue,
The client-side is not working,
and what i mean by not working is the delay in the scripts.

All my scripts are running very slow for me
like it takes 10-20 seconds for anything to work
For example the Buttons
When i click on the buttons in the UI it takes about 10-20s for the frame to open
but its not code
When my friend opens the UI and scripts works completely fine for him
He lives in a different country

I tried moving all the things to a different game but it didn’t work

But on the main game the EXACT SAME CODE WORKS PERFECT
I haven’t made any edits the scripts at all but i don’t know what is happening

Lets test this out
Here is a simple kill script

while true do
	wait(1)
	for _,v in pairs(Location:GetDescendants()) do
		if v.Name == "KillPart" and v:IsA("StringValue") then
			if (v:FindFirstChild("_u")) then else --[ To Prevent from multiple functions being loaded
				Instance.new("BoolValue",v).Name = "_u" --[
				v.Parent.CanCollide = false
				v.Parent.Touched:Connect(function(Hit)
					if Hit.Parent then
						local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
						if (Humanoid) then
							if Humanoid.Parent.Name == game.Players.LocalPlayer.Name then
								if Humanoid.Health >= 0 then
									Humanoid.Health = 0
								end
							end
						end
					end
				end)
			end
		end
	end
end

This code works completely fine in the main game, But it takes 10-20s to kill me in the Testing game for some reason
A Video Of It:
https://drive.google.com/file/d/11W95pZn3DJPQHYXmKoBKSVZW6zMMi9Ty/view?usp=sharing

Please Help Me to Fix It!

1 Like

Mostly with “Receive” Network in Performance Stats or Memory

that’s why it’s long to load