Please! I need help! I am trying to make a weld between a brick and a player's head. That way, when they walk, the brick will always match the player's CFrame, shifted to a certain spot. So I made this:
local blscr1 = Instance.new('Part', workspace);
-- there were some properties defined here: i removed them for legibility
local head = game.Players.LocalPlayer.Character:FindFirstChild('Head');
blscr1.CFrame = head.CFrame:toWorldSpace(CFrame.new(0,-1,5)) * CFrame.Angles(-math.rad(60),0,0);
local weld = Instance.new('Weld');
weld.Part0 = head;
weld.C0 = CFrame.new()
weld.Part1 = blscr1;
weld.C1 = blscr1.CFrame:toObjectSpace(head.CFrame):inverse()
weld.Parent = blscr1;
blscr1.Anchored = false;
NO MATTER WHAT I DO::: unanchoring, changing the c0, and c1, or whatever, THE PLAYER CAN"T MOVE! HE IS STUCK! how Do i fix this? thanks! |