MaxproGlitcher

Script Invisible Clients Side

Apr 6th, 2025
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local key = Enum.KeyCode.X -- key to toggle invisibility
  4.  
  5. --// don't edit script Thx
  6. local invis_on = false
  7.  
  8. function setTransparency(character, transparency)
  9. for _, part in pairs(character:GetDescendants()) do
  10. if part:IsA("BasePart") or part:IsA("Decal") or part:IsA("MeshPart") then
  11. part.Transparency = transparency
  12. end
  13. end
  14. end
  15.  
  16. function onKeyPress(inputObject, chat)
  17. if chat then return end
  18. if inputObject.KeyCode == key then
  19. invis_on = not invis_on
  20. if invis_on then
  21. local savedpos = player.Character.HumanoidRootPart.CFrame
  22. wait()
  23. player.Character:MoveTo(Vector3.new(-25.95, 84, 3537.55))
  24. wait(.15)
  25. local Seat = Instance.new('Seat', game.Workspace)
  26. Seat.Anchored = false
  27. Seat.CanCollide = false
  28. Seat.Name = 'invischair'
  29. Seat.Transparency = 1
  30. Seat.Position = Vector3.new(-25.95, 84, 3537.55)
  31. local Weld = Instance.new("Weld", Seat)
  32. Weld.Part0 = Seat
  33. Weld.Part1 = player.Character:FindFirstChild("Torso") or player.Character.UpperTorso
  34. wait()
  35. Seat.CFrame = savedpos
  36. setTransparency(player.Character, 0.7) -- Set partial transparency
  37. player.Character.HumanoidRootPart.Transparency = 0.7
  38. game.StarterGui:SetCore("SendNotification", {
  39. Title = "Invis On";
  40. Duration = 1;
  41. Text = "";
  42. })
  43. else
  44. if workspace:FindFirstChild('invischair') then
  45. workspace:FindFirstChild('invischair'):Destroy()
  46. end
  47. setTransparency(player.Character, 0) -- Set transparency to visible
  48. player.Character.HumanoidRootPart.Transparency = 0
  49. game.StarterGui:SetCore("SendNotification", {
  50. Title = "Invis Off";
  51. Duration = 1;
  52. Text = "";
  53. })
  54. end
  55. end
  56. end
  57.  
  58. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment