Ok, so say this is your old code:
player.CharacterAdded:Connect(function(character)
wait(5)
MakePuke(character)
end)
Where MakePuke
is the contents of the entire block under the player.CharacterAdded
function, and makes the character
puke.
Your new code would use a for loop to make character
puke multiple times, and therefore make multiple puke blocks in a stream:
player.CharacterAdded:Connect(function(character)
wait(5)
for i = 1, 10 do -- make character puke a block 10 times
MakePuke(character)
wait(0.1) -- wait a little bit before making the next puke so its a stream
end
end)
If you want to know what a for loop is, try studying it in the Lua PiL, here’s a link: Programming in Lua : 4.3.4
That link doesn’t seem very helpful though, so you should actually test the code if you have the chance. Otherwise, reply/DM if you need more info.