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
 

Remove Script out of player?

Previous Thread :: Next Thread 
boneman529 is not online. boneman529
Joined: 21 Mar 2010
Total Posts: 392
10 Nov 2014 03:03 PM
When I'm in studio and I play solo it shows a model of me called "Player" and I want to remove a certain script from that player so when I join it removes it on start?



How would I do that?
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
10 Nov 2014 03:05 PM
It's actually pretty simple... But I'll see who else will say :P -Hint- It has to do with repeat wait() until
Report Abuse
inapt is not online. inapt
Joined: 04 Oct 2008
Total Posts: 11666
10 Nov 2014 03:05 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
char:WaitForChild("Name_Of_Script"):Destroy()
end)
end)


-ForeverDev
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
10 Nov 2014 03:05 PM
game.Players.PlayerAdded:connect(function(plr)
plr.CharactedAdded:connect(function(char)
if char:findFirstChild("ScriptName") then
char["ScriptName"]:remove()
end
end)
end)
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
10 Nov 2014 03:06 PM
dont use inapt's it'll break if the script isn't in the character
Report Abuse
inapt is not online. inapt
Joined: 04 Oct 2008
Total Posts: 11666
10 Nov 2014 03:09 PM
well if you know the script is in the character then that will work...

theres no logic in removing something that u dont know is there or not


-ForeverDev
Report Abuse
boneman529 is not online. boneman529
Joined: 21 Mar 2010
Total Posts: 392
10 Nov 2014 03:10 PM
Thanks guys but used inapts and worked perfect
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