https://gyazo.com/d0d2004eaab5b0506895ce61f18ce402
So I tried to use CFrame to move a sphere bullet but it claims that CFrame is not a valid member of special mesh, so the bullet doesnt move when I click. What can I use other than CFrame to move the sphere bullet or do i have to rearrange the wording?
As what pidgey answered, SpecialMesh is not a BasePart, therefore CFrame is not a valid property for it. You may want to use a normal Part with Shape
property being set to Enum.PartType.Ball
, or use a part with a SpecialMesh instance as a child instead.
1.
local part = Instance.new("Part") part.Shape = Enum.PartType.Ball --Turns the part into a spherical object part.CFrame = CFrame.new(startpos, endpos) --Extra content goes here
2.
local part = Instance.new("Part") local specialMesh = Instance.new("SpecialMesh", part) specialMesh.MeshType = Enum.MeshType.Sphere --As you did --Now the part should be roundy. part.CFrame = CFrame.new(startpos, endpos) --Extra content goes here oof