If statement not working in roblox studio – Stack Overflow

Replace if Frame = 1 then with if Frame == 1 then. If you want to check wether two values are equal you need to use the equality operator == , not …
View full source