HeistGame
|
  |
| Joined: 09 Apr 2014 |
| Total Posts: 28 |
|
|
| 23 Jul 2015 10:04 PM |
local msg = Instance.new("Hint") a = 300 for i = 1,300 do wait(1) a = a-1 msg.Parent = script.Parent.Parent msg.Text = a .. " Seconds Remaining" if a == 290 then msg:Destroy() game.Workspace.MainScript.Timer.Disabled = true end end
other than this error "02:26:42.107 - The Parent property of Message is locked, current parent: NULL, new parent Workspace 02:26:42.155 - Script 'Workspace.MainScript.Timer', Line 6"
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2015 10:05 PM |
| replace msg:Destroy() with msg.Parent = nil |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2015 10:06 PM |
| local msg = Instance.new("Hint",script.Parent.Parent) |
|
|
| Report Abuse |
|
|
HeistGame
|
  |
| Joined: 09 Apr 2014 |
| Total Posts: 28 |
|
|
| 23 Jul 2015 10:24 PM |
@sensei damn i remember you helping me with this game last year lol but that was weird, it made it disappear then come back and continue the count despite the script being disabled?
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 23 Jul 2015 10:25 PM |
Use guis, don't use Hints or Messages
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
HeistGame
|
  |
| Joined: 09 Apr 2014 |
| Total Posts: 28 |
|
|
| 23 Jul 2015 10:26 PM |
@time why?:P
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 23 Jul 2015 10:26 PM |
They are ugly. If you find guis complicated then I suggest you learn the basics of scripting again.
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
HeistGame
|
  |
| Joined: 09 Apr 2014 |
| Total Posts: 28 |
|
|
| 23 Jul 2015 11:00 PM |
@time I only find the positioning complicated and irritating I like hints however:P
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2015 02:32 AM |
bump
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2015 08:55 AM |
bump
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 24 Jul 2015 08:57 AM |
| At 289 it is trying to reparent a Destroy()'d Instance. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2015 08:59 AM |
@elun take a look at what I said about sensei's solution
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
HeistGame
|
  |
| Joined: 09 Apr 2014 |
| Total Posts: 28 |
|
|
| 24 Jul 2015 05:00 PM |
bump
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2015 05:07 PM |
| Put msg.Parent=script.Parent.Parent outside the loop nub |
|
|
| Report Abuse |
|
|
HeistGame
|
  |
| Joined: 09 Apr 2014 |
| Total Posts: 28 |
|
|
| 24 Jul 2015 08:48 PM |
@pokemon Thanks:) That sorted the timer thing but now the mainscript stops? here's the code for it relating to the timer
gameon = false
if gameon == true and game.Workspace.MainScript.Timer.Disabled == true then msg.Parent = game.Workspace msg.Text = "It was a tie!" end;
for _, player in pairs(players:GetChildren()) do player.TeamColor = specs.TeamColor; end;
for i, connection in next, connections do connection:disconnect(); end;
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2015 10:28 PM |
bump
- Close your eyes, pray for plagues - cleanse this earth, bring doomsday. |
|
|
| Report Abuse |
|
|