SimpleTween - a module to help you animate UI and much more!

A module to help you animate UI and much more! ┃:open_file_folder: GitHub:technologist: Roblox Model

What is in the module? :thinking:

  1. Typewriter effect
    SimpleTween.typewriteText(textElement, text: string, waitPerChar: number, playSound: boolean)

  2. Show/Hide UI element
    SimpleTween.hideObject(object: GuiObject, duration: number)
    SimpleTween.showObject(object: GuiObject, targetSize: UDim2, duration: number)

  3. Shake the player’s camera
    SimpleTween.shakeCamera(humanoid: Humanoid, intensity: number, duration: number)

  4. 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: :open_file_folder: GitHub
Or simply: :technologist: Roblox Model

6 Likes

Market place is down

1 Like

I fixed it, thanks for letting me know! :muscle:

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 TextLabels? why not also TextButtons and TextBoxes?

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!