#how do i do tis yall

1 messages · Page 1 of 1 (latest)

ember trench
#

I'm trying to get a model in the ServerStorage (chosen randomly) to get the position of this part, but I tried both this and using .CFrame instead of .Origin and they both give me error!!!11!1!1
How do I do this wise young men??

sudden junco
sudden junco
#

oh yeah you need to get the CFrame of a part inside your model

ember trench
#

nothing appears, thats the thing

sudden junco
#

Should have mentioned that if you want the whole model to move you need to change the cframe of the primary part

#

and is your variable tile a model or a part?

#

because if it is a model make sure to also use its primary part to get he cframe

ember trench
#

plus, i still dont get what the primary part thing is

sudden junco
#

So basicly every Model can have a primary part. For the player character it is HumanoidRootPart. If you move the HumanoidRootPart the whole player model moves

ember trench
sudden junco
#

every model has a property called PrimaryPart but if you didn't set your PrimaryPart for your tiles then it doesn't have a primary part

agile pollen
agile pollen
#

models dont have a valid .Position or .CFrame properties, you need to use :PivotTo() instead

ember trench
#

never fricking mind, doesn't seem to work either

agile pollen
# ember trench nothing appears, thats the thing

also pro tip:
dont use global variables
theyre generally slower than local variables

like for example

local variable example:

local tile2 = file.Ladder:Clone()

global variable example:

tile2 = file.Ladder:Clone()

(just got rid of the local)

agile pollen
ember trench
#

both methods do nothing

#

not an error, not a result

#

nothing

agile pollen
#

are you sure the code is even running

ember trench
#

I could try a much more brute method, if you dont want to bother

agile pollen
#

oh wait

#

you forgot to parent it

#

💔

ember trench
agile pollen
#

put a tile2.Parent = workspace after the print

#

or before

#

anything works

ember trench
agile pollen
#

nope

ember trench
#

no way jose

agile pollen
#

you gotta manually set the clones to the workspace

ember trench
#

ok, that explains a lot

#

tyvm cat guy