#Loss of character control when equipping shotgun

1 messages · Page 1 of 1 (latest)

indigo bluff
#

my dms are open if u can help

hasty nimbus
#

@indigo bluff are one of the part in the shotgun anchored per chance

indigo bluff
#

nope

#

heres the tool structure as well

#

@hasty nimbus

hasty nimbus
#

Can I see the script

indigo bluff
#

can i call u in a dm and screen share

hasty nimbus
#

I can’t sorry

indigo bluff
# hasty nimbus Can I see the script

local handle = script.Parent -- your Handle part
local player = game.Players.LocalPlayer
local runService = game:GetService("RunService")
local camera = workspace.CurrentCamera

runService.RenderStepped:Connect(function()
if handle and camera then
-- Get the current camera direction
local lookVector = camera.CFrame.LookVector

    -- Calculate a flat forward direction for rotation base (no vertical pitch)
    local flatLookVector = Vector3.new(lookVector.X, 0, lookVector.Z).Unit
    local baseCFrame = CFrame.new(handle.Position, handle.Position + flatLookVector)

    -- Add vertical pitch
    handle.CFrame = CFrame.lookAt(handle.Position, handle.Position + lookVector)
end

end)

#

thiis is what was breaking it

hasty nimbus
#

I don’t really know that much about the camera but you should try asking the assistant if it still doesn’t work then wait for someone else ok?

indigo bluff
#

aight thanks bro

plucky sand
#

try making it massless

buoyant stump
#

and CanCollide off