yes its me again and yet i found issues with my script, no console output, neck going messy while looking at sky OR a npc / player
this is the local script
local remote = game.ReplicatedStorage:WaitForChild("dkskdkkd")
game["Run Service"].RenderStepped:Connect(function()
local torso = char.Torso
local mouse = a:GetMouse()
local rightS = char.Torso["Right Shoulder"]
local leftS = char.Torso["Left Shoulder"]
local Neck = char.Torso["Neck"]
local hit = (torso.Position.Y - mouse.Hit.Position.Y)
local mag = (torso.Position - mouse.Hit.Position).Magnitude
local offset = hit/mag
local c1 = (CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.fromEulerAnglesXYZ(0, 0, -offset))
local c2 = (CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset))
local c3 = (CFrame.new(0, 1, 0, -0, -0, 0, 0, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0))
if mouse.Target then
if mouse.Target.Name == "Effect" or mouse.Target.Name == "Projectile" or mouse.Target.Name == nil or mouse.Target == nil then return end
remote:FireServer(a,c1,c2,c3)
else
--nothing
end
--[[
rightS.C0 = rightS.C0:Lerp(CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.fromEulerAnglesXYZ(0, 0, -offset),0.3)
leftS.C0 = leftS.C0:Lerp(CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset),0.3)
Neck.C0 = Neck.C0:Lerp(CFrame.new(0, 1, 0, -0, -0, 0, 0, 0, 0, 0, 1, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0),0.3)
-]]
end)
i honestly dont know if its coming from server script or local.