Page 1 of 1

Sinrings.lua

Posted: Tue Nov 15, 2016 4:21 pm
by Valentine
I WAS BORED SO HAVE AN API THAT MAKES LARRY RINGS GO IN SINE WAVES
Image

It comes with customisability options for easy use!!!!
sinrings.wave
the radius of the wave. Default is 4.
Example (when set to 8):
Image
sinrings.speed
how fast the rings go up (or down if you put a negative number). Default is -1
Example (When set to -4):
Image

YOU CAN EVEN COMBINE THEM OH BOY!

EXAMPLE CODE:
local sinrings = API.load("sinrings")

function onStart()
sinrings.speed = -4
sinrings.wave = 8
end
THAT'S ALL YOU NEED FOR THIS VERY ACCESSIBLE CODE

http://hastebin.com/xodalimope.lua
Put that code into LuaScriptsLib with the name sinrings.lua if you want to use this garbage

(I mean most of this was just made so I could learn how to make APIs so it's not all that fancy, but hey I posted it in case people wanted to use it for something)