Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how is a print messing up a localscript? [answered]

I had a localscript, it worked fine, i added one print statement -print('test)'- then it didnt work, i removed the print, it didnt work again, i havent done anything to that script just added something to print and it didnt work again!

while wait(.5) do
	if math.sqrt((math.pow(script.Parent.badcirc.Position.X.Scale-script.Parent.circ.Position.X.Scale, 2))+(math.pow(script.Parent.badcirc.Position.Y.Scale-script.Parent.circ.Position.Y.Scale, 2))) <= 0.12 and game.Players.LocalPlayer.Leaderstats.Pass == false then
		print('nothing') --it worked before, now it doesnt, well i had something else here it worked but it didnt after i added this
	end
end

2 comments

0

Check if your if statement is actually ran. Check if all the values equal true.

0

they are

1 answer

i missed .Value, i didnt change the if statement though... must have been an accident

This discussion is preserved as it was. New answers, comments, and votes are closed.