Josiahiscool73

fe clone script

Dec 24th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. -- // GUI SETUP \\ --
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local ToggleBtn = Instance.new("TextButton")
  5. local UICorner = Instance.new("UICorner")
  6. local Title = Instance.new("TextLabel")
  7.  
  8. -- GUI Protection
  9. if game:GetService("CoreGui"):FindFirstChild("RobloxGui") then
  10. ScreenGui.Parent = game:GetService("CoreGui")
  11. else
  12. ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  13. end
  14.  
  15. ScreenGui.Name = "CloneGlitch_StableCam"
  16. ScreenGui.ResetOnSpawn = false
  17.  
  18. -- Frame
  19. Frame.Parent = ScreenGui
  20. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  21. Frame.Position = UDim2.new(0.5, -100, 0.5, -60)
  22. Frame.Size = UDim2.new(0, 200, 0, 120)
  23. Frame.Active = true
  24. Frame.Draggable = true
  25.  
  26. -- Title
  27. Title.Parent = Frame
  28. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  29. Title.BackgroundTransparency = 1
  30. Title.Size = UDim2.new(1, 0, 0, 30)
  31. Title.Font = Enum.Font.GothamBold
  32. Title.Text = "Clone Glitch (Stable Cam)"
  33. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. Title.TextSize = 16
  35.  
  36. -- Button
  37. ToggleBtn.Parent = Frame
  38. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50) -- Red
  39. ToggleBtn.Position = UDim2.new(0.1, 0, 0.4, 0)
  40. ToggleBtn.Size = UDim2.new(0.8, 0, 0.4, 0)
  41. ToggleBtn.Font = Enum.Font.GothamBlack
  42. ToggleBtn.Text = "OFF"
  43. ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  44. ToggleBtn.TextSize = 24
  45.  
  46. UICorner.Parent = ToggleBtn
  47. UICorner.CornerRadius = UDim.new(0, 8)
  48.  
  49. -- // LOGIC \\ --
  50. local Players = game:GetService("Players")
  51. local Workspace = game:GetService("Workspace")
  52. local player = Players.LocalPlayer
  53. local camera = Workspace.CurrentCamera
  54.  
  55. local enabled = false
  56. local DISTANCE = 7 -- Teleport distance
  57. local anchorPart = nil
  58.  
  59. local function resetCamera()
  60. if player.Character and player.Character:FindFirstChild("Humanoid") then
  61. camera.CameraSubject = player.Character.Humanoid
  62. end
  63. if anchorPart then
  64. anchorPart:Destroy()
  65. anchorPart = nil
  66. end
  67. end
  68.  
  69. ToggleBtn.MouseButton1Click:Connect(function()
  70. enabled = not enabled
  71.  
  72. if enabled then
  73. ToggleBtn.Text = "ON"
  74. ToggleBtn.BackgroundColor3 = Color3.fromRGB(50, 255, 50) -- Green
  75.  
  76. -- Create the Anchor Part (The thing the camera will look at)
  77. if not anchorPart then
  78. anchorPart = Instance.new("Part")
  79. anchorPart.Name = "GlitchAnchor"
  80. anchorPart.Transparency = 1 -- Invisible
  81. anchorPart.CanCollide = false
  82. anchorPart.Anchored = true
  83. anchorPart.Size = Vector3.new(1, 1, 1)
  84. anchorPart.Parent = Workspace
  85. end
  86.  
  87. -- Switch Camera to the Anchor Part
  88. camera.CameraSubject = anchorPart
  89.  
  90. -- Start the Loop
  91. task.spawn(function()
  92. while enabled do
  93. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  94. local hrp = player.Character.HumanoidRootPart
  95.  
  96. -- 1. Update Anchor Position to Match Real Position (Smooth Movement)
  97. anchorPart.CFrame = hrp.CFrame
  98.  
  99. -- Anti-Fling
  100. hrp.CanCollide = false
  101.  
  102. -- 2. Teleport Character LEFT
  103. hrp.CFrame = hrp.CFrame * CFrame.new(-DISTANCE, 0, 0)
  104.  
  105. -- YOUR WAIT
  106. task.wait(0.0000000000000000000000001)
  107.  
  108. -- 3. Teleport Character BACK (Right)
  109. -- We use the anchorPart position because that is the "Real" center
  110. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  111. hrp.CFrame = anchorPart.CFrame
  112. end
  113.  
  114. -- YOUR WAIT
  115. task.wait(0.0000000000000000000000001)
  116. else
  117. -- Character missing? Wait a second and try again
  118. task.wait(1)
  119. end
  120. end
  121. -- Loop ended? Reset camera
  122. resetCamera()
  123. end)
  124. else
  125. ToggleBtn.Text = "OFF"
  126. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50) -- Red
  127. resetCamera()
  128. end
  129. end)
Advertisement
Add Comment
Please, Sign In to add comment