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