EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
|
| 23 Aug 2015 10:26 AM |
| Where can I find one of these? |
|
|
| Report Abuse |
|
|
EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
|
| 23 Aug 2015 10:40 AM |
| Just a simple brick that when it's touched the name of it changes to 1, then when someone else touches it, it changes to 2, ect, ect... |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 10:44 AM |
x = 0 function namechange() x = x + 1 script.Name = x end
script.Parent.Touched:connect(namgechange()) |
|
|
| Report Abuse |
|
|
EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
|
| 23 Aug 2015 11:29 AM |
script.Parent.Touched:connect(namechange())
It says "Touched is not a valid member of the model" |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:31 AM |
x = 0 function namechange() x = x + 1 script.Name = x end
script.Parent.Touched:connect(namechange())
|
|
|
| Report Abuse |
|
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 23 Aug 2015 11:32 AM |
x = 0 function namechange() x = x + 1 script.Name = x end
script.Parent.OnTouched:connect(namechange) |
|
|
| Report Abuse |
|
|
EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
| |
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 23 Aug 2015 11:34 AM |
| Dont listen to me Im dumb af .3. |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 23 Aug 2015 11:35 AM |
You asked for a brick to do something, someone gives you a script that does exactly that to a brick, then you go and put that script inside of a Model?
Put it in a brick. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:35 AM |
local x = 0 script.Parent.Touched:connect(function() x = x + 1 script.Name = x end)
|
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:36 AM |
no no no
if its not a valid member of model, put it in a part >.< |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 23 Aug 2015 11:37 AM |
| ... then come back and ask why it skips so many numbers. |
|
|
| Report Abuse |
|
|
EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
|
| 23 Aug 2015 11:40 AM |
| It does nothing but create a blank message block on top of the screen, are you sure it works with humanoids? |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:44 AM |
| it doesnt work with humanoids.. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:45 AM |
| but it does work with parts that are part of a humanoid |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:46 AM |
| For instance, torso, right leg, left leg, left arm, right arm, and your head |
|
|
| Report Abuse |
|
|
EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
|
| 23 Aug 2015 11:46 AM |
| But I'm trying to have it displayed, so it's visible in-game |
|
|
| Report Abuse |
|
|
ShungTzu
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 959 |
|
|
| 23 Aug 2015 11:58 AM |
I'm sure that Humanoids don't have Touched events.
I'll guess that what you actually want to do is change the name of a model so that that name gets displayed like a character's name over its head.
Have a Model in workspace. Inside that Model, have a Humanoid and at least 1 part, its Name being "Head". Inside of "Head", put this script:
x = 0 waiting=nil script.Parent.Touched:connect(function() if not waiting then waiting=true x = x + 1 script.Parent.Parent.Name = x wait(1) waiting=nil end end) |
|
|
| Report Abuse |
|
|
EntityXF
|
  |
| Joined: 25 Mar 2009 |
| Total Posts: 370 |
|
| |
|