Hi There, i got a problem for my orb script, i was Scripting to make Orb Bigger by Add Value, and i set none to Unhandled Exceptions before i run the game to Test. and for some reason my script is not handled with no errors, etc. so please do you have any clues do get rid of problem?
Here’s a Script:
while wait() do
local AddValue = script.Parent.Add
script.Parent.Size = 0.2 + AddValue.Value / 275
script.Parent.PointLight = 1.5 + AddValue.Value / 75
if AddValue.Value >= 25 then
script.Parent.Sparkles.Enabled = true
else
script.Parent.Sparkles.Enabled = false
end
end
while wait() do
local AddValue = script.Parent.Add
script.Parent.Size = 0.2 + AddValue.Value / 275
script.Parent.PointLight = 1.5 + AddValue.Value / 75
if AddValue.Value >= 25 then
script.Parent.Sparkles.Enabled = true
else
script.Parent.Sparkles.Enabled = false
end
end
After:
while wait() do
local AddValue = script.Parent.Add
script.Parent.Size = Vector3.new(0.2 + AddValue.Value / 275, 0.2 + AddValue.Value / 275, 0.2 + AddValue.Value / 275)
script.Parent.PointLight.Brightness = 1.5 + AddValue.Value / 75
if AddValue.Value >= 25 then
script.Parent.Sparkles.Enabled = true
else
script.Parent.Sparkles.Enabled = false
end
end