Advertisement
Elvisfofo_rblx

Better Invisible Script

Jun 22nd, 2025
875
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. local key = Enum.KeyCode.X -- key to toggle invisibility
  2.  
  3. --// dont edit script below
  4. local invis_on = false
  5. local defaultSpeed = 16 -- Default walk speed
  6. local boostedSpeed = 48 -- 3x the default speed (16 * 3)
  7. local isSpeedBoosted = false
  8.  
  9. local player = game.Players.LocalPlayer
  10. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  11. local frame = Instance.new("Frame", screenGui)
  12. local toggleButton = Instance.new("TextButton", frame)
  13. local closeButton = Instance.new("TextButton", frame)
  14. local signatureLabel = Instance.new("TextLabel", frame)
  15. local speedButton = Instance.new("TextButton", frame) -- Fixed typo: Instance.New to Instance.new
  16.  
  17. screenGui.ResetOnSpawn = false
  18.  
  19. frame.Size = UDim2.new(0, 100, 0, 110)
  20. frame.Position = UDim2.new(0.5, -110, 0.5, -60)
  21. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  22. frame.Active = true
  23. frame.Draggable = true
  24.  
  25. toggleButton.Size = UDim2.new(0, 80, 0, 30)
  26. toggleButton.Position = UDim2.new(0, 10, 0, 30)
  27. toggleButton.Text = "INVISIBLE"
  28. toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  29. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. toggleButton.Font = Enum.Font.SourceSans
  31. toggleButton.TextScaled = true
  32.  
  33. closeButton.Size = UDim2.new(0, 20, 0, 20)
  34. closeButton.Position = UDim2.new(1, -30, 0, 5)
  35. closeButton.Text = "X"
  36. closeButton.BackgroundColor3 = Color3.fromRGB(255, 123, 0)
  37. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  38. closeButton.Font = Enum.Font.SourceSans
  39. closeButton.TextSize = 18
  40.  
  41. signatureLabel.Size = UDim2.new(0, 100, 0, 10)
  42. signatureLabel.Position = UDim2.new(0, 0, 0.9, 0)
  43. signatureLabel.Text = "By: Super Hacker YT"
  44. signatureLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  45. signatureLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. signatureLabel.Font = Enum.Font.SourceSans
  47. signatureLabel.TextScaled = true
  48. signatureLabel.Transparency = 0.3
  49.  
  50. speedButton.Size = UDim2.new(0, 80, 0, 30)
  51. speedButton.Position = UDim2.new(0, 10, 0, 65) -- Adjusted position to avoid overlap
  52. speedButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  53. speedButton.Text = "SPEED BOOST"
  54. speedButton.TextScaled = true
  55. speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. speedButton.Font = Enum.Font.SourceSans
  57.  
  58. -- Создание звукового объекта
  59. local sound = Instance.new("Sound", player:WaitForChild("PlayerGui"))
  60. sound.SoundId = "rbxassetid://942127495"
  61. sound.Volume = 1
  62.  
  63. local function setTransparency(character, transparency)
  64. for _, part in pairs(character:GetDescendants()) do
  65. if part:IsA("BasePart") or part:IsA("Decal") then
  66. part.Transparency = transparency
  67. end
  68. end
  69. end
  70.  
  71. local function toggleInvisibility()
  72. invis_on = not invis_on
  73. sound:Play()
  74. if invis_on then
  75. local savedpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  76. wait()
  77. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-25.95, 84, 3537.55))
  78. wait(.15)
  79. local Seat = Instance.new('Seat', game.Workspace)
  80. Seat.Anchored = false
  81. Seat.CanCollide = false
  82. Seat.Name = 'invischair'
  83. Seat.Transparency = 1
  84. Seat.Position = Vector3.new(-25.95, 84, 3537.55) -- Fixed typo in position
  85. local Weld = Instance.new("Weld", Seat)
  86. Weld.Part0 = Seat
  87. Weld.Part1 = game.Players.LocalPlayer.Character:FindFirstChild("Torso") or game.Players.LocalPlayer.Character.UpperTorso
  88. wait()
  89. Seat.CFrame = savedpos
  90. setTransparency(game.Players.LocalPlayer.Character, 0.5)
  91. game.StarterGui:SetCore("SendNotification", {
  92. Title = "Invis (on)",
  93. Duration = 3,
  94. Text = "STATUS:"
  95. })
  96. else
  97. local invisChair = workspace:FindFirstChild('invischair')
  98. if invisChair then
  99. invisChair:Destroy()
  100. end
  101. setTransparency(game.Players.LocalPlayer.Character, 0)
  102. game.StarterGui:SetCore("SendNotification", {
  103. Title = "Invis (off)",
  104. Duration = 3,
  105. Text = "STATUS:"
  106. })
  107. end
  108. end
  109.  
  110. local function toggleSpeedBoost()
  111. isSpeedBoosted = not isSpeedBoosted
  112. sound:Play()
  113. local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  114. if humanoid then
  115. if isSpeedBoosted then
  116. humanoid.WalkSpeed = boostedSpeed
  117. speedButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0) -- Green when active
  118. game.StarterGui:SetCore("SendNotification", {
  119. Title = "Speed Boost (on)",
  120. Duration = 3,
  121. Text = "Speed: " .. boostedSpeed
  122. })
  123. else
  124. humanoid.WalkSpeed = defaultSpeed
  125. speedButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Red when inactive
  126. game.StarterGui:SetCore("SendNotification", {
  127. Title = "Speed Boost (off)",
  128. Duration = 3,
  129. Text = "Speed: " .. defaultSpeed
  130. })
  131. end
  132. end
  133. end
  134.  
  135. toggleButton.MouseButton1Click:Connect(toggleInvisibility)
  136. speedButton.MouseButton1Click:Connect(toggleSpeedBoost)
  137. closeButton.MouseButton1Click:Connect(function()
  138. frame.Visible = false
  139. end)
  140.  
  141. -- Reset speed when character respawns
  142. player.CharacterAdded:Connect(function(character)
  143. isSpeedBoosted = false
  144. local humanoid = character:WaitForChild("Humanoid")
  145. humanoid.WalkSpeed = defaultSpeed
  146. speedButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  147. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement