game.Players.PlayerAdded:Connect(function(plr)

plr.CharacterAdded:Connect(function(char)

local clonespear = game.ServerStorage:WaitForChild("spear"):Clone()

clonespear.CFrame = clonespear.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(50),0,0)

--------clonespear.CFrame = clonespear.CFrame * CFrame.fromEulerAnglesXYZ()

wait(.1)

clonespear.CFrame = clonespear.CFrame

clonespear.Parent = game.Workspace

clonespear.CFrame = char:WaitForChild("UpperTorso").CFrame

local Weld = Instance.new("Weld",clonespear)

Weld.Part0 = clonespear

Weld.Part1 = char:WaitForChild("UpperTorso")--X:D

Weld.C0 = clonespear.CFrame:inverse() + Vector3.new(0,0,-1)

--Weld.C0 =

---

-----Weld.C0 = Weld.C0 + clonespear.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(27),0)

Weld.C1 = char:WaitForChild("UpperTorso").CFrame:inverse() -- * CFrame.fromEulerAnglesXYZ(math.rad(50),0,0)---* CFrame.new(8,0,5)

end)

end)

ive tried my script but it doesnt work... :( "CFrame.fromErulerAnglesXYZ()"

7 comments

0

What do you mean by "a little"?

0

meaning i would like the spear to be tillteed to the side by like 27 radients.

0

math.rad(27)...

0

try Weld.C0 = Weld.C0 * CFrame.fromEulerAnglesXYZ(0,math.rad(27),0) after line 23

0

oo okie

0

nope didnt work...

0

Weld.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-math.pi/0,0,0) -- Change these Values to the correct angle that suits you.