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: mouse.Changed?

Previous Thread :: Next Thread 
Voronthal is not online. Voronthal
Joined: 11 Jun 2012
Total Posts: 10
16 Jul 2012 05:50 PM
Okay, so I'm struggling here, I want the camera focus to change to the mouse.Hit, but I only want it to do this when mouse.Hit changes.

I tried this.

mouse.Changed:connect(function()
workspace.CurrentCamera.Focus = mouse.Hit
end)

However that doesn't work.

in fact, even with printing, I can't seem to get mouse.Changed to fire, so how can I do this?
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
16 Jul 2012 05:56 PM
You could, alternatively, connect to mouse.Move and get a similar result.

Honestly, the most reliable way to do this, particularly since mouse.Hit changes so often that the performance savings from connecting to an event are insignificant, is a simple infinite loop.
Report Abuse
Voronthal is not online. Voronthal
Joined: 11 Jun 2012
Total Posts: 10
16 Jul 2012 05:57 PM
problem with that is that then it would be constantly updating the cameras focus and that's not the desired effect. I'll take a look over mouse.Move and see what that's all about.
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