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

How do I fix WaterWaveSize not changing sizes in my script?

I am attempting to change the size of the waves, but when they are tested nothing happens.

while true do
print ("Weather: Neutral")
script.Parent.Terrain.WaterWaveSize = 0.15
	wait (15)
	print ("Weather: Wave Size: 1")
script.Parent.AlarmSFX:Play()
script.Parent.Terrain.WaterWaveSize = 1
wait (30)
end

It remains the same size. I have checked output for any errors, but nothing happens.

1 answer

✓ Accepted answer

I'm assuming your script is located inside of Workspace. I don't really see an error with your script, aside from incorrect indentation. Try this:

while true do
	print("Weather: Neutral")
	script.Parent.Terrain.WaterWaveSize = 0.15
	wait(15)
	print("Weather: Wave Size: 1")
	script.Parent.AlarmSFX:Play()
	script.Parent.Terrain.WaterWaveSize = 1
	wait(30)
end

Also, please remove the spaces between your wait and print statements, it's quite messy and confusing (e.g wait (30) is wrong, however wait(30) is correct)

Have a nice day!

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