Ad
Log in to vote
0

Issue with nuke kill script when the nuke explodes. Any solutions?

Asked by
xp5u 25
1 year ago

h = Instance.new("Hint", game.ReplicatedStorage) script.Parent.Script.Disabled = true script.Parent.Parent.Alert:Play() wait(3) script.Parent.Parent.Evac:Play() h.Text = "Self-Destruct been has activated." wait(1) h.Text = "You Have 30 Seconds!" script.Parent.Parent.Alarm:Play() script.Parent.Parent.Snapped:Play() wait(1) h.Text = "Self-Destruct 30" wait(1) h.Text = "Self-Destruct 29" wait(1) h.Text = "Self-Destruct 28" wait(1) h.Text = "Self-Destruct 27" wait(1) h.Text = "Self-Destruct 26" wait(1) h.Text = "Self-Destruct 25" wait(1) h.Text = "Self-Destruct 24" wait(1) h.Text = "Self-Destruct 23" wait(1) h.Text = "Self-Destruct 22" wait(1) h.Text = "Self-Destruct 21" wait(1) h.Text = "Self-Destruct 20" wait(1) h.Text = "Self-Destruct 19" wait(1) h.Text = "Self-Destruct 18" wait(1) h.Text = "Self-Destruct 17" wait(1) h.Text = "Self-Destruct 16" wait(1) h.Text = "Self-Destruct 15" wait(1) h.Text = "Self-Destruct 14" wait(1) h.Text = "Self-Destruct 13" wait(1) h.Text = "Self-Destruct 12" wait(1) h.Text = "Self-Destruct 11" wait(1) h.Text = "Self-Destruct 10" wait(1) h.Text = "Self-Destruct 9" wait(1) h.Text = "Self-Destruct 8" wait(1) h.Text = "Self-Destruct 7" wait(1) h.Text = "Self-Destruct 6" wait(1) h.Text = "Self-Destruct 5" wait(1) h.Text = "Self-Destruct 4" wait(1) h.Text = "Self-Destruct 3" wait(1) h.Text = "Self-Destruct 2" wait(1) h.Text = "Self-Destruct 1" wait(1) h.Text = "Self-Destruct 0" wait(1) h.Text = "Self-Destruct!!! Find safe zone (its dont help you ;)" wait(25) h:Remove() wait(15) script.Parent.Parent.Countdown:Play() script.Parent.Parent.Snapped:Stop() script.Parent.Parent.Alarm:Stop() script.Parent.Parent.Music:Play() wait(12) script.Parent.Parent.ExplosionSound:Play() script.Parent.Parent.SBSun.Blast.Disabled = false script.Parent.Parent.SBSun.part.script = false

script is not a valid member of Part "Workspace.Nuke.SBSun.part" - Server - Script:86 is the error, even though SBsun has a part with a script inside

1 answer

Log in to vote
0
Answered by 1 year ago
Edited by Xapelize 11 months ago

What do you want to set false in the script in line 85? You can't just set "false" to a script. Maybe set false to the property, disabled? Try using :WaitForChild(), too. And also in line 76, don't use :Remove(). It is deprecated. Use :Destroy() instead. Lastly, in line 1, what is "Hint" in the Instance.new? That is not a name of an object in Roblox Studio. And also, the error said there is a line 86. Where is it?

0
agreed. but also check if script is captialized on line 85, since it could be looking for "script" when it needs to look for "Script" DarkCaveSpider 25 — 1y
Ad

Answer this question