I've made this script for a lightsaber when a player press 'q' the lightsaber blade ignites. http://prntscr.com/6oekhl
But for some reason this is what happens: https://www.youtube.com/watch?v=wNfuFzj52Is
Can anyone tell me why this happens or tell me what I need to do/change?
Thanks.
So basically, you're not defining the positions before the script is started. Also, you're not telling the script where the position of the part is.
There's a huge conflict within this, I believe you can fix it this way;
-- Defining the position SaberM2PositionY = SaberM2.Position.Y SaberM2PositionX = SaberM2.Position.X SaberM2PositionZ = SaberM2.Position.Z SaberM2PositionY = SaberM2.Position.Y SaberM2PositionX = SaberM2.Position.X SaberM2PositionZ = SaberM2.Position.Z -- Correctly making the position for i = 1, 9 do Saber.SABERSNAME.Position.X = SaberM2PositionX Saber.SABERSNAME.Position.Y = SaberM2PositionY Saber.SABERSNAME.Position.Z = SaberM2PositionZ Saber.SECONDSABERNAME.Position.X = SaberMPositionX Saber.SECONDSABERNAME.Position.Y = SaberMPositionY Saber.SECONDSABERNAME.Position.Z = SaberMPositionZ wait() -- saberscalecode end end end)