|
| 21 Mar 2013 01:35 PM |
is it possible to change a script from Touched to Clicked Only Changing the function and call line.
example:
function Touched() if a == b then a = c end end script.Parent.Touched:connect(Touched)
------------------------------------------------------------------------------
function Clicked() if a == b then a = c end end script.Parent.ClickDetector.Clicked:connect(Clicked) |
|
|
| Report Abuse |
|
|
Zulsoras
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 963 |
|
|
| 21 Mar 2013 02:20 PM |
If you are asking if that script would work as a touched or a clicked then it depends on what script. Technically it could but you would need to add a click detector
|
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 02:22 PM |
if i use ClickDetector then:
1) whats the call line got to be ?
2) is it possible to track the clicker |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 02:27 PM |
| and can you run a normal debounce with clicks |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 02:38 PM |
The event would be .MouseClick. The parameter would be the "clicker" (Player).
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 02:39 PM |
function Clicked( Clicker ) print( Clicker.Name ) end script.Parent.ClickDetector.MouseClick:connect(Clicked)
(╯°□°)> KMXD
|
|
|
| Report Abuse |
|
|
HaxHelper
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 1208 |
|
|
| 21 Mar 2013 02:40 PM |
| Wait, we can actually get the player who clicked now? |
|
|
| Report Abuse |
|
|
|
| 21 Mar 2013 02:42 PM |
Yes, since at least a year ago.
(╯°□°)> KMXD |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 02:16 AM |
script.Parent.Buy.ClickDetector.MouseClick:connect(function (h) if (not h.Parent:findFirstChild("Humanoid")) then return; end local plr = game.Players:findFirstChild(h.Parent.Name); if (not plr) then return; end
This is part of a script that worked fine with touch but doesnt work with click
any ideas? |
|
|
| Report Abuse |
|
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Mar 2013 06:44 AM |
| the MouseClick event returns the PLAYER who clicked it, not the character. |
|
|
| Report Abuse |
|
|