I have this Instance.new part and I changed most of it's properties except I'm not exactly sure how I would rotate it.
local Blast = Instance.new("Part") Blast.Name = "Blast" Blast.Shape = Enum.PartType.Block Blast.Size = Vector3.new(9.38, 0.29, 0.26) Blast.Material = Enum.Material.Neon Blast.BrickColor = BrickColor.new("Toothpaste") Blast.CanCollide = false Blast.Parent = game.Workspace Blast.Transparency = 0 Blast.Orientation = Vector3.new(0,0,90) --What I'm having trouble with Blast.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,0,0)
You would use CFrame.Angles(). Here are the following dimensions and how the part would spin (assuming the part is parallel to the Baseplate):
Here's an example of rotating a part:
local part = Instance.new("Part") part.Parent = workspace part.Position = workspace.Baseplate.Position + Vector3.new(0,10,20) while true do wait(0.1) part.CFrame = part.CFrame * CFrame.Angles(0,0, math.rad(10)) end
CFrame.Angles() uses radians, so in order to rotate the part you would use math.rad().