Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[Solved By Myself]Why doesn't my part's shape change?

I have this function, It is supposed to create a projectile, it works for the most part. The only thing that doesn't work is bullet.Shape = "Ball", which is supposed to change the part's shape. Could someone please tell me why?

function CreateProjectile()
	local character = game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)
	local torso = character:WaitForChild("Torso")
	local bullet = Instance.new("Part", game.Workspace.MagicContainer)
	local sphere = Instance.new("SelectionSphere", bullet)
	sphere.Adornee = bullet
	bullet.Size = Vector3.new(8,8,8)
	bullet.CFrame = torso.CFrame + CFrame.new(0,10,0)
	bullet.Shape = "Ball"
end

CreateProjectile()

1 answer

You need to put the shape changing line of code before the CFrame code.

This discussion is preserved as it was. New answers, comments, and votes are closed.