I have a hand script for the player. Everything works well, but I want it to push other objects. Since the hand moves along the coordinates, it passes through them. How can i do this?
-- < Vairalbes > --
------------------------------------------
-- Main
local player = game.Players:GetPlayerFromCharacter(script.Parent)
local mouse = player:GetMouse()
------------------------------------------
-- Arm Position
local arm = game.ReplicatedStorage.arm
local newarm = arm:Clone()
newarm.Parent = workspace
newarm.Name = 'arm_'..player.Name
local rs = game:GetService("RunService")
mouse.TargetFilter = script.Parent
mouse.TargetFilter = newarm
------------------------------------------
-- < Function > --
------------------------------------------ Arm Position
local function arms()
newarm.CFrame = CFrame.new(script.Parent["Head"].Position,mouse.Hit.p)*CFrame.new(1.2,-1,-arm.Size.Z/2)
--script.Parent["Right Arm"].Transparency = 1
end
------------------------------------------ Make Grab
-- < Events > --
rs:BindToRenderStep('Arms',Enum.RenderPriority.Character.Value,arms)
