Can someone explain this script in detail? each line?
Asked by
8 years ago Edited 8 years ago
~~~~~~~~~~~~~~~~~
local playa=game.Players.LocalPlayer;
script.Parent.Selected:connect(function(mouse)
while Wait() do
local weld=playa.Character.Torso["Left Shoulder"];
--[[
p0=part0.CFrame
c0=c0
p1=part1.CFrame
c1=c1
02 | c 1 = = p 1 :inverse()*p 0 *c 0 |
03 | c 0 = = p 0 :inverse()*p 1 *c 1 |
05 | local desired_p 1 = CFrame.new( |
06 | (weld.Part 0. CFrame*CFrame.new(- 1 , 1 , 0 )).p, |
09 | CFrame.Angles(math.pi/ 2 , 0 , 0 ); |
11 | weld.C 1 = desired_p 1 :inverse()*weld.Part 0. CFrame; |
end end
)
~~~~~~~~~~~~~~~~~