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: Is there any way to find pos?

Previous Thread :: Next Thread 
NostalgicClak is not online. NostalgicClak
Joined: 18 Nov 2014
Total Posts: 400
05 Aug 2017 02:29 PM
I can't use this
mouse = Player:GetMouse()

pos = mouse.Hit.p

Is there any other way I can find pos(Position of mouse ?)
Report Abuse
WeeWeeInspector is not online. WeeWeeInspector
Joined: 02 Dec 2015
Total Posts: 80
05 Aug 2017 02:33 PM
http://wiki.roblox.com/index.php?title=API:Class/PlayerMouse
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
05 Aug 2017 02:34 PM
"I can't use this
mouse = Player:GetMouse()"
Then you're doing it wrong. Take input from a LocalScript, handle input in a LocalScript. No exceptions, you don't want input latency.


Report Abuse
LordTrolagar is not online. LordTrolagar
Joined: 22 Mar 2016
Total Posts: 1
05 Aug 2017 02:37 PM
i wanted to say hi
Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
05 Aug 2017 02:38 PM
local UIS = game:GetService("UserInputService")

UIS.InputBegin:connect(function(Input)
local Position = Input.Position
end)


‍
Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
05 Aug 2017 02:39 PM
Actually, it is InputBegan, not InputBegin.


‍
Report Abuse
NostalgicClak is not online. NostalgicClak
Joined: 18 Nov 2014
Total Posts: 400
06 Aug 2017 12:06 PM
Jarod what you said has no relevance for helping me.

Report Abuse
TheeDeathCaster is online. TheeDeathCaster
Joined: 19 Jun 2011
Total Posts: 1191
06 Aug 2017 12:09 PM
@OP Without giving us a full script, and failing to say if there's a bigger script, we can't give a definitive answer.

What I think is that you only got the position, but did nothing with it, and didn't set anything up for when the mouse hovers.
Report Abuse
HeIix is not online. HeIix
Joined: 19 Jan 2013
Total Posts: 253
06 Aug 2017 12:14 PM
Make sure it's a localscript, GetMouse() can only be client-sided

If you need the server to have the mouse position, fire it in a remote event


‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍


‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
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