String value? Because I can't seem to add a space when searching Right leg Right arm, etc.
So, from the comments I assume that this is fired when something is hit.
if hit.Parent:FindFirstChild("Humanoid") then local arms = { hit.Parent["Left Arm"], hit.Parent["Right Arm"] } -- Put the arms in a table for i,v in pairs(arms) do -- Loop through the arms if hit.Name == v.Name then -- Check which arm is hit script.Parent.CFrame = CFrame.new(arms[i].Position) * CFrame.new() -- Set the CFrame position to the current arm end end end
Edit: OffTopic: What's up with all these random down voters?