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 » Scripters
Home Search
 

Re: Custom Events :P

Previous Thread :: Next Thread 
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
05 Aug 2015 11:44 PM
Make this possible:
game.Workspace.Part.Nilled:connect(function(PartThatWentNil) print(PartThatWentNil.." Went nil!"
end)
Report Abuse
DogeKip is not online. DogeKip
Joined: 06 Mar 2011
Total Posts: 6860
05 Aug 2015 11:48 PM
game.Workspace.ChildRemoved:connect(function(part)
if part.Name == "Part" then
function()
end
end)

On and on south of heaven | Previously: awesom914
Report Abuse
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
07 Aug 2015 05:14 PM
No make it like I did up there
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
07 Aug 2015 05:15 PM
Lookup RemoteEvent. Nobody should script for you. :/
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Aug 2015 05:18 PM
It's not directly possible, you have to use a wrapper.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
07 Aug 2015 05:19 PM
Wrap the object and add .Nilled
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
07 Aug 2015 05:20 PM
btw concatenating a userdata will error.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Aug 2015 05:21 PM
.Nilled would be impossible.

When the object goes 'nil' (i.e. there are no more references to it and it gets GCd) you can't grab a reference to it as it gets GCd!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Aug 2015 05:22 PM
'.Nilled would be impossible.'
No it wouldn't, and you proved why in your next sentence. When you parent something to nil, and you still have a reference, it isn't going to be GC'd.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
07 Aug 2015 05:28 PM
What he said is completely valid. OP must state that the part's parent goes nil, not the part itself.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Aug 2015 05:29 PM
ya
Report Abuse
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
07 Aug 2015 06:55 PM
@200 I'm asking this because I like making it harder for the advanced, plus I wouldn't want this for a game, I just wanted to challenge, and remote event wouldn't work for what I challenged them for... xD
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
07 Aug 2015 07:21 PM
Why wouldn't invoking a remote event when a part turns nil work? It seems pretty simple to me.

If you want it literally Part.Billed or whatever, then it's still possible but in my opinion needlessly inefficient and ridiculous. Like the others said, you'd need to use a metatable, aka make a wrapper for the instance.
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
07 Aug 2015 07:21 PM
Part.Nilled* whoops. Phone...
Report Abuse
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
07 Aug 2015 07:22 PM
I find remote events efficient.. :P
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
07 Aug 2015 07:28 PM
I think you are hiding under the guise of "challenging" us when really you just want us to make a script for you or something. Everyone has told you how to do it. We habe done everything except write the script for you, which I am not going to do.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
07 Aug 2015 07:30 PM
remote event? don't you mean bindable event?
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
07 Aug 2015 07:33 PM
Yeah, the only difference is bindable event doesn't cross to client, or doesn't cross to server. I suppose under this context bindableevent would be better.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
08 Aug 2015 04:03 AM
"Why wouldn't invoking a remote event when a part turns nil work? It seems pretty simple to me."
You clearly don't understand some key concept. An instance must exist for it's members (events in this case) to exist.

"I think you are hiding under the guise of "challenging" us when really you just want us to make a script for you or something. Everyone has told you how to do it. We habe done everything except write the script for you, which I am not going to do."
Nope, he much pretty much demanded in the original post haha.
Report Abuse
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
08 Aug 2015 04:31 PM
I don't steal scripts, I only take the script when I really do need it, lol, I stopped free modeling a Long time ago xD
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
08 Aug 2015 04:35 PM
You can use an object called BindableEvent.

Instance.new("BindableEvent",workspace).Name = "YOUR EVEMT!"
workspace["YOUR EVENT!"].Event:connect(function(...)
args = {...}
print(table.concat(args, " \n")))
end)



worksapce["YOUR EVENT!"]:Fire()
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
08 Aug 2015 04:35 PM
Messed up the name once but oh well
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
08 Aug 2015 07:25 PM
@lordrambo
Lol... a RemoteEvent isn't a child or property of the instance you would be attempting to check is nil..... you are the one misunderstanding. Do you even know what a RemoteEvent is? It's not a true "event of ANY instance, therefore your entire argument of why I'm wrong is in itself wrong.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
08 Aug 2015 07:29 PM
If you had any problem solving skills whatsoever you would be able to figure out that I missed the "remote" part of your prior statement. No one was talking about remote events to begin with (until you brought it up needlessly), but rather real events.

If you're not going to use a real event then there is no point of using a remote event. Stop being stuck-up and arrogant.
Report Abuse
200AB is not online. 200AB
Joined: 24 Aug 2010
Total Posts: 1604
08 Aug 2015 07:36 PM
I brought up using a RemoteEvent because it is the simplest, most efficient, and most practical solution to what the OP was talking about.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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