I'm trying to make a dropper drop a cylinder I have it drop a cylinder but I want it to stand on end not its side this is what I have I tried orientation but it keeps landing on top of the dropper I add position but I would have to do it to each dropper is there an easier way here is the script?
while true do wait(1) local part = Instance.new("Part",workspace) local cash = Instance.new("IntValue",part) part.Shape = "Cylinder" cash.Name = "Cash" cash.Value = 1 part.CFrame = script.Parent.Drop.CFrame part.Size=Vector3.new(1,0.5,.5) part.BrickColor = BrickColor.new("Bright green") part.LeftSurface = Enum.SurfaceType.Smooth part.RightSurface = Enum.SurfaceType.Smooth part.BottomSurface = Enum.SurfaceType.Smooth part.TopSurface = Enum.SurfaceType.Smooth part.CustomPhysicalProperties=PhysicalProperties.new("Density 10") game.Debris:AddItem(part,100) end
You can try changing the line
part.CFrame = script.Parent.Drop.CFrame
to something like
part.CFrame = script.Parent.Drop.CFrame * CFrame.Angles(math.rad(90),0,0)
to rotate the part 90 degrees on the X-axis.
Also, you should use code blocks to format your code in future posts.