-- LocalScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local SpringModule = require(ReplicatedStorage.spring)
local mySpring = SpringModule.create()
local Random = random.new()
RunService.RenderStepped:Connect(function(DeltaTime)
local Movement = mySpring:update(DeltaTime)
workspace.springPart.CFrame = CFrame.new(movement.x, 5, 0)
end)
while wait(Random:NextNumber(0.1, 1)) do
mySpring:shove(Vector3.new(Random:NextNumber(-25, 25), 0, 0))
end
To embed this project on your website, copy the following code and paste it into your website's HTML: