I made this Framework and it welds a gun to my Camera. The model of the gun has arms too. Everything is non-collideable or anchored. It has a primary part too.
But when I go into first person it just pushes me into the sky.. I am flying like I am colliding with the gun. I dont know why because Collisions are not set. Any help please?
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.Character:Wait()
local cam = workspace.CurrentCamera
local reps = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local run = game:GetService("RunService")
local guns = reps.GunModels
local loadout = {
--DEFAULT LOADOUT
Primary = "M4"; --I made this like that so i'll be able to change weapons if I want to.
Secondary = "M9";
Meele = "Knife";
}
local primarymodule = require(reps.GunModules[loadout.Primary]) --Each gun has a Module script in it. The module named exactly like the gun.
local primary = guns[loadout.Primary]:Clone()
primary.Parent = cam
run.RenderStepped:Connect(function()
primary:SetPrimaryPartCFrame(cam.CFrame * primarymodule.CameraPosition)
end)

3 comments
Are you sure everything inside the model has CanCollide off?
I completly forgot my arms have glove and sleeve parts inside them.. sometimes I feel so dumb lmao sorry.
If your question is solved please write [SOLVED] in the question title