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: Is it game.Workspace or just Workspace. or both?

Previous Thread :: Next Thread 
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 02:44 AM
?
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
23 Jul 2014 02:45 AM
workspace, Workspace, game.Workspace, Game.Workspace
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 02:46 AM
So I could use any of those three, all mean the same, correct?
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
23 Jul 2014 02:47 AM
Yeah. Or game:GetService("Workspace"). There are loads of ways.
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 02:54 AM
Im really trying to learn this. So, would this work?

Workspace.Players.LordOfWaffle.Head Remove()

Would a period go between head and remove??
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
23 Jul 2014 02:57 AM
The character model of the Player would go into Workspace, so you would use,
Workspace.LordOfWaffle.Head
:Remove() is a method, so to use it in this situation you would use,
Workspace.LordOfWaffle.Head:Remove()
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 02:57 AM
Or I guess game.workspace.players.LordOfWaffle.Head Remove()

Does capitalization matter?
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
23 Jul 2014 02:58 AM
No, you'd use a colon(or what ever that word is x3)

Workspace.Players.LordOfWaffle.Head:Destroy()

DO NOT USE REMOVE. REMOVE IS OUT-DATED.
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 02:58 AM
Ah yes, forgot :
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 02:59 AM
And if I ran that, would it only happen once or repeat?

I guess if there is no end command it will repeat???
Report Abuse
zub74 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
23 Jul 2014 02:59 AM
Use :Destroy().
Report Abuse
zub74 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
23 Jul 2014 02:59 AM
It won't repeat, only run once. Would you like to join a game to talk about it?
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
23 Jul 2014 03:00 AM
It would only run once unless it the script was modified and it was placed within a loop.
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
23 Jul 2014 03:01 AM
We should all join a game and be friends...







yes
Report Abuse
InternetGuy is not online. InternetGuy
Joined: 28 Apr 2010
Total Posts: 3385
23 Jul 2014 03:20 AM
workspace.name.Head:Destroy()
workspace.name.Head.Parent = nil
workspace.name.Head:remove()
;)
Report Abuse
cosmic321 is not online. cosmic321
Joined: 08 Apr 2013
Total Posts: 21
23 Jul 2014 03:29 AM
workspace.name.arm)-
workspace.name.toes)-
workspace.name.leg)-

O:
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 03:47 AM
Ok, I made my first script!


Workspace.Destroy: part name goes here()
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
23 Jul 2014 03:48 AM
It's not really that simple xD
You couldn't put your arm, or leg there and have it work.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
23 Jul 2014 03:48 AM
Workspace.PartNameGoesHere:Destroy()
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 03:50 AM
Oh whoops I swapped it. And im no longer trying to kill a player, just remove a block. Im just trying to get the basics.
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
23 Jul 2014 03:53 AM
If you destroy the head, it will kill the player. Keep that in mind. Same goes for torso, too.
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
23 Jul 2014 03:55 AM
If you want to destroy an arm(or leg), it would be:

game.Workspace.PlayerName["Right arm"]:Destroy()
--the 'game.' part is not needed FYI.
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 03:59 AM
Ok would this work?

Workspace.part name here:Transparency = 100()
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
23 Jul 2014 04:01 AM
Transparency is a property, use something such as,
game.Workspace.Part.Transparency = 0
Report Abuse
LordOfWaffle is not online. LordOfWaffle
Joined: 29 Sep 2011
Total Posts: 1211
23 Jul 2014 04:02 AM
No colon or ()?
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