Ive been trying to fix this issue for some days now, and i cant really figure out how to do so.
What am i trying to achieve?
I want when a player joins to have a sword in their hand (without using any tools because i dont want to).
How do i want to achieve this?
In the handle of the sword theres a weld (not a 'weld constraint' just to clarify) and i want to change the part1 of that weld to the players hand, which i managed to do pretty easily, but, the sword is not positioned as i wanted it to
The script
local nail = game.ReplicatedStorage.nail
if nail then
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local new_nail = nail:Clone();
new_nail.Parent = workspace;
local hand = char:WaitForChild("Right Arm");
new_nail.Handle.Weld.Part1 = hand;
local weld = nail.Handle.Weld;
weld.C1 = CFrame.Angles(math.rad(90),0,0)
end)
end)
end
The answer to this question may be simple, but its my first time using these 2 properties so any help is apriciated.
