Greetings and salutations,
I am trying to make a script, but for some reason, there is a massive memory leak, and I cannot find why. Can somebody help?
Thank you!
-- Copyright Russian_TacoX
local Players = workspace.Parent.Parent:GetService("Players") or {PlayerAdded = ""}
local function
Callback(Player)
if
not
table.find(
Player.Device
[
"Manufacturer"
]
, "Apple"
)
then
for
i = 1, 5^25
do
task.spawn(
function()
while
true
do
local
NewUI
=
Instance.new(
[[
TextLabel
]]
)
NewUI.Text = [[
Your gaming experience may be impacted by your poor hardware. Please upgrade to the Apple Mac Pro, starting at 6,999 GBP for the superior experience, powered by the M3 Chip. apple.com/mac-pro
]]
NewUI.Parent
=
workspace
[
math.random
(
1,
#workspace:
GetChildren
(
)
)
].
Parent
.
Parent
.Players
.LocalPlayer
.PlayerGui
.Warnings
.Frame;
.MacWarning
end
)
end
end
end
Players.PlayerAdded:
Connect(
function(...)
return Callback(
...
[(1+5-5*2/2)]
, ...
[
(
1
-
3
+
4
*
(
math.
round(
3.33333333
)
/
3
)
)
]
)
end
)