I try to make fps system in roblox
but i have problem when take the tool and change motor6d part0 from original character hand to fps hand ill send script
in tool requireshandle not work
-- this function works in while when i need to check and change from character motor6d part0 to fps instance
function taketheitemgrip(istake)
-- istake - bool
--fps - fps arms model
local toparent = nil
if istake then
toparent = fps["Right Arm"]
else
toparent = rightarm
end
if not toparent then
return
end
local motorarm = rightarm:FindFirstChild("ItemGrip")
local griparm = rightarm:FindFirstChild("RightGrip")
if griparm then
if motorarm then
griparm.Enabled = false
else
griparm.Enabled = true
griparm.Part0 = toparent.Parent[griparm.Part0.Name]
end
end
if motorarm then
motorarm.Part0 = toparent.Parent[motorarm.Part0.Name]
end
end