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 » Scripters
Home Search
 

question about .Touched

Previous Thread :: Next Thread 
LeikaZ is online. 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
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
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 is online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
19 Mar 2016 01:45 PM
no I want it to print like baseplate


Report Abuse
killerbot29003 is online. killerbot29003
Joined: 04 Oct 2014
Total Posts: 3054
19 Mar 2016 01:55 PM
Like this?

script.Parent.Touched:connect(function(t)
print ("Baseplate")
end)



This siggy is copyrighted ©



Report Abuse
LeikaZ is online. 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 is online. 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 is not online. 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 is online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
19 Mar 2016 02:45 PM
omfg i hope you're trolling xD


Report Abuse
LeikaZ is online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
19 Mar 2016 02:46 PM
I use baseplate for example..


Report Abuse
LeikaZ is online. 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 is not online. 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 is online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
19 Mar 2016 02:49 PM
Yeah @Oak


Report Abuse
OakBerry is not online. 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 is online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
19 Mar 2016 02:51 PM
what did it print for you?


Report Abuse
OakBerry is not online. 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 is online. 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
wonderful72pike is online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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