How do i make gui/text shake?

so basically i am trying to make a gui/text shake in my game but when i do it, it doesn’t look good! i ran out of ideas on how i can make it look actually how i want it to, i tried looking at devforum but no luck. Here’s how i want it to look like:


(Footage taken from: nico’s nextbots)

I would make something like:


local GUI = GUI

local info = TweenInfo.new(math.random(0.01,0.05))
local target = {Offset = GUI.Offset = math.random(0.1,0.05)}

local tweenService = game:GetService(“TweenService”)

local tween = tweenService:Create(GUI, info, target)

tween:Play()

Just a sketch, thsi probably needs to be in a Function

2 Likes

probably try with RunService add a function where the camera would move quickly, for the shaking, try using math.sin(x) and multiply it for how intense you want the shaking to be, and multiply the x by how fast you want it to shake.

i don’t get it… and i didn’t say anything about camera shaking. can you give me a example?

and he still didnt give you an example did he

It doesn’t really matter since I eventually found out myself! I was really new to programming back then, so looking back on this, it’s kinda funny.

You can customize the duration, speed and strength of the shake in this module ShakeModule - Creator Store

Oh this post is from 2023 silly me