|
| 06 Oct 2011 12:49 PM |
If I use this
workspace.Part.Touched:wait()
How am I going to get what is hitting the part?
Would this work?
local part = workspace.Part local hit = part.Touched:wait()
print(part.Name.. " was hitted by "..hit.Name)
|
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 06 Oct 2011 12:51 PM |
db = false game.Workspace.Part.Touched:connect(function(h) if db then return end db = true local plr = game.Players:GetPlayerFromCharacter(h.Parent) if plr then print("Why would "..plr.Name.." touch this part? Why go out of his way?") end db = false end) |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2011 12:52 PM |
That's not what I need, I'm not asking a script. Just a simple answer. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
| |
|
| |
|