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: Is it possible

Previous Thread :: Next Thread 
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
30 May 2013 05:06 PM
so when you left click somewhere a Frame will appear and one point of the frame will be somewhere and the end point will be where the mouse clicked.


Ok, I know how to make it so you left click and Instance and new Frame but I just don't know how to get it to make the size from one point to the point where the mouse clicked. (If it is possible) if so how?
Report Abuse
Colonized is not online. Colonized
Joined: 23 Jul 2011
Total Posts: 160
30 May 2013 05:26 PM
Make a giant active textbutton and click but you won't be able to place a gui at the mouse position without a tool
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
30 May 2013 05:34 PM
@Colon,
He could use the ':GetMouse()' method to get the 'PlayerMouse'...

---

http://wiki.roblox.com/index.php/GetMouse
--> http://wiki.roblox.com/index.php/RBX.lua.PlayerMouse_(Object)
-> http://wiki.roblox.com/index.php/X_(Property)
-> http://wiki.roblox.com/index.php/Y_(Property)

Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
30 May 2013 05:59 PM
I am using the :GetMouse() method but just don't know how to achieve what I need to. I'm on ipad at the moment so ill have to try tomorrow.
Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
31 May 2013 04:40 AM
bullet.Size = UDim2.new(0,5,0,mouse.Y)

Works! But it doesn't go from the gun point to the mouse click, well, it does go from the gun point just not the the mouse click.

I've also tried:

bullet.Size = UDim2.new(0,5,0,mouse.X)

Which obviously won't work because it;s in the Y Offset
Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
31 May 2013 05:09 AM
Anyone?
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
31 May 2013 05:14 AM
Sounds like something you should use raytracing for. I'm not sure what you want though.
Report Abuse
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
31 May 2013 05:15 AM
It's a GUI, and I just want it so where you click the Frame GUI will go from one point to where you clicked your mouse.
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
31 May 2013 05:18 AM
Can you use getMouse() on a container?
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