#Problem with Positioning a part when the TargetBox is rotaded?

1 messages · Page 1 of 1 (latest)

ruby belfry
#
        CurrentStiker.CFrame = CFrame.new(StrikerStartPos[SelectedPlr].Position) * CFrame.new(Vector3.new(math.random(-200,200)/100,0,math.random(-400,400)/100))
        CurrentStiker.CFrame = CFrame.lookAt(CurrentStiker.Position, pogSpawn.Position + Vector3.new(0, math.random(2, 10)/10, 0))

line1 Is setting Position (puts striker on center + Randomises the position in box)
line2 Makes striker looks at center of table
So it break when you Rotate it Breaks How can i calculate it or something???

round cave
#

errors?

#

@ruby belfry

ruby belfry
#

no errors its just placing it not right

#

like its works fine when is not rotaded

#

basicly if u rotatde it example 45 deg its not precise

round cave
#

does it rotate it in anyway or just not at all

#

why do you have positions in the CFrame.lookAt

ruby belfry
odd folioBOT
#

studio** You are now Level 3! **studio

ruby belfry
#

the problem is that striker(part) is not in that box you know lime green

#

its off

round cave
#

whats striker(part)

ruby belfry
#

Striker

#

red part

round cave
#

mybad

ruby belfry
#

u see

round cave
#

wait tell me whats the problem ur having again i dont really understand it also tell me what these things are called in your code

#

i dont see whats not precise

#

This red part?