Ello so I have been experimenting with MaxVisibleGraphemes for a project of mine. Anyways, a while ago I tested it with a simple text label with roblox’s example code,
local TweenService = game:GetService("TweenService")
local textObject = script.Parent
local tweenInfo = TweenInfo.new(
4, -- it takes 4 seconds for the effect to complete
Enum.EasingStyle.Sine, -- typing starts fast and slows near the end
Enum.EasingDirection.Out
)
local tween = TweenService:Create(
textObject,
tweenInfo,
{
-- Final value should be the total grapheme count
MaxVisibleGraphemes = utf8.len(textLabel.ContentText)
}
)
tween:Play()
tween.Completed:Wait()
-- Reset the value so it can be tweened again
textObject.MaxVisibleGraphemes = -1
It worked I was happy, anyways now I am moving to have it typewrite a specific text if your in a specific group. So I need help with the code I made which is,
do not judge I am new to using this
local TweenService = game:GetService("TweenService")
local textObject = script.CoreUI.OverheadGui.SecondaryTitle.secMsg
local sec = script.CoreUI.OverheadGui.SecondaryTitle.secMsg
local tweenInfo = TweenInfo.new(
3, -- it takes 4 seconds for the effect to complete
Enum.EasingStyle.Sine, -- typing starts fast and slows near the end
Enum.EasingDirection.Out
)
if player:IsInGroup(rrModule.ErrorBloodline.GroupID) then
local tween = TweenService:Create(
textObject,
tweenInfo,
{
-- Final value should be the total grapheme count
MaxVisibleGraphemes = utf8.len(sec.Text == rrModule.ErrorBloodline.Text)
}
)
tween:Play()
tween.Completed:Wait()
-- Reset the value so it can be tweened again
textObject.MaxVisibleGraphemes = -1
end
Any help would be great 