#Loss of character control when equipping shotgun
1 messages · Page 1 of 1 (latest)
@indigo bluff are one of the part in the shotgun anchored per chance
Can I see the script
i commented out the code for now and im able to get it working but it doenst do the looking part
can i call u in a dm and screen share
I can’t sorry
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
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?
aight thanks bro
try making it massless
and CanCollide off