I was trying to add a wave effect to my boat, but for some reason when I added the Particle’s transparency part of the code, it breaks the code, but when it isn’t in the code. It works completely fine. Help would be very much appreciated. Thanks!
while true do
wait()
if script.Parent.Throttle== 1 then
if value1 < maxspeed then value1 = value1+1 end
script.Parent.Parent.Driving.Value = true
script.Parent.Parent.Particles.Part1.water1.Transparency = 1
script.Parent.Parent.Particles.Part2.water2.Transparency = 1
script.Parent.Parent.Particles.Part3.water3.Transparency = 1
script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVector*value1
script.Parent.Parent.Left.Value = false
script.Parent.Parent.Right.Value = false
end
end