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 » Game Design
Home Search
 

Re: I'm losing everything I've ever learned D:

Previous Thread :: Next Thread 
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Mar 2015 11:32 AM
BL.Position = Mouse.Hit.p - UDim2.new(0, 0, 0, BL.Size.Y.Offset/2)

Mouse.Hit didn't work either.
I seem to be forgetting everything I've learned. I'm losing my mind. T_T
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
06 Mar 2015 11:40 AM
what is BL


Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Mar 2015 11:43 AM
it's a gui frame.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
06 Mar 2015 11:45 AM
mouse.hit returns the 3D position, you want the 2D position on the screen


BL.Position = UDim2.new(0,mouse.X,0,mouse.Y) - UDim2.new(0, 0, 0, BL.Size.Y.Offset/2)
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Mar 2015 11:52 AM
Mouse.X vs Mouse.Hit.X.

I've never heard of this but judging by the context in which it's used, Mouse.Hit.X returns the X position of Workspace, while Mouse.X returns the X position on the game screen. Is that correct?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
06 Mar 2015 11:59 AM
yes
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Mar 2015 12:08 PM
lol what would I do without you. :P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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