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: Moving GUI textboxes

Previous Thread :: Next Thread 
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 04:25 AM
I'd want to make a way to move GUI text boxes, I see that there's no way of using constrains for this so I wonder if I should use either the old school position +1 style or if there's any other way, maybe I could use that?
Report Abuse
doctor152 is online. doctor152
Joined: 30 Nov 2008
Total Posts: 308
04 Feb 2017 04:34 AM
http://wiki.roblox.com/index.php?title=UDim2


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 04:38 AM
I guess that means Position +1 method is the way to go (yes UDim2)... hooray ._.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
04 Feb 2017 04:42 AM
Well yeah, you move things by changing the position.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 05:26 AM
Isn't there any way to make it smooth?
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
04 Feb 2017 05:27 AM
guiElement:TweenPosition


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 06:23 AM
And now to make it remove the text reverse

like an example: "taco"

first "t" gets removed
then "a"
then "c"
and last "o"
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 06:29 AM
Also it'd be nice to make the GUI rotate like a loading screen
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
04 Feb 2017 06:33 AM
text removing thing: local ### = 'Hello world!' for i=1, #### do ###################### end --for the other way around - >Hello world! >Hello world >Hello worl: ############################## rotating: thing = script.Parent --gui element while true do thing.Rotation = thing.Rotation + 1 thing.Rotation = thing.Rotation % 360 --keep it at 360 so it doesn't go to massive numbers game:GetService('RunService').Heartbeat:Wait() end
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
04 Feb 2017 06:34 AM
text removing:

local strng = 'Hello world!'

for i=1, #strng do
print(strng:sub(i,#strng))
end


Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
04 Feb 2017 06:35 AM
rotating:

thing = script.Parent --gui element
while true do
thing.Rotation = thing.Rotation + 1
thing.Rotation = thing.Rotation % 360 --keep it at 360 so it doesn't go to massive numbers
game:GetService('RunService').Heartbeat:Wait()
end


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 06:43 AM
We're almost ready to go!

Now for the particles, is there any way to make particles? Or do i have to make thousands of gui boxes moving upwards, then reset their position and repeat?
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
04 Feb 2017 06:44 AM
^

unless theres something i don't know


Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 06:51 AM
Like make sprites appear and ease in upwards towards -0.5, there isnt any way to make particles in right
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 11:23 AM
This script is meant to make 100 textlabels, move them upwards then tp them back to the bottom, but instead theres 2 issues:

1.the tween doesnt count the time, so it goes infinetly fast for some reason...
2.the function wont work.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 11:24 AM
Script: math.randomseed(tick()) local gui = script.Parent.Screen local t = 0 local r = 0 for i = 1, 100 do wait(0.2) t = t + 1 local t = Instance.new("TextLabel") r = math.random()*1 t.Parent = gui ###### # # ########## = UDim2.new(r, 0, 1.2, 0) t:TweenPosition(UDim2.new(r, 0, 0.5, 0, "Out", "Quad", 5, true)) function i(text, r) while wait(1) do text.Position = UDim2.new(r, 0, 1.2, 0) end spawn(i(t,r)) end end
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
04 Feb 2017 11:26 AM
I feel like, moving so many textlabels at once would cause latency. i'd just simply delete them when they got out of view,and then continue creating new ones.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 11:28 AM
But i'd still need to fix these issues... How can i make a while wait() making infinite amount of textboxes with diffrent sizes (math.random i know) and then move them upwards (tweenposition) with a function breaking them after 5 seconds and i want the function to work and the tween to set a timer
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
04 Feb 2017 11:43 AM
bump
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