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: Question.

Previous Thread :: Next Thread 
oOMrWonderfulOo is not online. oOMrWonderfulOo
Joined: 12 May 2012
Total Posts: 163
04 Aug 2016 07:10 AM
I dont want a Character to spawn but i want them to be able to interact with the GUI And have the camera work etc.
What script would do this
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
04 Aug 2016 07:12 AM
The only way is to remove the character once it spawns. Player.Character:remove()


Report Abuse
oOMrWonderfulOo is not online. oOMrWonderfulOo
Joined: 12 May 2012
Total Posts: 163
04 Aug 2016 07:14 AM
Where would i put the script? Just in workspace?
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
04 Aug 2016 07:16 AM
Make a localscript.

Player = game.Players.LocalPlayer
Player.CharacterAdded:wait()
Player.Character:remove()


Report Abuse
oOMrWonderfulOo is not online. oOMrWonderfulOo
Joined: 12 May 2012
Total Posts: 163
04 Aug 2016 07:21 AM
It wont work
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
04 Aug 2016 07:22 AM
What do you mean by "won't work"?


Report Abuse
oOMrWonderfulOo is not online. oOMrWonderfulOo
Joined: 12 May 2012
Total Posts: 163
04 Aug 2016 07:23 AM
The character is still there
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
04 Aug 2016 07:23 AM
Did you put the localscript inside of starterpack?


Report Abuse
oOMrWonderfulOo is not online. oOMrWonderfulOo
Joined: 12 May 2012
Total Posts: 163
04 Aug 2016 07:24 AM
It works
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Aug 2016 09:14 AM
Server script:

game.PlayerAdded:connect(function(plr)
plr:LoadCharacter()
wait()
plr:Destroy()
end)
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
04 Aug 2016 09:15 AM
oops plr.Character:Destroy() wrong function lol sorry i am taking some painkillers after surgery and its difficult
Report Abuse
Toonshield is not online. Toonshield
Joined: 04 Mar 2015
Total Posts: 518
04 Aug 2016 09:43 AM
http://wiki.roblox.com/index.php?title=API:Class/Players/CharacterAutoLoads
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
04 Aug 2016 10:21 AM
@Toonshield The player will not receive the GUIs if the character has yet to be spawned.


Report Abuse
Toonshield is not online. Toonshield
Joined: 04 Mar 2015
Total Posts: 518
04 Aug 2016 10:28 AM
Dang if only the server could have an event fire for when the player joins then clone a screen gui into player gui... OH WAIT!

Holy... am I a genius?
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
04 Aug 2016 10:36 AM
@auzer don't use :remove()


Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
05 Aug 2016 06:41 AM
@Soybeen Both remove() and destroy() puts the part's parent to nil. The only difference is that destroy() locks the parent property for further changes. Most scripters prefers using remove(), just like me. I would consider myself as an experienced scripter since I've been studying it for such a long time. It kind of seems like you're trying to argue with me where ever I go since you've been on almost every thread of mine, telling me I am wrong while the majority of users are correcting you and you're obviously failing.


Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
05 Aug 2016 06:47 AM
You are wrong

"@Soybeen Both remove() and destroy() puts the part's parent to nil. The only difference is that destroy() locks the parent property for further changes."
That's not the only difference. Destroy also disconnects all events and probably guarantees the object to be freed from memory as opposed to remove where it'd only be freed when there are no more references to it.

"Most scripters prefers using remove()"
Wrong. People who have a brain use Destroy, people who are stupid use remove.
Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
05 Aug 2016 07:21 AM
Do you mind telling me why, Flux? There is such little difference. I rarely see someone use destroy() inside a script, like it's extremely rare.


Report Abuse
Auzer is not online. Auzer
Joined: 24 Dec 2011
Total Posts: 1590
05 Aug 2016 07:27 AM
I'm sorry Flux, I thought you quoted my entire post. Well yeah, you're right, and Soybeen really busted me this time. I am still used to remove since, yeah, like I mentioned before, I rarely see it in scripts.


Report Abuse
Da_d is not online. Da_d
Joined: 05 Dec 2013
Total Posts: 189
05 Aug 2016 07:40 AM
auzer is the smartest guy alive!!


Report Abuse
Noveric is not online. Noveric
Joined: 04 Aug 2016
Total Posts: 432
05 Aug 2016 07:43 AM
Uh, nobody uses Remove() anymore, everyone good uses Destroy() - people who use Remove() are always very new to scripting or it was coded many years ago. Remove() is deprecated.


Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
05 Aug 2016 07:51 AM
I still think it's incredibly stupid Roblox introduced Destory instead of alter Remove to do what Destroy currently does.
Report Abuse
Noveric is not online. Noveric
Joined: 04 Aug 2016
Total Posts: 432
05 Aug 2016 07:55 AM
Isn't it as a general principle bad to change the functionality of something instead of deprecating it? Because legacy code could rely on the previous functionality? Doesn't really apply in this case, obviously, because the change would be tiny anyway, but I just mean in general.


Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
05 Aug 2016 07:58 AM
In general, for the most part yes. Except in this case of course not.
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