Basically I have a script that takes a part and allows me to make whatever changes I want to it. Everything else works fine, but trying to change the shape and size at the same time doesn’t seem to work
In my script, the default size is 7,7,7, and the shape is the PartType “Ball”.
I have a function that changes this part to PartType “Block” and changes its size to 6,6,20. This doesn’t want to work, and instead changes its size to 6,6,6. It also does the same thing when I do 10,10,20 as well.
Super confused on this, and any help would be appreciated
Example:
--Template
local CurrentHitboxParams = HitboxModule.NewBehavior()
CurrentHitboxParams.Provider = Provider
CurrentHitboxParams.Template = nil
CurrentHitboxParams.Shape = Enum.PartType.Block
CurrentHitboxParams.Size = Vector3.new(6,6,20)
CurrentHitboxParams.Damage = 10
CurrentHitboxParams.ExistTime = 10
CurrentHitboxParams.Name = "Hitbox"
CurrentHitboxParams.Ignore = "Ally"
----------------------------------------------
NewHitbox = SentHitboxParams.Provider:GetPart()
--Set its properties
--Constants
NewHitbox.Material = Enum.Material.ForceField
NewHitbox.Color = Color3.fromRGB(255,0,0)
NewHitbox.Massless = true
NewHitbox.Anchored = true
NewHitbox.Transparency = 0
--Alterable
NewHitbox.Shape = SentHitboxParams.Shape
NewHitbox.Size = SentHitboxParams.Size
NewHitbox.CFrame = CFrame
NewHitbox.Name = SentHitboxParams.Name
Sorry if this is a little hard to understand, was sort of in a rush