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: GUI issue with scripts

Previous Thread :: Next Thread 
MadSanity is not online. MadSanity
Joined: 13 Nov 2009
Total Posts: 41506
04 Mar 2017 05:46 PM
When I use UDim2 to reposition a textbox, it sends it to {0, 0}, {0, 0} instead of the specified location I had in the script. Anything I would be doing wrong?

I change it to an Touched function to see if that would change anything and it didn't:

s = script.Parent
debounce = false
function onTouched(hit)
if debounce == false then
debounce = true
wait(1)
s.SurfaceGui.Location.Position = UDim2.new{0, (s.Position.X/10)},{0, (s.Position.Z/10)}

debounce = false
end
end

s.Touched:connect(onTouched)
Report Abuse
MadSanity is not online. MadSanity
Joined: 13 Nov 2009
Total Posts: 41506
04 Mar 2017 05:48 PM
And no, there's nothing wrong with the Parts position, and if I put in valid numbers that are contained within the CanvasSize, it still doesn't work.
Report Abuse
MadSanity is not online. MadSanity
Joined: 13 Nov 2009
Total Posts: 41506
04 Mar 2017 05:50 PM
changed it to a Touched function*

excuse that
Report Abuse
MadSanity is not online. MadSanity
Joined: 13 Nov 2009
Total Posts: 41506
04 Mar 2017 05:54 PM
NEVERMIND I formatted it wrong. Ignore this.
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