Adamnet
|
  |
| Joined: 08 Oct 2007 |
| Total Posts: 7673 |
|
|
| 08 Aug 2011 12:58 PM |
My codings rusty and i dont seem to get this to work
if script.Parent.Fall.Value == 1 then msg = script.Parent:GetChildren() msg.Lemon.Anchored = false wait(5) -- 2 2 2 -- model = script.Parent.Parent.Lemon backup = model:clone() model = backup:clone() model.Parent = script.Parent model:MakeJoints() -- 2 2 2 -- script.Parent.Fall.Value = 0 end
It doesnt give out a error but it wont unanchor everything in the lemon group or regenerate it. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 01:09 PM |
Try this:
if script.Parent.Fall.Value == 1 then msg = script.Parent.Parent -- Is lemon in script.Parent or script.Parent.Parent? msg.Lemon.Anchored = false wait(5)
--This area was too messy and redundant
model = script.Parent.Parent.Lemon:clone() -- See first hint model.Parent = script.Parent model:MakeJoints() -- I don't think you need this, try it anyway
script.Parent.Fall.Value = 0 end |
|
|
| Report Abuse |
|
|
Adamnet
|
  |
| Joined: 08 Oct 2007 |
| Total Posts: 7673 |
|
|
| 08 Aug 2011 01:18 PM |
Not working :(
The lemon is a group (a few lemon models) in script.Parent
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 01:28 PM |
| Is lemon a model or a part? |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2011 01:30 PM |
If lemon is a model:
if script.Parent.Fall.Value == 1 then msg = script.Parent msg.Lemon.Anchored = false wait(5)
model = script.Parent.Lemon:clone() model.Parent = script.Parent model:MakeJoints()
script.Parent.Fall.Value = 0 end
If lemon is a part:
if script.Parent.Fall.Value == 1 then msg = script.Parent msg.Lemon.Anchored = false wait(5)
model = script.Parent.Lemon:clone() model.Parent = script.Parent
script.Parent.Fall.Value = 0 end |
|
|
| Report Abuse |
|
|
Adamnet
|
  |
| Joined: 08 Oct 2007 |
| Total Posts: 7673 |
|
|
| 08 Aug 2011 01:42 PM |
Still not working...
Its 5 lemon blocks in a group(model)
When this is active i want them all to unanchor and 5seconds later regen. |
|
|
| Report Abuse |
|
|
Adamnet
|
  |
| Joined: 08 Oct 2007 |
| Total Posts: 7673 |
|
| |
|