I made this script using it as a GUI for my Intro to my game. Well, I didn't want to do that anymore since it looked, well, maybe terrible to others. But, now I wanted to make it like a story on something, so I replaced the gui to surfacegui and added all the things in it. This is how the Workspace is laid out and the script:
Workspace Lay-out:
--Workspace
--Part
--Intro(SurfaceGui)
--Intro(Script)
--Play(BoolValue)
--Frame
--Story(TextLabel)
--Title(TextLabel)
Script:
print("Intro is loaded!")
local credits = "" -- Names of robloxians who worked on your game
local story = "Enjoy the game and buy whatever you like. Be sure to comment for any more ideas or anything you want to sell. Give it a thumbs up and/or fav it. Enjoy!" -- Intro story.
function PlayStory(label, frame, story)
for i = 0, 1, 0.1 do
frame.Title.TextTransparency = i
frame.Title.TextStrokeTransparency = i
label.TextTransparency = i
label.TextStrokeTransparency = i
wait(0.1)
end
label.Text = ""
label.TextXAlignment = "Left"
label.TextYAlignment = "Top"
label.Size = UDim2.new(1, 0, 1, 0)
for i = 1, 0, -0.1 do
label.TextTransparency = i
label.TextStrokeTransparency = i
wait(0.01)
end
for thestring in string.gmatch(story, ".") do
label.Text = label.Text..thestring
wait(0.15)
end
for i = 0, 1, 0.1 do
frame.BackgroundTransparency = i
label.TextTransparency = i
label.TextStrokeTransparency = i
wait(0.1)
end
frame.Visible = false
end
local p = script.Parent.Parent.Parent.Parent
local val
if not p:FindFirstChild("Play") then
val = script.Play
val.Parent = p
else
val = p.Play
end
if val.Value == true then
val.Value = false
wait(1)
PlayStory(script.Parent.Story, script.Parent, story)
else
script.Parent.Visible = false
end

1 comment
I'm allergic to people who want me to help on a script that is 50 lines or more.