Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to edit Beam curve sizes?

Asked by 4 years ago
Edited 4 years ago
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

0
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. SteamG00B 1633 — 4y
0
i didnt get any errors MadnessMyth 10 — 4y
0
but i think i have to do CurveSize1.Value but i dont know MadnessMyth 10 — 4y

1 answer

Log in to vote
0
Answered by
WBlair 35
4 years ago

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

:)

0
still dosent work? MadnessMyth 10 — 4y
0
idk then WBlair 35 — 4y
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" MadnessMyth 10 — 4y
0
il accpet this answer since someone tried to help. i have learnt a lot more about code now MadnessMyth 10 — 4y
Ad

Answer this question