Unhandled Exception Problem

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

Huh? Can you please elaborate on this?

i used a debug error and unhandled exceptions that’s why. anyways, did you have any clues? i need to fix for a unhandled Orb Script.

and also i was planning to Making my orb Bigger and light brighter by Add Value btw. and also Sparkles.

Oh i figured it out!

Before:

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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.