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: Simple GUI assistance.

Previous Thread :: Next Thread 
Sorcism is not online. Sorcism
Joined: 09 Jul 2015
Total Posts: 6906
23 Apr 2016 10:28 AM


Frame info required:

Position of frame : {-0.2, 0},{0.2, 0}
Size of frame : {0.2, 0},{0.3, 0}

This is my current code:

function openmenu()
local frame = script.Parent.Parent:WaitForChild("Background")
for i=1,200 do
wait(0.01)

end
end

What I'm attempting to do, but I need help on:
I would like for the frame to move +0.01 every 0.01 second, 200 times. I don't know the line of code to move the frame though, and that's what I need. If you could help me, I would appreciate it a lot!


Report Abuse
War_Force is not online. War_Force
Joined: 15 Apr 2016
Total Posts: 2611
23 Apr 2016 10:29 AM
Why not just tween it?
Report Abuse
Sorcism is not online. Sorcism
Joined: 09 Jul 2015
Total Posts: 6906
23 Apr 2016 10:29 AM
@War

That's what I'm trying to do, but I don't know how.


Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
23 Apr 2016 10:31 AM
Search up tutorials or a wiki about :TweenPosition



Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
23 Apr 2016 10:31 AM
function openmenu()
local frame = script.Parent.Parent:WaitForChild("Background")
for i=1,200 do
frame.Size = frame.Size + UDim2.new(0.1,0,0.1,0)
frame.Position = frame.Position + UDim2.new(0.1,0,0.1,0)
wait(0.01)

end
end

edit the UDim2.new increasing to your liking
Report Abuse
Sorcism is not online. Sorcism
Joined: 09 Jul 2015
Total Posts: 6906
23 Apr 2016 10:32 AM
@Zarman

Appreciate it man! Thanks for the help!


Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
23 Apr 2016 10:33 AM
TweenPosition so much better tho q-q



Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
23 Apr 2016 10:34 AM
Hey this guy doesn't seem to know most of the basics, let him go step by step
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
23 Apr 2016 10:34 AM
By the way, ~0.03 is the shortest you can wait for on the server


Instance.new("BodyThrust",SenseiWarrior).position = CFrame.new(SenseiWarrior,YourGirlsDMs)
Report Abuse
War_Force is not online. War_Force
Joined: 15 Apr 2016
Total Posts: 2611
23 Apr 2016 11:10 AM
:TweenPosition(UDim2.new(2,0,2,0),"Out","Quad",1)--In the zeros put the destination position, where its 2 it's for scale number, zero is the offsted. In the 1 put the time it takes to tween it to that location.
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