Heyo, having a slight issue where this while loop is not running though the process. I was hoping I could get someone more experenced than myself to give it a quick once over and give me some advice as to the issue as this has been stumpping me for a few hours now. Thanks in advance!!
''''' lau
local Gamba = math.random(1, 255)
local MiniGamba = math.random(1, 35)
local function SunSpawns()
while mmTouching() == true do
task.wait(.045)
local clone = game.ServerStorage.SunSpots:Clone()
clone.Name = "SunSpots"
SunSpots.Anchored = false
SunSpots.Shape = "Ball"
SunSpots.Material = math.random(1, 45)
SunSpots.Position = script.Parent.Position("Sun Spawner")
SunSpots.Size = Vector3.new (MiniGamba, MiniGamba, MiniGamba)
SunSpots.BrickColor = BrickColor.new(Gamba, Gamba, Gamba)
SunSpots.AssemblyLinearVelocity = Vector3.new(Gamba, Gamba, Gamba)
SunSpots.Parent = game.Workspace
task.spawn(function()
while mmTouching do
print ("Spawn loop N-word")
task.wait(5)
game.Debris:AddItem(SunSpots, 10)
end
end)
end
end
''''
** You are now Level 2! **