Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService("RunService")
- _G.FlipEnabled = false
- _G.FlipConnection = nil
- local function toggleFlip()
- _G.FlipEnabled = not _G.FlipEnabled
- -- OFF
- if not _G.FlipEnabled then
- if _G.FlipConnection then
- _G.FlipConnection:Disconnect()
- _G.FlipConnection = nil
- end
- return
- end
- -- ON
- _G.FlipConnection = RunService.RenderStepped:Connect(function()
- local camera = workspace.CurrentCamera
- if not camera then return end
- local cf = camera.CFrame
- camera.CFrame = cf * CFrame.Angles(0, 0, math.rad(180))
- end)
- end
- -- 🔥 Toggle automatique au lancement
- toggleFlip()
- -- 💡 Tu peux re-call ça pour toggle OFF/ON
- -- toggleFlip()
Advertisement
Add Comment
Please, Sign In to add comment