Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

? Need help with this Regen Script.

Asked by
haillin 60
11 years ago

--Hello, I'm a new scripter just getting into the fun of it and I've made this script that checks for int values and upon certain values changes the color of a brick and eventually breaks apart the blocks(it's supposed to do that) and everything in this script works just like I want it to.. except for my regen function (the first function) when I click my regen button on my GUI for the first time it works... however when I try to regen it a second time I get an error saying that

("The Parent property of SDoor is locked")

I'm not sure what this means and upon searching google I came up with nothing ? A little bit of help to enlighten me on what I'm doing wrong would be very much appreciated! I've included a screen shot of the error below

IMAGE LINK: http://imageshack.com/a/img834/284/ruvl.png

01copy=game.Workspace.SDoor.SDoor:Clone()
02 
03function regen()
04modd=game.Workspace.SDoor
05modd2=game.Workspace.SDoor.SDoor
06wait(.2)
07zt=modd2:clone()
08 
09wait(.2)
10 
11modd2:Destroy()
12 
13wait(.5)
14 
15copy.Parent=nil
View all 89 lines...
0
I believe I see your problem.. What is the name of the IntValue inside the 2nd Sdoor... lomo0987 250 — 11y

1 answer

Log in to vote
0
Answered by
haillin 60
11 years ago

Nevermind.. fixed it myself.

Ad

Answer this question