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: question about mouse Target

Previous Thread :: Next Thread 
LeikaZ is online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
21 Mar 2016 09:13 AM
LOCAL SCRIPT:

Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

x.CFrame = CFrame.new(Mouse.Target.Position)

and why doesn't it go to the position where the mouse is


Report Abuse
Kryddan is not online. Kryddan
Joined: 12 Dec 2014
Total Posts: 310
21 Mar 2016 09:17 AM
I think you want to use mouse.hit.p it returns a position of where the mouse is located(Vector3 value).

mouse.Target only gets the part you are looking at, so if you are looking at the baseplate the mouse.Target would return BasePlate
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