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

How to insert a Wedge Part with a script?

How do I insert a Wedge Part into the Workspace-, or change a normal Part into a Wedge Part with a script?

2 answers

✓ Accepted answer

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

2 comments

1

Thank you very much for the answer! :)

0

I'm glad you could figure it out and rephrase it better, Id be glad to answer any other simple questions! Just post them on this thread

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

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