So I'm making a death beam laser thing and I'm getting an error EDIT: (Provide more explanation)

"ServerScriptService.MagicDeathBeam:17: "attempt to index nil with 'CFrame'" and my script is

[Edit by JesseSong: Please provide the full - code in your question, any errors, etc.]

If you want to learn how to make a good question then click the hyperlink!


	local Center = Meshes:WaitForChild("Center"):Clone()
	Center.CFrame = Humrd.CFrame * CFrame.new(0,0,-20)
	Center.Orientation = Center.Orientation + Vector3.new(80,0,0)
	Center.Parent = Effects

idk what is wrong with it but pls help me the line is the

	Center.CFrame = Humrd.CFrame * CFrame.new(0,0,-20)

(Provide more explanation, simply posting a short snippet of code not be enough for the user who is trying to help! )

1 comment

0

nvm i forgot to make the HumanoidRootPart/Humrp Variable LOL