tinytok
|
  |
| Joined: 11 Aug 2009 |
| Total Posts: 1301 |
|
| |
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
|
| 20 Oct 2011 10:15 PM |
try this
m = Instance.new("Hint") m = game.Workspace.Hint -- Change to message or hint w/e is used for name = tinytok m.Text = "Hello, this is being used by "..name.."" wait(1) end wait(2) m:remove() |
|
|
| Report Abuse |
|
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
|
| 20 Oct 2011 10:19 PM |
Hey, Try that instead
m = Instance.new("Hint") m = game.Workspace.Hint -- Change to message or hint w/e is used for name = tinytok m.Text = "Hello, this is being used by "..name.."" wait(3) m:remove() end |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 20 Oct 2011 11:17 PM |
m = Instance.new("Hint",Workspace) name = "tinytok" m.Text = "Hello, this is being used by "..name.."." wait(2) m:remove()
I'm not sure why, but it bothers me when people continue a string from a value, with nothing inside that string.
For example, if you did not want the period punctuation, then you could just use..
m = Instance.new("Hint",Workspace) name = "tinytok" m.Text = "Hello, this is being used by "..name wait(2) m:remove() |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 20 Oct 2011 11:19 PM |
Oh, and to explain why I removed the m.Parent line..
Instance.new(obj_string,Parent)
Example..
Instance.new("Part",Workspace) This would insert a new Part, which is in string form, into Workspace, which is separated by the close quotation, and a comma. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2011 11:19 PM |
m = Instance.new("Hint", workspace) local name = "tinytok" m.Text = "Hello, this is being used by " .. name .. "." wait(3) m:remove() |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2011 11:20 PM |
| Woah, Grimm, ours looks almost exactly the same. :P I just used a space in mine. :D |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 20 Oct 2011 11:21 PM |
I saw that, too. :x
You had a space after your comma, a lower-cased 'w' in 'workspace', and your 'wait' lasted one second longer than mine. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2011 11:23 PM |
@Grimm
I also added a 'local' key for the variable. >:D |
|
|
| Report Abuse |
|
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 21 Oct 2011 12:07 AM |
GUYS GUSY GUYS LOOK
m = Instance.new("Hint") m.Parent = workspace for name = tinytok m.Text = "Hello, this is being used by "..name.."" wait(1) end wait(2) m:remove()
since "for name = tinytok" then do this
m = Instance.new("Hint") m.Parent = workspace for name = tinytok m.Text = "Hello, this is being used by "..for name.."" wait(1) end wait(2) m:remove()
or just do this!!!
m = Instance.new("Hint") m.Parent = workspace for name = tinytok m.Text = "Hello, this is being used by tinytok" wait(1) end wait(2) m:remove()
its that simple!
|
|
|
| Report Abuse |
|
|
|
| 21 Oct 2011 12:16 AM |
@OKevinO
None of those would work. At least, I think the second will, but you never put quotes to indentify the variable to contain a string. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 21 Oct 2011 12:18 AM |
@OKevinO If you want to help ppl (And not just get forum posts on SH) You have to know how to script, and dont misinform others |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2011 02:12 AM |
@0Kevin0 None of those would work. Variables don't work with spaces. They also doesn't work when the first character is a number and also doesn't when they have special characters. |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 21 Oct 2011 02:15 AM |
@ox
i always thought you used fenv with for loops lol |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 21 Oct 2011 02:23 AM |
@oxcool1
Oh, now I know. Thanks for the information.
|
|
|
| Report Abuse |
|
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 16 Mar 2013 09:26 AM |
| Sorry.... wasn't me, that was the hacker that hacked my account for 2 - 3 years xD... I myself know how to script that, but i wouldn't have written it in that way. |
|
|
| Report Abuse |
|
|