Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

my script teleports part instead of making it look towards?

idk why; but it is supposed to make partA look at partB but it instead teleports to partan

workspace.partA.Position = workspace.partB.Position

4 comments

0

nice one

0

ur an expert; can u help me

0

can u post an answer plz

0

i done boi

1 answer

✓ Accepted answer

what ur doing is setting the position of part a to the position of part b (in case u didnt know), effectively teleporting partA to partB. if u want part a to look at part b, i recommend u use CFrames, like dis:

workspace.partA.CFrame = CFrame.new(workspace.partA.Position, workspace.partB.Position)

CFrames are very good for this sort of thing, as CFrame can make set the part's orientation by making the part "look" at a certain something.

6 comments

0

idk why i cant accept ur answer i'm trying to

0

xd maybe cus u have no rep

0

its ok i dont really need that u accept

0

can u give me an upvote or something; maybe it's that, and u deserve the reputation

0

i had to change my ip just to accept answer wow

0

xd

This discussion is preserved as it was. New answers, comments, and votes are closed.