dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
As the subject said, the MouseClick event, of the ClickDetector should give an additional argument so we gan get the Player's instance of who clicked. (Not required, this will break scripts, as far I know are all arguments optional, but in other scripting languages there are overloads.) |
|
|
Would this allow you to find out who clicked the button?
~{Idiots are fun. No wonder every village wants one.}~
--Support my campaign against spam! Check my profile! |
|
dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
If it's giving the Player's instance (So the game.Players[playername] location), it'll be able to get the player's name using the argument's name .Name, so yes, that's the actual point of this suggestion to find out who clicked. |
|
|
Then I support.
~{Idiots are fun. No wonder every village wants one.}~
--Support my campaign against spam! Check my profile! |
|
|
I thought that was already possible... :o
{"A person must have a certain amount of intelligent ignorance to get anywhere."}
--Support Darklight's campaign against spam! Join his group! |
|
dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
I hope. The brick's Touched event give that argument already. Those ClickDetectors don't. Using a hopperbin (Tool thingy) is possible instead, but not always handy. |
|
|
Darn those hopperbins.
Support.
{"A person must have a certain amount of intelligent ignorance to get anywhere."}
--Support Darklight's campaign against spam! Join his group! |
|
apegareJoin Date: 2008-11-28 Post Count: 665 |
I support. =D |
|
wrathIIJoin Date: 2008-06-19 Post Count: 491 |
Support.
~{I came, I saw, I clicked Post}~ |
|
dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
More support? =} |
|
dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
Bumpie |
|
dino2306Join Date: 2009-08-18 Post Count: 1964 |
its already possible
it uses target
like
function Click()
A = game.Players:GetChildren()
for i = 1,#A do
if A[i].PlayerMouae.Target == acript.Parent then
game.Lighting.ToolNameHere;Clone.Parent = A[i].Backpack
end end end
script.Parent.ClickDetector.MouseClick:connect(Click)
XD pwned the idea |
|
dino2306Join Date: 2009-08-18 Post Count: 1964 |
gah it failed due screen error
my characters are to tiny to read in the forum
fixing soon |
|
dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
Wouldn't an argument be a lot better, and is it even working? :\ |
|
dennisvdzJoin Date: 2008-12-14 Post Count: 3710 |
Bump
@ Dino, what if it's a game where everyone's clicking the button? Or if two people are clicking it so the target's the same? |
|