|
| 21 Sep 2014 02:27 AM |
Whats wrong with this script?
function onTouched(hit) game.workspace.:findfirstchild.(maps[m]).remove end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 21 Sep 2014 02:33 AM |
function onTouched() game.Workspace:FindFirstChild("maps[m]"):Destroy() end script.Parent.Touched:connect(onTouched)
-i am atlanticblox |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 21 Sep 2014 02:36 AM |
print'//[: Fatal Script Loaded:]\\'
script.Parent.Touched:connect(function(a) game.Workspace:FindFirstChild("NameHere"):Destroy() end)
~ I don't rekt kids, I eat them ~ |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2014 02:37 AM |
| Thanks but what would i do if im using one of the map changer scripts and every round i want the map to be destroyed? |
|
|
| Report Abuse |
|
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
|
| 21 Sep 2014 02:39 AM |
game.workspace.MapName:Destroy() Be sure it's a model.
~ I don't rekt kids, I eat them ~ |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2014 02:40 AM |
| but its a random map every round ._. |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2014 02:41 AM |
Set a variable name and set it so that it says: Workspace.MODELNAMEHERE:clone() Then delete it. When it's time, do this: VARIABLE NAME.Parent = Workspace
Assuming VARIABLE NAME is the variable and MODELNAMEHERE is the model name and the model is in Workspace.
-i am atlanticblox |
|
|
| Report Abuse |
|
|
| |
|