#I want to make it so that when the player triggers a proximity prompt, the model "Pallet" rotates

104 messages · Page 1 of 1 (latest)

forest beacon
#
  • not +
harsh trail
#

at the pallet:SetPrimaryPartCFrame(basepart.CFrame + CFrame.Angles(49.999, 90.288, 0.376)) ?

forest beacon
harsh trail
#

okay well how do i write that circle

#

ah

#

okay let me see if it works

#

it still doesnt work

#

@forest beacon

dusty geyser
#

CFrame.Angles(math.rad(49.999), math.rad(90.288), math.rad(0.376))

#

you forgot to put math.rad

harsh trail
#

but i dont want it to be math random... i want it to be at an exact position and only once

#

this is how it looks like when the player didnt trigger it

#

this is how i want it to look like when the player triggered it

#

thats all

#

@dusty geyser

dusty geyser
#

math.rad not random numbers

#

math.rad are radians

harsh trail
#

now it gives me an error

dusty geyser
#

Show the error

harsh trail
#

how do i do that

fickle gale
#

windows + shift + S ( if ur using windows 10)

dusty geyser
#

Add 1 parentheses

#

In the end

#

Nonono

harsh trail
frigid lanceBOT
#

studio** You are now Level 8! **studio

dusty geyser
#

Remove 1 parenthesis at the end

harsh trail
#

ahh

dusty geyser
#

Me bad

harsh trail
#

still error

#

😭

dusty geyser
#

What

#

Show all code in photo

harsh trail
dusty geyser
#

All code

harsh trail
dusty geyser
#

Show all the code of line 6

forest beacon
#

Did you forget a )?

dusty geyser
#

I'm sure yes xd

forest beacon
#

It should end in ))

#

One for the math.rad() and one for the SetPrimaryPartCFrame()

harsh trail
harsh trail
fickle gale
#

fr 💀

harsh trail
#

okay so do i just put it as math.rad()

fickle gale
#

?

harsh trail
dusty geyser
#

Lol

#
pallet:SetPrimaryPartCFrame(basepart.CFrame * CFrame.Angles(math.rad(49.999), math.rad(90.288), math.rad(0.376))
forest beacon
#

😆

harsh trail
#

bruh whats so funny

forest beacon
#

It’s a common beginner mistake

#

But cracks me up every time

#

You’ll also laugh at it one day

fickle gale
#

no

fickle gale
#

mine is correct

#

))) not ))

harsh trail
#

okay but theres an error at End

dusty geyser
#

Xd

forest beacon
#

Oh wait right, ))) not ))

fickle gale
#
pallet:SetPrimaryPartCFrame(basepart.CFrame * CFrame.Angles(math.rad(49.999), math.rad(90.288), math.rad(0.376)))
forest beacon
#

I forgot about the angles

harsh trail
#

it still doesnt work

fickle gale
#

errors ???

dusty geyser
#

pallet it's a base part?

forest beacon
#

Just wondering. You did rig the pallet right?

harsh trail
#

rig?

dusty geyser
#

pallet its a model?

harsh trail
dusty geyser
#

use PivotTo

harsh trail
#

how do i do that

#

okay so i forgot to put the PrimaryPart thingie in the options of the model...

#

💀

fickle gale
#

basepart is a primaryPart ?

harsh trail
#

the model says the Primary part is the BasePart

dusty geyser
#

What

harsh trail
forest beacon
dusty geyser
#

What is BasePart, where is it

harsh trail
#

no

forest beacon
#

And unanchor all non-root parts?

harsh trail
harsh trail
forest beacon
#

Well then. Weld everything to the “Basepart”. Unachor all other parts

dusty geyser
#
pallet.PrimaryPart:PivotTo(pallet.PrimaryPart.CFrame * CFrame.Angles(math.rad(), math.rad(), math.rad())```
harsh trail
#

this finna take a looong time 😭

#

okay i welded them

#

all the parts i welded are gone

#

a team of 3 cant even help on a script like this is just sad honestly

forest beacon
forest beacon
#

I had to learn this using forms and trail and error

harsh trail
#

yeah, im also learning scripting

#

if it wasnt obvious

#

i guess ill just use a part not a model

#

thanks guys

forest beacon
#

If you weren’t rude then I would’ve helped you fix the error 🤷‍♂️

harsh trail
#

im not rude, im just saying yall wasted my time and broke my pallet model too

forest beacon