local tool = script.Parent
local player = game.Players.LocalPlayer
player.CharacterAdded:Wait()
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local rightarm = character["Right Arm"]
local activate = humanoid:LoadAnimation(script.Activate)
local equip = humanoid:LoadAnimation(script.Equip)
local unequip = humanoid:LoadAnimation(script.Unequip)
local idle = humanoid:LoadAnimation(script.Idle)
local mouse = player:GetMouse()
local connection1
local connection2
local function equipped ()
equip:Play()
wait(0.05)
idle:Play()
connection1 = game:GetService("RunService").RenderStepped:Connect(function()
rightarm.LocalTransparencyModifier = 0
end)
connection2 = mouse.Move:Connect(function()
mouse.TargetFilter = workspace
rightarm.CFrame = CFrame.new(rightarm.Position,Vector3.new(0,mouse.Hit.p.Y,0))
end)
end
local function unequipped ()
idle:Stop()
unequip:Play()
connection1:Disconnect()
connection2:Disconnect()
end
local function activated ()
activate:Play()
end
tool.Equipped:Connect(equipped)
tool.Unequipped:Connect(unequipped)
tool.Activated:Connect(activated)
I'm trying to point my right arm to the mouse while in first person mode (which basically means in the center of the screen). I don't have a single idea how i will do this. I tried changing the cframe, and it obviously didn't work. (I probably need cframe.angles).
And so far... I have made no progress. I would appreciate anyone who would enlighten me how this works.

3 comments
I probably need to research more about these... offsets and motor6d. but anyways thankyou :D
and also there seems to be some math problems that need adjustments
edited, corrected the orientation