Im_King
|
  |
| Joined: 14 May 2010 |
| Total Posts: 2352 |
|
|
| 20 Apr 2016 10:40 AM |
How would you make a script where somthing happens ONLY when its touching the brick.
Such as... particles in a tire become enabled ONLY when its touching the ground to create a dirt effect |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2016 10:44 AM |
| I can help you accept my friend request. |
|
|
| Report Abuse |
|
|
Im_King
|
  |
| Joined: 14 May 2010 |
| Total Posts: 2352 |
|
| |
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 20 Apr 2016 11:12 AM |
Try this.
script.Parent.Touched:connect(function(hit) print'Hello, why did you step on me.. :(' end) |
|
|
| Report Abuse |
|
|
Im_King
|
  |
| Joined: 14 May 2010 |
| Total Posts: 2352 |
|
| |
|
Im_King
|
  |
| Joined: 14 May 2010 |
| Total Posts: 2352 |
|
| |
|
|
| 20 Apr 2016 05:37 PM |
-- assuming the script is in the part
script.Parent.Touched:connect(function(part) -- do stuff end)
-- 4 8 15 16 23 42 |
|
|
| Report Abuse |
|
|
Im_King
|
  |
| Joined: 14 May 2010 |
| Total Posts: 2352 |
|
|
| 20 Apr 2016 05:45 PM |
| So change 'part' to the name of the brick its in? |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Apr 2016 06:07 PM |
wait no, misread that, 'part' is the actual part that is touching your part with the script in it
-- 4 8 15 16 23 42 |
|
|
| Report Abuse |
|
|
Im_King
|
  |
| Joined: 14 May 2010 |
| Total Posts: 2352 |
|
|
| 20 Apr 2016 07:18 PM |
Development, it needs to shut off when not touching the part
Add 25K posts |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2016 07:20 PM |
local Touching = false Part.Touched:connect(function() Touching = true while Touching do wait() end
Part.TouchEnded:connect(function() Touching = false end
Something like that |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2016 08:38 PM |
How would I teleport A player that touches game.Workspace.tp to game.Workspace.tpother please send me the script with all variables |
|
|
| Report Abuse |
|
|