This is for creating neat shake visuals on UI.
Usage example:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UIShake = require(ReplicatedStorage.Packages.UIShake)
local frame = script.Parent
local frame_default_position = frame.Position
local duration = 0.3
local intensity = 35
local distance = 0.01
task.wait(2)
UIShake(frame, frame_default_position, duration, intensity, distance)
Get the module here:
UIShake.rbxm (943 Bytes)