basically my gun ain’t aiming right like bruh look at this . The aimpos is behind the iron sight, I selected to make sure.
varibles:
local AimPos = nil
local Handle = Parent:WaitForChild("ToolModel"):WaitForChild("BodyAttach")
local HandleTransform = nil
local OriginalTransform = nil
local AimTransform = nil
renderstepped (main)
if not AimPos or AimPos == nil or not AimPos:IsA("BasePart") then
for _,v in Parent:WaitForChild("ToolModel"):GetDescendants() do
if v.Name == "AimPos" then
AimPos = v
end
end
if not AimPos then
return
end
end
if CurrentlyAiming then
UIS.MouseDeltaSensitivity = Player:WaitForChild("Settings"):WaitForChild("ADSSens").Value
else
UIS.MouseDeltaSensitivity = default
end
--calculations
HandleTransform = workspace.CurrentCamera.CFrame:ToObjectSpace(Handle.CFrame)
OriginalTransform = HandleTransform * HandleTransform:Inverse()
AimTransform = AimPos.CFrame:ToObjectSpace(Handle.CFrame) * HandleTransform:Inverse()
--calculations
bodyattach+aimpos
giga
iname