|
| 14 May 2016 12:14 PM |
so my script is local r = game.Workspace.Red_Iron_Gate1 if game.Workspace.Reds_Iron_Gate.Humanoid.Health == 0 then r.Part1.Anchored = false
What I'm trying to do is when I kill the "Reds_Iron_Gate" then the "Part1" in "Red_Iron_Gate1" is supposed to be unanchored but every time I kill the "Reds_Iron_Gate" it does nothing Could someone tell me what I'm doing wrong?
Ducks for life |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 May 2016 12:18 PM |
ok I have checked and I've notice that i for got an "end" now my new script is
local r = game.Workspace.Red_Iron_Gate1 if game.Workspace.Reds_Iron_Gate.Humanoid.Health == 0 then r.Part1.Anchored = false end
But even after I did that I still have the same problem
Ducks for life |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 14 May 2016 12:19 PM |
game:GetService("RunService").RenderStepped:connect(function() local r = workspace:WaitForChild("Red_Iron_Gate1") if workspace.Reds_Iron_Gate.Humanoid.Health == 0 then r.Part1.Anchored = false end)
|
|
|
| Report Abuse |
|
|
| |
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 14 May 2016 12:23 PM |
No problem.
I think your probably was that the code only ran once.
|
|
|
| Report Abuse |
|
|