Water Splash Particles Breaking Script

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

The transparency of a ParticleEmmiter requires a NumberSequence.

ParticleEmmiter.Transparency = NumberSequence.new(1)

I hope this helps!

Yes, it works now! Thanks man!

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