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: Mouse Question

Previous Thread :: Next Thread 
Neverfly is not online. Neverfly
Joined: 07 Jan 2009
Total Posts: 234
16 Aug 2009 03:09 PM
Yeah, you know how Ana made an object follow the mouse in his game Tunnel Cruiser?
Well how did he do this?

This is my script:

script.Parent.Selected:connect(function(mouse)
print("Test Tool Selected")

mouse.KeyDown:connect(function(key)
if key then
if key == "a" then
while true do
wait()
local a = mouse.Origin
workspace.Test.CFrame = CFrame.new(workspace.Test.Position, Vector3.new(a))
end
end
end
end)
end)

?
Report Abuse
zac352 is not online. zac352
Joined: 20 Feb 2009
Total Posts: 4657
16 Aug 2009 03:11 PM
[ Content Deleted ]
Report Abuse
Neverfly is not online. Neverfly
Joined: 07 Jan 2009
Total Posts: 234
16 Aug 2009 03:12 PM
Lol that helps zac :P
Report Abuse
zac352 is not online. zac352
Joined: 20 Feb 2009
Total Posts: 4657
16 Aug 2009 03:13 PM
[ Content Deleted ]
Report Abuse
Neverfly is not online. Neverfly
Joined: 07 Jan 2009
Total Posts: 234
16 Aug 2009 03:16 PM
ER, You lost me, What does the Camera have anything to do with this?
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
16 Aug 2009 03:16 PM
Everything.
Report Abuse
zac352 is not online. zac352
Joined: 20 Feb 2009
Total Posts: 4657
16 Aug 2009 03:19 PM
[ Content Deleted ]
Report Abuse
zac352 is not online. zac352
Joined: 20 Feb 2009
Total Posts: 4657
16 Aug 2009 03:20 PM
[ Content Deleted ]
Report Abuse
Neverfly is not online. Neverfly
Joined: 07 Jan 2009
Total Posts: 234
16 Aug 2009 03:28 PM
Thats nice for a GUI later, but Im loking for something that simply follows your mouse, not your camera from a certain vector.
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
16 Aug 2009 06:44 PM
Wrong, screen pos.

mouse.(X/Y)/mouse.ViewSize(X/Y)
Then calculate.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
16 Aug 2009 08:02 PM
My Y is like 0.65 to -0.65 and my X is like 1.1 to -1.1

X: 2.2
Y: 1.3
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
16 Aug 2009 08:28 PM
Should equally range from 0,0 (Top left) to 1,1 (Bottom right) when divided.
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