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: Guns that point toward your mouse, HOW DO?

Previous Thread :: Next Thread 
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 06:53 PM
You do it with welds. Other than that I have no clue. Some examples of games that do this are Base Wars:
http://www.roblox.com/Base-wars-The-Land-since-2009-Read-Description-place?id=18164449
and Paintball!: http://www.roblox.com/Paintball-Fixing-Again-place?id=4175379
Report Abuse
qrrrq is not online. qrrrq
Joined: 27 Jan 2013
Total Posts: 1252
26 Aug 2013 07:09 PM
You should look into the mechanics of the ROBLOX flashlight, they use the same tech as Basewars.
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 07:21 PM
You mean the flashlight gear?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 07:24 PM
I just tested out the flashlight gear, it appears to be entirely different.
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
26 Aug 2013 07:26 PM
You mean, when you move your mouse, the character looks at your mouse, including your gun? Like a rotate player when moved mouse?

~DevilDefeater - Popped your bubble~
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 07:31 PM
Yes, I have that part down. I just don't know how to point the character's head and arms toward the mouse.
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 08:24 PM
Bump
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 09:15 PM
Does anybody have an idea at all?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 Aug 2013 09:17 PM
C0
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
26 Aug 2013 09:19 PM
Thanks, cnt. Telling me one of the properties of a weld helps immensly.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 Aug 2013 09:20 PM
not sure if sarcasm.
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
26 Aug 2013 09:22 PM
It's not a sarcasm..

It's a docasm.
Dogasm.
Do-
Oh gawd....
Eww..
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
26 Aug 2013 09:26 PM
I am not sure if this is correct but:

local mouse = game.Players.LocalPlayer:GetMouse()
pos = mouse.Origin
local mov

mouse.Moved:connect(function()
local moved = mouse.Origin.p - pos.p
-- other stuff

Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
26 Aug 2013 09:27 PM
Woops

*Check to see if moved moved left, right, up or down then move the tool accordingly,
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
29 Aug 2013 06:55 PM
Good job, you gave me a connection line, something I am more than capable of doing
*pats on back sarcastically*
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
29 Aug 2013 07:38 PM
I told you how to do it. If you put towards no effort how can you expect to accomplish anything?
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
29 Aug 2013 07:46 PM
Use this CFrame.new(from.CFrame.p, to.CFrame.p) -- Points front surface to target. Experiment with the angles.
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