Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to insert a Wedge Part with a script?

Asked by 4 years ago

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

2 answers

Log in to vote
0
Answered by 4 years ago

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

1
Thank you very much for the answer! :) ViktorRamstrom 15 — 4y
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 ElongatedMongoose 138 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
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

Answer this question