generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: ..name..

Previous Thread :: Next Thread 
tinytok is not online. tinytok
Joined: 11 Aug 2009
Total Posts: 1301
20 Oct 2011 10:12 PM
[ Content Deleted ]
Report Abuse
dragon829 is not online. 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 is not online. 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 is not online. 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 is not online. 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
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
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
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
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 is not online. 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
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
20 Oct 2011 11:23 PM
@Grimm

I also added a 'local' key for the variable. >:D
Report Abuse
OKevinO is not online. 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
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
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 is not online. 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
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
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 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
21 Oct 2011 02:14 AM
[ Content Deleted ]
Report Abuse
babyzander44 is not online. babyzander44
Joined: 14 Aug 2011
Total Posts: 756
21 Oct 2011 02:15 AM
@ox

i always thought you used fenv with for loops lol
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
21 Oct 2011 02:22 AM
[ Content Deleted ]
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
21 Oct 2011 02:23 AM
@oxcool1

Oh, now I know. Thanks for the information.
Report Abuse
OKevinO is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image