A module to help you animate UI and much more! ┃
GitHub ┃
Roblox Model
What is in the module? 
-
Typewriter effect
SimpleTween.typewriteText(textElement, text: string, waitPerChar: number, playSound: boolean)
-
Show/Hide UI element
SimpleTween.hideObject(object: GuiObject, duration: number)
SimpleTween.showObject(object: GuiObject, targetSize: UDim2, duration: number)
-
Shake the player’s camera
SimpleTween.shakeCamera(humanoid: Humanoid, intensity: number, duration: number)
-
Simple instance tween (a little bit shorter than using TweenService itself)
SimpleTween.tween(instance: Instance, goal, duration: number, play: boolean)
Get the SimpleTween module here:
GitHub
Or simply:
Roblox Model
6 Likes
I fixed it, thanks for letting me know! 
what method are you using for the typewriter effect? are you using MaxVisibleGraphemes
, or are you using string.sub
and actually altering the string rather than just the amount shown?
also why is typewriter effect only available for TextLabel
s? why not also TextButton
s and TextBox
es?
1 Like
You can see the source code on GitHub in the main.lua…
Anyways, it uses string.sub for the typewriter effect, is a problem with that?
I made it work with all UI text elements like: text labels, text buttons, and other UI text elements!
1 Like
ah the type in your example only has TextLabel
, which made me assume it wasn’t usable on the other things.
as for if it used sub
or not, it just changes how it looks if you have TextScaled
enabled or not, since if you change the string it adjusts the size, but if you change the visible graphemes it doesn’t change sizes
1 Like
I can make it support both ways, if u want. (:
Just say if u want…
NEW UPDATE!
SHAKING CAMERA!
Example code:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SimpleTween = require(ReplicatedStorage.SimpleTween.Main)
local player = Players.LocalPlayer
local character = player.Character
local humanoid = character:FindFirstChildOfClass("Humanoid")
SimpleTween.shakeCamera(humanoid, 0.1, 1)
--PARAMETERS: the player humanoid, shake intensity (recommended between 0 to 1), duration in seconds
The module has been updated!
Get the new version on Github or on Roblox!