|
| 21 Jan 2016 01:39 PM |
This only prints when the Torso,Head or HumanoidRootPart touches. shouldn't it print when the legs hit the Terrain like it does with a part? how would i make it fire when the legs touch the terrain ?
function onTouched(hit) print(hit) end workspace.Terrain.Touched:connect(onTouched)
=}0 0{= |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Jan 2016 03:20 PM |
function onTouch(hit) leg = hit.Parent:FindFirstChild("LeftLeg") if leg ~= nil then print "Why am i helping you?" end
game.Workspace.Terrain.Touched:connect(onTouch)
^ Try that. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 03:38 PM |
| I already tried making touched functions with terrain. It doesn't work ingame ;-; |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 03:41 PM |
thanks sketcher28jr but that is not working.may be it's a bug with terrain
=}0 0{= |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 05:49 PM |
has anyone else run across this before?
=}0 0{= |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Jan 2016 06:04 PM |
i see,RecurringNightmare . it seems to fire on the head and torso. the wiki said the Touched event, and TouchEnded event work with terrain.
http://wiki.roblox.com/index.php?title=API:Class/Terrain
=}0 0{= |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 06:05 PM |
| odd. and yeah i read the wiki |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 06:22 PM |
roblox terrain is not very well for scripting
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Jan 2016 08:44 PM |
Though, it is going to be some day. We went from blocky blocks to magnificent works of art in only a few years.
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2016 10:14 PM |
BlockyParts.Touched
Pleasure + 1 |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2016 04:22 PM |
^ you made a tiny mistake its
BlockParts.Touched Pleasure = Pleasure + 1
Funification | Was dominusawesomus | you wil cryying when obama take yur computr |Yee |
|
|
| Report Abuse |
|
|
Scerzy
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1082 |
|
|
| 22 Jan 2016 04:26 PM |
Terrain isn't a part and so doesn't really have an OnTouched function. Actually it doesn't have much of anything to be scripted with. You best bet is to add an invisible brick to cover whatever part of the terrain you want and then add the ontouch script to that instead
|
|
|
| Report Abuse |
|
|