LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 01:41 PM |
Is it possible to make it to print not character parts?
x.Touched:connect(function(otherPart) print(otherPart) end) Because all it did was print character parts.
|
|
|
| Report Abuse |
|
|
|
| 19 Mar 2016 01:44 PM |
do u want it to print characters?
if so then do this
x.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then print(hit.Parent.Name) emd end)
#Strikin' |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 01:45 PM |
no I want it to print like baseplate
|
|
|
| Report Abuse |
|
|
|
| 19 Mar 2016 01:55 PM |
Like this?
script.Parent.Touched:connect(function(t) print ("Baseplate") end)
This siggy is copyrighted ©
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:43 PM |
nope *facepalm*
I want it to print other parts, not character parts. omg
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:44 PM |
it touches other parts but all it does is print character nothing else like baseplate. Idk how to explain else >.<
|
|
|
| Report Abuse |
|
|
OakBerry
|
  |
| Joined: 18 May 2015 |
| Total Posts: 407 |
|
|
| 19 Mar 2016 02:44 PM |
x.Touched:connect(function(otherPart) print(game.Workspace.Baseplate.Name) end) |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:45 PM |
omfg i hope you're trolling xD
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:46 PM |
I use baseplate for example..
|
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:47 PM |
ok here it is, I want it to print what it touches, but all it prints is character parts, nothing else.
|
|
|
| Report Abuse |
|
|
OakBerry
|
  |
| Joined: 18 May 2015 |
| Total Posts: 407 |
|
|
| 19 Mar 2016 02:47 PM |
| Do you want the part to print every object it touches? |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
| |
|
OakBerry
|
  |
| Joined: 18 May 2015 |
| Total Posts: 407 |
|
|
| 19 Mar 2016 02:50 PM |
| Then your script already works, I just tested it. (assuming x is equal to script.Parent) |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:51 PM |
what did it print for you?
|
|
|
| Report Abuse |
|
|
OakBerry
|
  |
| Joined: 18 May 2015 |
| Total Posts: 407 |
|
|
| 19 Mar 2016 02:53 PM |
'baseplate' because that's what it touched.
move the part a little bit up and when it falls down and hits baseplate, it'll print it. |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 19 Mar 2016 02:53 PM |
alright I found out the problem, thanks for helping
|
|
|
| Report Abuse |
|
|
|
| 19 Mar 2016 02:54 PM |
| Oak is right, collision is only registered when the game forms a **new** contact point. If you're placing a brick down and then starting the game, it won't work. |
|
|
| Report Abuse |
|
|