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

What should I use for a script on a Type Writer Effect?

Asked by 5 years ago

I have asked this question, and have received answers, but they do not answer the question. I am curious what type of script I would use. I do not need a script key to help, I already have it solved now.

0
In the future, please refrain from questions like these for a plethora of reasons. Complaining about a question recieving bad answers is one thing, posting a question where you do that is completely unnecessary. theking48989987 2147 — 5y
0
Secondly, please refrain from posting vague questions, and keep them descriptive, this helps people better understand your issue, and also lessens the chance they misunderstand your issue due to ambiguity theking48989987 2147 — 5y
0
Okay, I will try using this instead. Thank you. nameofdoam -3 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Use a LocalScript for a "Writer Effect" on the Client

Use a Script for a "Writer Effect" on the Server.

0
I will attempt to try this. Thank you for helping me! nameofdoam -3 — 5y
0
be sure to accept this answer is this helps please! Tyler090130 619 — 5y
0
I will try. nameofdoam -3 — 5y
Ad
Log in to vote
1
Answered by
VitroxVox 884 Moderation Voter
5 years ago
Edited 5 years ago

Depends what you want to do with it, if it's like local based stuff which you don't need information from the server to get that text , well to be honest you should always use a localscript for a type-writer effect unless it's not a client.

LocalScript: (put this insnide StarterGui)

game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function(txt)
    for i = 1,string.len(txt) do
        script.Parent.frame.txt.Text = string.sub(txt,1,i)
        wait(.1)
    end
end)

ServerScript: (put this insnide ServerScriptService)

game.ReplicatedStorage.RemoteEvent:FireClient(game.Players.Zetruis,"test")
game.ReplicatedStorage.RemoteEvent:FireAllClients("test")

be sure to insert a RemoteEvent insnide replicatedstorage

but honestly you just need this as a localscript inside startergui for it:

function typewriter(text)
    for i = 1,string.len(txt) do
        return = string.sub(txt,1,i)
        wait(.1)
    end
end

print(typewriter("test"))
0
This is also an answer. nameofdoam -3 — 5y

Answer this question