So I am trying to make an FPS Framework for a game and I keep getting the same error over and over again, I have set the Primary Part of the model but I keep getting it no matter what I do, is there any sort of fix to this?

Run.RenderStepped:Connect(function()
	if WeaponInHand then 
		WeaponInHand:SetPrimaryPartCFrame(
			Camera.CFrame
				* MainCF

3 comments

0

Did you use 'game:GetService("RunService")' in the 'Run' variable? Is this in a LocalScript or ServerScript (regular script)

0

This is in a LocalScript, and about the ''game:GetService("RunService")', where do I exactly put it? Do I replace the 'Run' variable or do I add it somewhere else?

0

You call the service like this: local Run = game:GetService("RunService"). After that, you shouldn't get that error message anymore.