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
 

Efficient way?

Previous Thread :: Next Thread 
UnstableScript0 is not online. UnstableScript0
Joined: 21 Dec 2015
Total Posts: 1189
13 Jan 2016 07:11 PM
What is the most efficient way to point the arm at the mouse?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
13 Jan 2016 07:12 PM
Ask them to point their arm at the mouse.
Report Abuse
usermvp is not online. usermvp
Joined: 29 Jun 2013
Total Posts: 188
13 Jan 2016 07:14 PM
Do you mean to have a player's left or right arm point in the direction of their mouse?

Report Abuse
UnstableScript0 is not online. UnstableScript0
Joined: 21 Dec 2015
Total Posts: 1189
13 Jan 2016 07:15 PM
@eLunate

Funny, but not what I wanted.

repeat wait(0.5) until game.Players.LocalPlayer

local Player = game.Players.LocalPlayer

local Character = (Player.Character or Player.CharacterAdded:wait())
local Shoulder = Character.Torso:WaitForChild("Right Shoulder")

local Mouse = Player:GetMouse()

game:GetService("RunService").RenderStepped:connect(function()
Shoulder.C0 = CFrame.new(Shoulder.C0.p, Mouse.Hit.p)
end)


^ Just makes it rotate in a circle for some reason?
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