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 » Scripting Helpers
Home Search
 

Re: What's wrong with this?

Previous Thread :: Next Thread 
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
05 Apr 2014 10:47 PM
if script.Parent.Parent.LeMenu.INTRO.Position = UDim2.new(0, 0, 0, -1200) then
script.Parent.Position = UDim2.new(0, 0, 0, 120)
end
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
05 Apr 2014 10:48 PM
you're not using the correct operator

i'm asian
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
05 Apr 2014 10:53 PM
I'm not familiar with this terminology.
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
05 Apr 2014 11:06 PM
asdf
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
05 Apr 2014 11:17 PM
An operator is ==, ~=, >, <, ect

first line
if script.Parent.Parent.LeMenu.INTRO.Position = UDim2.new(0, 0, 0, -1200) then

needs to have 2 equal signs instead of one.

if script.Parent.Parent.LeMenu.INTRO.Position == UDim2.new(0, 0, 0, -1200) then
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
05 Apr 2014 11:19 PM
plus,i think you better wrap that in a loop,and check the Y Scale..

I think your comparing userdata values..

while wait() do
if script.Parent.Parent.LeMenu.INTRO.Position.Y.Scale <= -1200 then
script.Parent.Position = UDim2.new(0, 0, 0, 120)
end
end

fixed
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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