MaxproGlitcher

Flip Screen ON / OFF

Apr 14th, 2026
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. local RunService = game:GetService("RunService")
  2.  
  3. _G.FlipEnabled = false
  4. _G.FlipConnection = nil
  5.  
  6. local function toggleFlip()
  7. _G.FlipEnabled = not _G.FlipEnabled
  8.  
  9. -- OFF
  10. if not _G.FlipEnabled then
  11. if _G.FlipConnection then
  12. _G.FlipConnection:Disconnect()
  13. _G.FlipConnection = nil
  14. end
  15. return
  16. end
  17.  
  18. -- ON
  19. _G.FlipConnection = RunService.RenderStepped:Connect(function()
  20. local camera = workspace.CurrentCamera
  21. if not camera then return end
  22.  
  23. local cf = camera.CFrame
  24. camera.CFrame = cf * CFrame.Angles(0, 0, math.rad(180))
  25. end)
  26. end
  27.  
  28. -- 🔥 Toggle automatique au lancement
  29. toggleFlip()
  30.  
  31. -- 💡 Tu peux re-call ça pour toggle OFF/ON
  32. -- toggleFlip()
  33.  
Advertisement
Add Comment
Please, Sign In to add comment