Building a Custom Build Mode System, and want to figure out a few things

You can write your topic however you want, but you need to answer these questions:

  1. I have a few questions about making a custom placement system. Hoping somebody could help me.
    The four topic question I have:
  2. How to change model’s origin orientation using a value and CFrame.Angles
  • How to increase a part’s size when player has gamepass, using a value that defines the part on replicatedStorage.
  • How to count objects on a folder using GUI and script
  1. Looked on the Forums, but probably better if I just asked.

Thank you!

1 Like

Hello, to change the orientation if you have a primary part you could do Model:SetPrimaryPartCFrame(Model.PrimaryPart.CFrame*CFrame.Angles(x, y, z))

For the part’s size, you can use an ObjectValue and set the value like this ObjValue.Value = path.to.object and for the size:

local MarketplaceService = game:GetService("MarketplaceService")
local LocalPlayer = game:GetService("Players").LocalPlayer
local Part = path.to.objValue
local multiplier = 5
local gamePassID = 0000000

local success, err = pcall(function()
	hasPass = MarketplaceService:UserOwnsGamePassAsync(LocalPlayer.UserId, gamePassID)
end)

if success then
	if hasPass then
		Part.Size = Part.Size*multiplier
	else
		warn(LocalPlayer.Name.." doesn't have the gamepass")
	end
else
	error(err)
end

And you only have to use # to count objects: #Folder:GetChildren()

1 Like