How do I insert a Wedge Part into the Workspace-, or change a normal Part into a Wedge Part with a script?
To insert a wedge into workspace through a script you would need to do this
wedge = Instance.new("WedgePart", workspace) -- You can even change the position like this wedge.Position = game.Workspace.(your desired part).Position wedge.Anchored = true -- You can change anything about it through instance.new script.
However, I do not know if it is possible to change a part to wedge through a script
Wedge = Instance.new("WedgePart") Wedge.Parent = game.Workspace --put the inserted wedge part into game.Workspace --the code lines below will probably be used but don't have to Wedge.Position = Vector3.new(0,0,0) --0,0,0 is an example Wedge.Anchored = true --don't allow the wedge part to fall Wedge.Color3 = Color3.FromRGB(0,0,0) --the wedge part color would be black
More Information: https://developer.roblox.com/en-us/api-reference/class/Instance