This script completely stopped working with no errors. Quite confused by this. The script should make text type out like a character talking in story games. Here’s the script:
local textLabel = script.Parent:WaitForChild(“Main”):WaitForChild(“Text”)
game.StarterGui.Scrolling.Enabled = false
wait(10)
game.StarterGui.Scrolling.Enabled = true
local function typewrite(object, text)
for i = 1,#text,1 do
object.Text = string.sub(text,1,i)
wait(0.05)
end
end
typewrite(textLabel,“You’ve been asleep for 10 days, run at the wall in front of you”)
Copying’s not allowed? It isn’t copying if I already made the script. Also, I made it a free model so people can use it and help me. There’s a link to the free model in the post.
You must use PlayerGui, as it will be displayed on the player’s screen
local textLabel = script.Parent:WaitForChild("Main"):WaitForChild("Text")
local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
PlayerGui.Scrolling.Enabled = false
wait(10)
PlayerGui.Scrolling.Enabled = true
local function typewrite(object, text)
for i = 1,#text,1 do
object.Text = string.sub(text,1,i)
wait(0.05)
end
end
typewrite(textLabel,"You’ve been asleep for 10 days, run at the wall in front of you")
local textLabel = script.Parent:WaitForChild("Main"):WaitForChild("Text")
script.Parent.Scrolling.Enabled = false
wait(10)
script.Parent.Scrolling.Enabled = true
local function typewrite(object, text)
for i = 1, #text do
object.Text = text:sub(1,i)
wait(0.05)
end
end
typewrite(textLabel,"You’ve been asleep for 10 days, run at the wall in front of you")