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 Click help

Previous Thread :: Next Thread 
Ace23333 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
14 May 2014 01:13 PM
How do I make something not clickable at certain distance? I dont wanna use ClickDetector because its ugly, and I dont like using it... I know there's something about magnitude or something but I don't know how....

~ So basicly I want mouse to not be able to click part at distance bigger than... 5 studs lets say. How do I do that? ~
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 May 2014 01:15 PM
if (mouse.Hit.p-game.Players.LocalPlayer.Character.Torso.Position).magnitude<10 then

Report Abuse
Ace23333 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
14 May 2014 01:28 PM
Ok, and how would I make character move where I click mouse... I am sorry if I ask much
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 May 2014 01:29 PM

use mouse.Hit.p
make an invisible brick there
game.Players.LocalPlayer.Character.Humanoid:MoveTo(thepartyoumade.Position, thepartyoumade)

Report Abuse
Ace23333 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
14 May 2014 01:30 PM
Ok thanks Ill try that. C:
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