tekno678
|
  |
| Joined: 30 Apr 2009 |
| Total Posts: 652 |
|
|
| 16 Dec 2009 04:23 PM |
| What is the OnPlayerEntered Function again? the end of it.... after the end...?. |
|
|
| Report Abuse |
|
|
tekno678
|
  |
| Joined: 30 Apr 2009 |
| Total Posts: 652 |
|
| |
|
|
| 16 Dec 2009 04:35 PM |
| The function? There is none. |
|
|
| Report Abuse |
|
|
tekno678
|
  |
| Joined: 30 Apr 2009 |
| Total Posts: 652 |
|
|
| 16 Dec 2009 04:36 PM |
i thought there was...
function OnPlayerEntered? or somthing like that... |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:36 PM |
| Really? You mean that it matters what the index of the function is? You're kidding, right? |
|
|
| Report Abuse |
|
|
gaius19
|
  |
| Joined: 03 Aug 2009 |
| Total Posts: 3159 |
|
|
| 16 Dec 2009 04:37 PM |
function OnPlayerEntered(newPlayer)
end
game.Players.PlayerAdded:connect(OnPlayerEntered)
That? |
|
|
| Report Abuse |
|
|
tekno678
|
  |
| Joined: 30 Apr 2009 |
| Total Posts: 652 |
|
|
| 16 Dec 2009 04:38 PM |
i mean......... i want to know the end of it.... like after
function onClicked
end blah.whatever.parent.clickdectector |
|
|
| Report Abuse |
|
|
tekno678
|
  |
| Joined: 30 Apr 2009 |
| Total Posts: 652 |
|
|
| 16 Dec 2009 04:39 PM |
oh late post... Thanks!.
FLOODCHECK!!!!!!!!!!!!> |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:41 PM |
Using my hooks: Data={} Data.Hooks={} Data.Hooks.Chatted=hook.new("Chatted")
function onChatted(m, s) end Data.Hooks.Chatted:connect(function(message, speaker) onChatted(message, speaker) end)
game.Players.PlayerEntered:connect(function(p) p.Chatted:connect(function(m, r) Data.Hooks.Chatted:activate(m, p) end) end)
Using ROBLOX's connections: game.Players.PlayerEntered:connect(function(p) p.Chatted:connect(function(m, r) --stuff with m and p here end) end)
|
|
|
| Report Abuse |
|
|
gaius19
|
  |
| Joined: 03 Aug 2009 |
| Total Posts: 3159 |
|
|
| 16 Dec 2009 04:43 PM |
@BloccoGuis:
Can you give it an Impulse as a Parameter? |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:43 PM |
Hmm?
The Hook Class comes free with this account's Object Class. The Hook Class is also a model on blocco's account. You can try it out if you want. |
|
|
| Report Abuse |
|
|
gaius19
|
  |
| Joined: 03 Aug 2009 |
| Total Posts: 3159 |
|
|
| 16 Dec 2009 04:45 PM |
I meant Signal...
Impulse is an interesting word though..
print(game.Players.PlayerAdded)
Signal PlayerAdded |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:46 PM |
It has a __tostring metamethod, if that's what you mean.
When you print it it says something like: [somename] Hook. And the connection prints [somename] Hook Connect. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:48 PM |
@the dude who said index matters
function OLOLOLOL() print("j00 wrong mah boi") end
OLOLOLOL() |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:49 PM |
function OLOLOLOL() print("j00 wrong mah boi") end
script.Parent.Touched:connect(OLOLOLOL)
rather... |
|
|
| Report Abuse |
|
|
gaius19
|
  |
| Joined: 03 Aug 2009 |
| Total Posts: 3159 |
|
|
| 16 Dec 2009 04:53 PM |
For now, nevermind...
Have you made any recent updates to the Hook Class? |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2009 04:54 PM |
| Nah. It just has :connect(f) and :activate(...). And the connection just has :disconnect(). |
|
|
| Report Abuse |
|
|