Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

I am making a story game, I want a rig to say something. What is wrong though?

Asked by
merthjm -8
4 years ago

game.Workspace.Text:GetPropertyChangedSignal("Value"):Connect(function() local text = script.Parent if game.Workspace.Text.Value == 1 then script.Parent.Parent.Visible = true text.Text = "H" wait(.05) text.Text = "He" wait(.05) text.Text = "Hel" wait(.05) text.Text = "Hell" wait(.05) text.Text = "Hello" wait(.05) text.Text = "Hello f" wait(.05) text.Text = "Hello fu" wait(.05) text.Text = "Hello fut" wait(.05) text.Text = "Hello futu" wait(.05) text.Text = "Hello futur" wait(.05) text.Text = "Hello future J" wait(.05) text.Text = "Hello future Je" wait(.05) text.Text = "Hello future Jedi" wait(.05) text.Text = "Hello future Jedi/" wait(.05) text.Text = "Hello future Jedi/s" wait(3) text.Text = "S" wait(.05) text.Text = "St" wait(.05) text.Text = "Sta" wait(.05) text.Text = "Star" wait(.05) text.Text = "Start" wait(.05) text.Text = "Startl" wait(.05) text.Text = "Startle" wait(.05) text.Text = "Startled" wait(.05) text.Text = "Startled y" wait(.05) text.Text = "Startled yo" wait(.05) text.Text = "Startled you" wait(.05) text.Text = "Startled you m" wait(.05) text.Text = "Startled you mu" wait(.05) text.Text = "Startled you mus" wait(.05) text.Text = "Startled you must" wait(.05) text.Text = "Startled you must n" wait(.05) text.Text = "Startled you must no" wait(.05) text.Text = "Startled you must not" wait(.05) text.Text = "Startled you must not b" wait(.05) text.Text = "Startled you must not be" wait(.05) text.Text = "Startled you must not be." wait(.05) wait(3) text.Text = "F" wait(.05) text.Text = "Fo" wait(.05) text.Text = "For" wait(.05) text.Text = "For I" wait(.05) text.Text = "For I a" wait(.05) text.Text = "For I am" wait(.05) text.Text = "For I am M" wait(.05) text.Text = "For i am Ma" wait(.05) text.Text = "For I am Mas" wait(.05) text.Text = "For I am Mast" wait(.05) text.Text = "For I am Maste" wait(.05) text.Text = "For I am Master" wait(.05) text.Text = "For I am Master Y" wait(.05) text.Text = "For i am Master Yo" wait(.05) text.Text = "For I am Master Yod" wait(.05) text.Text = "For I am Master Yoda" wait(.05) text.Text = "For I am Master Yoda." wait(3) text.Text = "S" wait(.05) text.Text = "Se" wait(.05) text.Text = "See" wait(.05) text.Text = "See m" wait(.05) text.Text = "See me" wait(.05) text.Text = "See me y" wait(.05) text.Text = "See me yo" wait(.05) text.Text = "See me you" wait(.05) text.Text = "See me you c" wait(.05) text.Text = "See me you ca" wait(.05) text.Text = "See me you can" wait(.05) text.Text = "See me you cann" wait(.05) text.Text = "See me you canno" wait(.05) text.Text = "See me you cannot" wait(.05) text.Text = "See me you cannot." wait(3) text.Text = "C" wait(.05) text.Text = "Co" wait(.05) text.Text = "Com" wait(.05) text.Text = "Comi" wait(.05) text.Text = "Comin" wait(.05) text.Text = "Coming" wait(.05) text.Text = "Coming I" wait(.05) text.Text = "Coming I a" wait(.05) text.Text = "Coming I am" wait(.05) text.Text = "Coming I am." wait(3) text.Text = "H" wait(.05) text.Text = "He" wait(.05) text.Text = "Hel" wait(.05) text.Text = "Hell" wait(.05) text.Text = "Hello" wait(.05) text.Text = "Hello!" wait(3) text.Text = "F" wait(.05) text.Text = "Fo" wait(.05) text.Text = "Fol" wait(.05) text.Text = "Foll" wait(.05) text.Text = "Follo" wait(.05) text.Text = "Follow" wait(.05) text.Text = "Follow m" wait(.05) text.Text = "Follow me" wait(.05) text.Text = "Follow me y" wait(.05) text.Text = "Ffollow me yo" wait(.05) text.Text = "Follow me you" wait(.05) text.Text = "Follow me you w" wait(.05) text.Text = "Follow me you wi" wait(.05) text.Text = "Follow me you wil" wait(.05) text.Text = "Follow me you will" wait(.05) text.Text = "Follow me you will." wait(9) text.Text = "R wait(0.5) text.Text = "Re" wait(0.5) text.Text = "Rea" wait(0.5 text.Text = "Reac" wait(0.5) text.Text = "Reach" wait(0.5) text.Text = "Reach m" wait(0.5) text.Text = "Reach my" wait(0.5) text.Text = "Reach my po" wait(0.5) text.Text = "Reach my pos" wait(0.5) text.Text = "Reach my posi" wait(0.5) text.Text = "Reach my posit" wait(0.5) text.Text = "Reach my positi" wait(0.5) text.Text = "Reach my positio" wait(0.5) text.Text = "Reach my position" wait(0.5) text.Text = "Reach my position." wait(2) text.Text = "R" wait(0.5) text.Text = "Re" wait(0.5) text.Text = "Rem" wait(0.5) text.Text = "Reme" wait(0.5) text.Text = "Remem" wait(0.5) text.Text = "Rememb" wait(0.5) text.Text = "Remembe" wait(0.5) text.Text = "Remember" wait(0.5) text.Text = "Remember," wait(0.5) text.Text = "Remember, t" wait(0.5) text.Text = "Remember, tr" wait(0.5) text.Text = "Remember, tru" wait(0.5) text.Text = "Remember, trus" wait(0.5) text.Text = "Remember, trust" wait(0.5) text.Text = "Remember, trust t" wait(0.5) text.Text = "Remember, trust th" wait(0.5) text.Text = "Remember, trust the" wait(0.5) text.Text = "Remember, trust the f" wait(0.5) text.Text = "Remember, trust the fo" wait(0.5) text.Text = "Remember, trust the for" wait(0.5) text.Text = "Remember, trust the forc" wait(0.5) text.Text = "Remember, trust the force" wait(0.5) text.Text = "Remember, trust the force." wait(3)

end
    script.Parent.Parent.Visible = false
    game.ReplicatedStorage.OpenDoor:FireServer()

end)

script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid")then game.Workspace.Text.Value = 1 end end)

Success 20:38:35.560 - Plugin_5056462914.Model.Plugin.AnimationEditor:5841: Expected identifier when parsing expression, got ']' Loaded 20:38:39.093 - Go to Game Settings and turn on Allow HTTP requests. Loaded. :) 20:39:12.613 - Plugin_5056462914.Model.Plugin.AnimationEditor:5841: Expected identifier when parsing expression, got ']' 20:39:31.591 - Players.merthjm.PlayerGui.text.Frame.TextLabel.LocalScript:207: Expected identifier when parsing expression, got malformed string 20:40:14.725 - ScriptNavigationHandler : No script currently available.

2
holy shit Subsz 366 — 4y
0
well said Utter_Incompetence 856 — 4y
0
Okay zboi082007 270 — 4y
0
Okay zboi082007 270 — 4y
View all comments (11 more)
0
Okay zboi082007 270 — 4y
0
Okay zboi082007 270 — 4y
0
Okay zboi082007 270 — 4y
0
Okay zboi082007 270 — 4y
0
imagine lagging zboi082007 270 — 4y
1
holy shit bro CaIcuIati0n 246 — 4y
0
yikes synkrio 281 — 4y
1
this whole post is a train wreck TheBigBro122 427 — 4y
1
What the hell Cynical_Innovation 595 — 4y
0
Can you put all of your code in a lua block? It's easier to read when you do so IAmNotTheReal_MePipe 418 — 4y
0
satan just peed on my eyeballs greatneil80 2647 — 4y

3 answers

Log in to vote
1
Answered by 4 years ago

Put your code in


0
YES!!! SO PEOPLE CAN READ ifreakinlostmyacount 52 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

This isn't how you stitch together words one a time, learn about string manipulation first

0
yea emervise 123 — 4y
Log in to vote
0
Answered by
emervise 123
4 years ago

Concatenate it. example:

local text = game.StarterGui.Text.text

text = (text.."i")

warning: JUST AN EXAMPLE

0
I made a mistake sorry: you cannot do the property for the variable i think emervise 123 — 4y
0
nope blockmask 374 — 4y

Answer this question