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 » Scripters
Home Search
 

Re: What is this error and how can I fix it?

Previous Thread :: Next Thread 
HeistGame is not online. 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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
23 Jul 2015 10:05 PM
replace msg:Destroy() with msg.Parent = nil
Report Abuse
Npokemonmaster2alt is not online. Npokemonmaster2alt
Joined: 13 Dec 2014
Total Posts: 135
23 Jul 2015 10:06 PM
local msg = Instance.new("Hint",script.Parent.Parent)
Report Abuse
HeistGame is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
PrayForPIagues is not online. PrayForPIagues
Joined: 22 May 2009
Total Posts: 14078
24 Jul 2015 02:32 AM
bump

- Close your eyes, pray for plagues - cleanse this earth, bring doomsday.
Report Abuse
PrayForPIagues is not online. PrayForPIagues
Joined: 22 May 2009
Total Posts: 14078
24 Jul 2015 08:55 AM
bump

- Close your eyes, pray for plagues - cleanse this earth, bring doomsday.
Report Abuse
eLunate is not online. 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
PrayForPIagues is not online. PrayForPIagues
Joined: 22 May 2009
Total Posts: 14078
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 is not online. 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
Npokemonmaster2alt is not online. Npokemonmaster2alt
Joined: 13 Dec 2014
Total Posts: 135
24 Jul 2015 05:07 PM
Put msg.Parent=script.Parent.Parent outside the loop nub
Report Abuse
HeistGame is not online. 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
PrayForPIagues is not online. PrayForPIagues
Joined: 22 May 2009
Total Posts: 14078
24 Jul 2015 10:28 PM
bump

- Close your eyes, pray for plagues - cleanse this earth, bring doomsday.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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