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: Need Help

Previous Thread :: Next Thread 
Ducky_Duck is not online. Ducky_Duck
Joined: 30 Dec 2013
Total Posts: 129
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
spartan6241 is not online. spartan6241
Joined: 15 Jun 2014
Total Posts: 793
14 May 2016 12:15 PM
Check for any errors
Report Abuse
Ducky_Duck is not online. Ducky_Duck
Joined: 30 Dec 2013
Total Posts: 129
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 is not online. 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
Ducky_Duck is not online. Ducky_Duck
Joined: 30 Dec 2013
Total Posts: 129
14 May 2016 12:21 PM
ty


Ducks for life
Report Abuse
RobuxLife is not online. 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
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