I have the shop Gui's made, but when I try to make the part offset from the middle, when you move around the camera the part does not stay in place.
1 | local ang = 0 |
2 | while wait() do |
3 | if game.Workspace.CurrentCamera:FindFirstChild( "Part" ) then |
4 | ang = ang+ 1 --This just makes the part rotate |
5 | game.Workspace.CurrentCamera.Part.CFrame = CFrame.new(game.Workspace.CurrentCamera.CoordinateFrame.lookVector* 3 +game.Workspace.CurrentCamera.CoordinateFrame.p+Vector 3. new( 6 , 0 , 0 ))*CFrame.Angles(math.rad(ang),math.rad(ang),math.rad(ang)) --This is the formula to put the part in the middle of the screen then offset it by 6 on the x axis. |
6 | end |
7 | end |
Help?
Wait so are you making it so there is a shop you have to walk up to or a gui?