generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: OnPlayer Entered

Previous Thread :: Next Thread 
tekno678 is not online. 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 is not online. tekno678
Joined: 30 Apr 2009
Total Posts: 652
16 Dec 2009 04:33 PM
Bumpty bump.
Report Abuse
bloccoGUIs is not online. bloccoGUIs
Joined: 15 Nov 2009
Total Posts: 361
16 Dec 2009 04:35 PM
The function? There is none.
Report Abuse
tekno678 is not online. 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
bloccoGUIs is not online. bloccoGUIs
Joined: 15 Nov 2009
Total Posts: 361
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 is not online. 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 is not online. 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 is not online. tekno678
Joined: 30 Apr 2009
Total Posts: 652
16 Dec 2009 04:39 PM
oh late post... Thanks!.

FLOODCHECK!!!!!!!!!!!!>
Report Abuse
bloccoGUIs is not online. bloccoGUIs
Joined: 15 Nov 2009
Total Posts: 361
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 is not online. 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
bloccoGUIs is not online. bloccoGUIs
Joined: 15 Nov 2009
Total Posts: 361
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 is not online. 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
bloccoGUIs is not online. bloccoGUIs
Joined: 15 Nov 2009
Total Posts: 361
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
youtuberperson is not online. youtuberperson
Joined: 20 Apr 2008
Total Posts: 2461
16 Dec 2009 04:48 PM
@the dude who said index matters


function OLOLOLOL()
print("j00 wrong mah boi")
end

OLOLOLOL()
Report Abuse
youtuberperson is not online. youtuberperson
Joined: 20 Apr 2008
Total Posts: 2461
16 Dec 2009 04:49 PM
function OLOLOLOL()
print("j00 wrong mah boi")
end

script.Parent.Touched:connect(OLOLOLOL)

rather...
Report Abuse
gaius19 is not online. 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
bloccoGUIs is not online. bloccoGUIs
Joined: 15 Nov 2009
Total Posts: 361
16 Dec 2009 04:54 PM
Nah. It just has :connect(f) and :activate(...). And the connection just has :disconnect().
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image