#I have a mistake that i could'nt find

1 messages · Page 1 of 1 (latest)

chilly summit
#

My issue is in the video, can someone help me?

if itemToAppear:HasTag("Dropper") then
                    while task.wait(waitToDrop) do
                        warn("Falling!")
                        local dropperPart: BasePart = game.ServerStorage.DropperPart
                        local clonedOne = dropperPart:Clone()
                        clonedOne.Parent = workspace
                        clonedOne.CFrame = itemToAppear.DropperPart.CFrame - Vector3.new(0, 2, 0) --Issued line
                    end
                end
--(itemToAppear.DropperPart is inside the dropper that you can see just after the dropper purchased, the third one comes down)
--The whole base and I are going to below the baseplate
random ice
#

you do CFrame - Vector3

harsh shuttle
#

or subtracted

random ice
#

clonedOne.CFrame = itemToAppear.DropperPart.CFrame * CFrame.new(0, -2, 0)

chilly summit
#

I thought CFrame is a vector3 isnt it

harsh shuttle
#

CFrame is like a map, a 3D map

#

vector 3 is like a place within that CFrame

random ice
#

like CFrame is position + rotation and Vector3 is only position

chilly summit
#

Thanks to you two but it's still the same

#

The whole base's cframe changes

#

Idk how but

#

Actually im just changing the cloned part

#
if itemToAppear:HasTag("Dropper") then
                    while task.wait(waitToDrop) do
                        local dropperPart: BasePart = game.ServerStorage.DropperPart
                        local clonedOne = dropperPart:Clone()
                        clonedOne.Parent = workspace
                        clonedOne.CFrame = itemToAppear.DropperPart.CFrame * CFrame.new(0, -2, 0)
                    end
                end