Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 29 Aug 2013 05:04 PM |
How would I made a script making it looks like its typing like, really fast and play a sound only to the client I want each letter? Example: "Soquick" "S" 'sound' "So" 'sound' "Soq" 'sound' etc, I want it 0.04 of a second each, I think you would need a for i = loop? also doing string.sub? The varaible with the text is l |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 29 Aug 2013 05:08 PM |
nob='Noobs4Lyf' sound = script.SOUUUUND:clone() local msg = Instance.new('Message', workspace) for i = 1, nob:len() do wait(0.1) msg.Text = msg.Text..nob:sub(i,i) sound.Parent = workspace sound:Play() end game.Debris:AddItem(msg, 3)
-- I didn't test that. |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 29 Aug 2013 05:10 PM |
I want it to be played to the client, pretend msg is defined Why add item to derbis? I have never really used derbis Additem |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 29 Aug 2013 05:11 PM |
| oh nvm, but I have the variable 'l' holding the text |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 29 Aug 2013 05:13 PM |
| Using Debris:AddItem is like a coroutine just removing the child without interfering the script. Parent the msg to the playergui. What 'l'? |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 29 Aug 2013 05:14 PM |
local msg = Instance.new('Message', workspace) for i = 1, l:len() do wait(0.04) sound = Instance.new("Sound", plr) sound.Id = theid sound.Volume = 1 msg.Text = msg.Text..nob:sub(i,i) sound:Play() end |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 29 Aug 2013 05:15 PM |
| Well that won't work. You didn't mention what 'nob' and 'l' was. You can parent the message into the player's PlayerGui. |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 29 Aug 2013 05:16 PM |
| I would change nob to l and l is pre defined, so is the message |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 29 Aug 2013 05:18 PM |
| So what's the problem now? |
|
|
| Report Abuse |
|
|