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: Roblox is Being Stupid

Previous Thread :: Next Thread 
tentastic2 is not online. tentastic2
Joined: 03 May 2009
Total Posts: 241
27 Nov 2014 12:05 AM
repeat
door.Size = Vector3.new(door.Size.x, door.Size.y - 0.2, door.Size.z)
door.CFrame = door.CFrame + Vector3.new(0, 0.1, 0)
wait(0.05)
until (door.Size.y == 0.2) end


Alright that should work, right?

It's simple, the door is simply rising and is continuously shrinking.

Then, it'll reach it's smallest size limit, 0.2 in which it will stop. Right?


Wrong. Nope, the brick decides to fly away once the brick's y gets to 0.2.

So is there some way to keep the repeat and have roblox actually recognize its own size limit that the brick has finally arrived at?

Thanks!
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
27 Nov 2014 12:11 AM
Usually positions aren't exact, so you can't compare it to the end product exactly
try >=
Report Abuse
dogwarrior24 is not online. dogwarrior24
Joined: 10 Nov 2010
Total Posts: 1401
27 Nov 2014 12:30 AM
door.Anchored = true
Report Abuse
dogwarrior24 is not online. dogwarrior24
Joined: 10 Nov 2010
Total Posts: 1401
27 Nov 2014 12:32 AM
Also, this is a result of it not being anchored because, when you resize it it destroys the welds that were holding it in place, but for the door animation your cframing it back into place every time, but once the loop ends it is free to fly away.

Anchoring it solves the issue instantly
Report Abuse
tentastic2 is not online. tentastic2
Joined: 03 May 2009
Total Posts: 241
27 Nov 2014 12:52 AM
IT was anchored...


Anyway thanks max you gave me an idea!

I actually decided to make it < 0.3 so that once it got to 0.2 it would stop instead of have to rush and check. Thanks!
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
27 Nov 2014 10:18 PM
Did it work? I've always told people that, but never tested it myself lol
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
27 Nov 2014 10:19 PM
door.Size.Y not door.Size.y
Report Abuse
burlone is not online. burlone
Joined: 04 Oct 2014
Total Posts: 22
27 Nov 2014 11:45 PM
java
Report Abuse
burlone is not online. burlone
Joined: 04 Oct 2014
Total Posts: 22
27 Nov 2014 11:47 PM
java1
Report Abuse
burlone is not online. burlone
Joined: 04 Oct 2014
Total Posts: 22
27 Nov 2014 11:48 PM
java1
Report Abuse
burlone is not online. burlone
Joined: 04 Oct 2014
Total Posts: 22
27 Nov 2014 11:49 PM
java2
Report Abuse
burlone is not online. burlone
Joined: 04 Oct 2014
Total Posts: 22
27 Nov 2014 11:50 PM
java5
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2014 12:25 AM
java12
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