Help with Typewriter Code

Just saying, I found this tutorial on how to make this, so I’ve been customizing the code to do other things and it has mostly worked.

So I’m trying to change the color of text for a typewriter animation after being changed from the default i have set it to.

I’m not sure how to remove this error and make it change from white to black after completing the two before sequences of text.

I would appreciate some help since I don’t usually script and only know limited things about it.

In line 13, instead of

game.StarterGui.ScreenGui.Frame.TypeText.TextColor = Color3.new(0,0,0)  

, do this for line 13:

script.Parent.TextColor = Color3.new(0,0,0)
1 Like

Try this:

script.Parent.TextColor3 = Color3.new(0,0,0)
1 Like

Maybe try this

script.Parent.TextColor3 = Color3.fromRGB(0,0,0)

Try this:

script.Parent.TextColor3 = BrickColor.new("Black")

It won’t work man the error says that it expected Brick Color. Mine uses brick color so try this:

script.Parent.TextColor3 = BrickColor.new("Black")

Do you know how I would code it so when the player touches a specific area the typewrite code can start again?

Yes.I will send you instructions. Give me a scond

1 Like

Create a part in worksspace named “ResetTypeWrites”. Create a remote event in replicated storage named “RemoteEvent”. Put a script inside ResetTypeWrites (the part you create in workspace). Put this in that script:

script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FIndFIrstChild("Humanoid") ~= nil then
        game.ReplicatedStorage.RemoteEvent:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent))
    end
end)

And then in you local script, put this:

game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
    script.Parent.Text = ""
end)
1 Like

Thank you so very much, this help will help me a lot in the future you are very talented ty

Your welcome :slight_smile: We can become friends on roblox okay? Send me a friend request

1 Like