How do you make a wave in a game. I am making survive the Tsunami and can't get an ideal wave script. Someone suggested this on a ROBLOX message but it does not work. Here is script,
local part = game.Workspace.Part
local pos = game.Workspace.Part.Position
while true do
part.Size = part.Size + 0, 10, 0
pos = pos + 0, 10, 0
if part.Size == "200" then
local m = Instance.new('Message', game.Workspace)
m.Text = "Round Over!"
wait(7.5)
m.Text:Destroy()
local k = game.Players:GetAllChildren
k.Humanoid.Health = 0
end
end
end
I can see there are a lot of errors. Plz help. The objective of this script is that once the part (wave) reaches the end of the baseplate it will destroy and the message will appear. The size of the basplate is 550 length x 275 width... I might change this later just tell me in the script where to put length and width. thx :)

2 comments
This is not a request website. I recommend looking into CFrame, Vector3, and for loops. The official Roblox wiki as well as the glossary on this website are great sources.
This is a correctly formated question. He just needs help and some explanation, at least he tried to script, thats what really counts :)