|
|
workspace, Workspace, game.Workspace, Game.Workspace |
|
|
So I could use any of those three, all mean the same, correct? |
|
|
Yeah. Or game:GetService("Workspace"). There are loads of ways. |
|
|
Im really trying to learn this. So, would this work?
Workspace.Players.LordOfWaffle.Head Remove()
Would a period go between head and remove?? |
|
|
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()
|
|
|
Or I guess game.workspace.players.LordOfWaffle.Head Remove()
Does capitalization matter? |
|
blox6137Join Date: 2008-11-23 Post Count: 1109 |
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. |
|
|
|
And if I ran that, would it only happen once or repeat?
I guess if there is no end command it will repeat??? |
|
zub74Join Date: 2008-09-13 Post Count: 489 |
Use :Destroy(). |
|
zub74Join Date: 2008-09-13 Post Count: 489 |
It won't repeat, only run once. Would you like to join a game to talk about it? |
|
|
It would only run once unless it the script was modified and it was placed within a loop. |
|
blox6137Join Date: 2008-11-23 Post Count: 1109 |
We should all join a game and be friends...
yes |
|
|
workspace.name.Head:Destroy()
workspace.name.Head.Parent = nil
workspace.name.Head:remove()
;) |
|
CosmicanaJoin Date: 2013-04-08 Post Count: 23 |
workspace.name.arm)-
workspace.name.toes)-
workspace.name.leg)-
O: |
|
|
Ok, I made my first script!
Workspace.Destroy: part name goes here() |
|
blox6137Join Date: 2008-11-23 Post Count: 1109 |
It's not really that simple xD
You couldn't put your arm, or leg there and have it work. |
|
|
Workspace.PartNameGoesHere:Destroy() |
|
|
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. |
|
blox6137Join Date: 2008-11-23 Post Count: 1109 |
If you destroy the head, it will kill the player. Keep that in mind. Same goes for torso, too. |
|
blox6137Join Date: 2008-11-23 Post Count: 1109 |
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. |
|
|
Ok would this work?
Workspace.part name here:Transparency = 100() |
|
|
Transparency is a property, use something such as,
game.Workspace.Part.Transparency = 0 |
|
|