while true do wait()
script.Parent.CurveSize1=script.Parent.CurveSize1+math.random(-0.3,0.6)
script.Parent.CurveSize0=script.Parent.CurveSize0+math.random(-0.3,0.6)
if script.Parent.CurveSize1>=1.3 then
script.Parent.CurveSize1=1.299
else if script.Parent.CurveSize0>=1.3 then
script.Parent.CurveSize0=1.299
end
end
end
✓ ANSWER ACCEPTED
How to edit Beam curve sizes?
1 answer
✓ Accepted answer
Don't use else if, use elseif. That is why your script broke.
while true do wait()
script.Parent.CurveSize1=script.Parent.CurveSize1+math.random(-0.3,0.6)
script.Parent.CurveSize0=script.Parent.CurveSize0+math.random(-0.3,0.6)
if script.Parent.CurveSize1>=1.3 then
script.Parent.CurveSize1=1.299
elseif script.Parent.CurveSize0>=1.3 then
script.Parent.CurveSize0=1.299
end
end
:)
4 comments
0
still dosent work?
0
idk then
0
i just realized why. math.random (-0.3,0.6) its a int vlue so i have to do it like: "math.random(-1300,1600) /1000"
0
il accpet this answer since someone tried to help. i have learnt a lot more about code now
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
If you want help, tell us what errors you get, what is happening, and what you want to happen. Also, please don't delete all of your script's indentation before uploading, it auto indents and it doesn't make sense to spend time to remove it.
i didnt get any errors
but i think i have to do CurveSize1.Value but i dont know