i use this script to set the position of RED part:
1 | RED.Position = Vector 3. new( - 20.35 , 20.51 , 4.909 ) |
but.. on roblox studio, the position is this, but when i try the game(in roblox studio) and the 2nd round starts( so this script fires) the RED part goes to another position.. why??
Hmm, This is a strange bug. But I have some possible answers that may help
Answer 1 Use CFrame to move the part
If you dont understand CFrame, or you dont know how to use it there some Tutorials that may Help you. http://www.youtube.com/watch?v=9YqN8_VERps
Answer 2 Duplicate a part then position it anywhere and make it Transparency 1, then get the path of the duplicated part then put it here
1 | local Part = --Path of Duplicated Part here |
2 |
3 | -- then after that get the path of part you want to move then put it here ? |
4 | local MainPart = --Path of Part you wanna Move Here |
5 | -- then use this |
6 | MainPart.CFrame = Part.CFrame |
Answer 3 (Basically same as Answer 2 But using Position) Duplicate a part then position it anywhere and make it Transparency 1, then get the path of the duplicated part then put it here
1 | local Part = --Path of Duplicated Part here |
2 |
3 | -- then after that get the path of part you want to move then put it here |
4 | local MainPart = --Path of Part you wanna Move Here |
5 | -- then use this |
6 |
7 | MainPart.Position = Part.Position |
That's all I can think of a possible answer, hope this helped
I believe you need to use MoveTo()
Maybe something like this will work?? If this doesn't work there are a few things you can change to see if it will work.
1 | RED:MoveTo(- 20.35 , 20.51 , 4.909. Position) |
Let me know if it doesn't work. Hope this helps!!