Typewriting code error, after remote event for typewriting reset and continue words scramble and won't continue working

So whenever I try to change it to something else the output is the same and the error sometimes occurs.
I’m trying to have a TypeWriting text type something but the words mess up??


Here is the code for it, any help would be appreciated?
I want to continue past the end) part but it won’t let me and doesnt work??
Update here is video:
robloxapp-20210821-1139219.wmv (2.6 MB)

Can we have more information? What is the code in the TypeWriter module and what does the hiearchy in your gui look like? The more information you can provide the easier it will be to solve this!

What I want to happen is when a player touches a part after the typewriting code finishes it continues with more words, it does work but the words become all scattered for some reason but there is no red lines underling the code, and the error is: Players.WaterCanxiety.PlayerGui.ScreenGui.Frame.TextLabel.LocalScript:33: invalid argument #3 (string expected, got nil)

There is a RemoteEvent in ReplicatedStorage for a Part in Workspace called “ResetTypeWrites”
the script inside of it contains this: script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) ~= nil then
game.ReplicatedStorage.RemoteEvent:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent))
end
end)

the photo I showed on the original post is the code that controls the type writing messages, the control lock and unlock, and when the RemoteEvent (touching the part) happens that it starts more Type writing code but then the words scatter and jumble.

@Spellwastaken do you know how to fix this do I can type more script after end) it’s ok if you don’t know how to

I apologize for not replying yesterday! It was already past midnight for me.

Can you show the code in the module that handles that typewriting effect?

I’ll show you when I get on my pc

1 Like

do you know how I can continue the code after end)?

I don’t understand, what do you mean?

The left line of code, how would I continue with more typewriter code TypeWriter.typeWrite(script.Parent, “text”)

I think you can just ignore the end). Put the onClientEvent at the beginning of the script. You can just continue with the typewriting even after the end).

1 Like

Kk thank you very much :slight_smile: was just confised

Was it the solution? :slight_smile:

(Character Limit)