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: mouse.Hit.p spam

Previous Thread :: Next Thread 
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Mar 2016 07:33 PM
i have a loop constantly setting a part to mouse.Hit.p, but the part starts rising into the camera and stuff because mouse.Hit.p keeps going above the part. basically, how do i stop this?
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
01 Mar 2016 07:39 PM
1. use Mouse.Move so it only updates when needed.
2. SetPrimaryPartCFrame is your solution (and make y-axis a set height).

http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame


-secretidagent
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Mar 2016 07:41 PM
ah yes, i forgot about the y axis thank you :D
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Mar 2016 07:45 PM
So, another silly question, how exactly do I keep the Y a set height? I can't make it something like 100 or whatever b/c i have changing elevations and I can't preset it b/c people will click on their heads. I just want the part to be on flat ground
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Mar 2016 07:49 PM
bbbbbbbbbbbbbbbb
Report Abuse
LeviBranch4 is not online. LeviBranch4
Joined: 26 Feb 2016
Total Posts: 63
01 Mar 2016 07:53 PM
No.

Mouse.TargetFilter = Part


Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Mar 2016 07:56 PM
it's terrain tho lol
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
01 Mar 2016 08:04 PM
What you want is this: http://wiki.roblox.com/index.php?title=API:Class/Mouse/TargetFilter


Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
01 Mar 2016 08:09 PM
levi just showed me that but I don't know how I can just completely ignore terrain. it'd go to nil
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