Poine
|
  |
| Joined: 14 Aug 2011 |
| Total Posts: 391 |
|
|
| 07 Aug 2016 06:40 AM |
for i,v in pairs(game.Workspace.CurMap:GetChildren()) do if v:FindFirstChild("dominationPoints") then print("Map is Domination Compatible") else send("ERROR: This map is not compatible with the gamemode 'Domination'.Map loaded without any gamemodes.","error") print "error" script.Disabled = true end end
Prints "error" , doesn't disable script. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 06:42 AM |
--try this: local clone = script:clone() clone.disabled = true clone.parent = script.Parent; wait() script:destroy() |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 06:45 AM |
After script.Disabled = true put "break".
|
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 06:46 AM |
^^^ Maybe even try i,v in next ,(game.Workspace.CurMap:GetChildren()) do |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 06:49 AM |
That is totally unrelated though. He is pretty much doing that already anyways.
|
|
|
| Report Abuse |
|
|
Poine
|
  |
| Joined: 14 Aug 2011 |
| Total Posts: 391 |
|
|
| 07 Aug 2016 06:52 AM |
Ok guys I did this
local x = script:Clone() x.Disabled = true x.Parent = script.Parent script:Destroy()
and worked
ty |
|
|
| Report Abuse |
|
|