|
| 03 Apr 2015 09:58 AM |
| how do i get a player from clickdetector |
|
|
| Report Abuse |
|
|
Widths
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 41286 |
|
|
| 03 Apr 2015 09:58 AM |
| A player who is clicked, or the clicker? |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
|
| 03 Apr 2015 09:59 AM |
ClickDetector.MouseClick:connect(function(plr) print(plr.Name) end)
squrdwurd da magical shaggy ( ͠° ͟ʖ ͡°) |
|
|
| Report Abuse |
|
|
Widths
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 41286 |
|
|
| 03 Apr 2015 10:00 AM |
local obj = Instance.new("Part", workspace) local click = Instance.new("ClickDetector", obj) click.MouseClick:connect(function(player) console.log(player.Name..' clicked the part') end)
|
|
|
| Report Abuse |
|
|
slxr
|
  |
| Joined: 27 Jan 2012 |
| Total Posts: 1075 |
|
|
| 03 Apr 2015 10:00 AM |
function onClick(playerwhoclicked)
end
script.Parent.ClickDetector.MouseClick:connect(onClick) |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
|
| 03 Apr 2015 10:01 AM |
console.log in ROBLOX? daym!!
squrdwurd da magical shaggy ( ͠° ͟ʖ ͡°) |
|
|
| Report Abuse |
|
|
| |
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
|
| 03 Apr 2015 10:03 AM |
yw You can use the parameter/Variable "plr" to do other stuff with it
squrdwurd da magical shaggy ( ͠° ͟ʖ ͡°) |
|
|
| Report Abuse |
|
|
| |
|
Widths
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 41286 |
|
|
| 03 Apr 2015 10:05 AM |
o sory lol was thinking js
change that to print mb |
|
|
| Report Abuse |
|
|