Advertisement
BestScripter2122

FE Invisibily script

Jul 18th, 2023
46
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 1 0
  1. (FE Invisibliy Script)
  2.  
  3.  
  4. (script down there)
  5.  
  6. I Made It😊
  7.  
  8. local ScriptStarted = false
  9. local Keybind = "E" --Set to whatever you want, has to be the name of a KeyCode Enum.
  10. local Transparency = true --Will make you slightly transparent when you are invisible. No reason to disable.
  11. local NoClip = false --Will make your fake character no clip.
  12.  
  13. local Player = game:GetService("Players").LocalPlayer
  14. local RealCharacter = Player.Character or Player.CharacterAdded:Wait()
  15.  
  16. local IsInvisible = false
  17.  
  18. RealCharacter.Archivable = true
  19. local FakeCharacter = RealCharacter:Clone()
  20. local Part
  21. Part = Instance.new("Part", workspace)
  22. Part.Anchored = true
  23. Part.Size = Vector3.new(200, 1, 200)
  24. Part.CFrame = CFrame.new(0, -500, 0) --Set this to whatever you want, just far away from the map.
  25. Part.CanCollide = true
  26. FakeCharacter.Parent = workspace
  27. FakeCharacter.HumanoidRootPart.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
  28.  
  29. for i, v in pairs(RealCharacter:GetChildren()) do
  30. if v:IsA("LocalScript") then
  31. local clone = v:Clone()
  32. clone.Disabled = true
  33. clone.Parent = FakeCharacter
  34. end
  35. end
  36. if Transparency then
  37. for i, v in pairs(FakeCharacter:GetDescendants()) do
  38. if v:IsA("BasePart") then
  39. v.Transparency = 0.7
  40. end
  41. end
  42. end
  43. local CanInvis = true
  44. function RealCharacterDied()
  45. CanInvis = false
  46. RealCharacter:Destroy()
  47. RealCharacter = Player.Character
  48. CanInvis = true
  49. isinvisible = false
  50. FakeCharacter:Destroy()
  51. workspace.CurrentCamera.CameraSubject = RealCharacter.Humanoid
  52.  
  53. RealCharacter.Archivable = true
  54. FakeCharacter = RealCharacter:Clone()
  55. Part:Destroy()
  56. Part = Instance.new("Part", workspace)
  57. Part.Anchored = true
  58. Part.Size = Vector3.new(200, 1, 200)
  59. Part.CFrame = CFrame.new(9999, 9999, 9999) --Set this to whatever you want, just far away from the map.
  60. Part.CanCollide = true
  61. FakeCharacter.Parent = workspace
  62. FakeCharacter.HumanoidRootPart.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
  63.  
  64. for i, v in pairs(RealCharacter:GetChildren()) do
  65. if v:IsA("LocalScript") then
  66. local clone = v:Clone()
  67. clone.Disabled = true
  68. clone.Parent = FakeCharacter
  69. end
  70. end
  71. if Transparency then
  72. for i, v in pairs(FakeCharacter:GetDescendants()) do
  73. if v:IsA("BasePart") then
  74. v.Transparency = 0.7
  75. end
  76. end
  77. end
  78. RealCharacter.Humanoid.Died:Connect(function()
  79. RealCharacter:Destroy()
  80. FakeCharacter:Destroy()
  81. end)
  82. Player.CharacterAppearanceLoaded:Connect(RealCharacterDied)
  83. end
  84. RealCharacter.Humanoid.Died:Connect(function()
  85. RealCharacter:Destroy()
  86. FakeCharacter:Destroy()
  87. end)
  88. Player.CharacterAppearanceLoaded:Connect(RealCharacterDied)
  89. local PseudoAnchor
  90. game:GetService "RunService".RenderStepped:Connect(
  91. function()
  92. if PseudoAnchor ~= nil then
  93. PseudoAnchor.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
  94. end
  95. if NoClip then
  96. FakeCharacter.Humanoid:ChangeState(11)
  97. end
  98. end
  99. )
  100.  
  101. PseudoAnchor = FakeCharacter.HumanoidRootPart
  102. local function Invisible()
  103. if IsInvisible == false then
  104. local StoredCF = RealCharacter.HumanoidRootPart.CFrame
  105. RealCharacter.HumanoidRootPart.CFrame = FakeCharacter.HumanoidRootPart.CFrame
  106. FakeCharacter.HumanoidRootPart.CFrame = StoredCF
  107. RealCharacter.Humanoid:UnequipTools()
  108. Player.Character = FakeCharacter
  109. workspace.CurrentCamera.CameraSubject = FakeCharacter.Humanoid
  110. PseudoAnchor = RealCharacter.HumanoidRootPart
  111. for i, v in pairs(FakeCharacter:GetChildren()) do
  112. if v:IsA("LocalScript") then
  113. v.Disabled = false
  114. end
  115. end
  116.  
  117. IsInvisible = true
  118. else
  119. local StoredCF = FakeCharacter.HumanoidRootPart.CFrame
  120. FakeCharacter.HumanoidRootPart.CFrame = RealCharacter.HumanoidRootPart.CFrame
  121.  
  122. RealCharacter.HumanoidRootPart.CFrame = StoredCF
  123.  
  124. FakeCharacter.Humanoid:UnequipTools()
  125. Player.Character = RealCharacter
  126. workspace.CurrentCamera.CameraSubject = RealCharacter.Humanoid
  127. PseudoAnchor = FakeCharacter.HumanoidRootPart
  128. for i, v in pairs(FakeCharacter:GetChildren()) do
  129. if v:IsA("LocalScript") then
  130. v.Disabled = true
  131. end
  132. end
  133. IsInvisible = false
  134. end
  135. end
  136.  
  137. game:GetService("UserInputService").InputBegan:Connect(
  138. function(key, gamep)
  139. if gamep then
  140. return
  141. end
  142. if key.KeyCode.Name:lower() == Keybind:lower() and CanInvis and RealCharacter and FakeCharacter then
  143. if RealCharacter:FindFirstChild("HumanoidRootPart") and FakeCharacter:FindFirstChild("HumanoidRootPart") then
  144. Invisible()
  145. end
  146. end
  147. end
  148. )
  149. local Sound = Instance.new("Sound",game:GetService("SoundService"))
  150. Sound.SoundId = "rbxassetid://232127604"
  151. Sound:Play()
  152. game:GetService("StarterGui"):SetCore("SendNotification",{["Title"] = "Invisible Toggle Loaded",["Text"] = "Press "..Keybind.." to become change visibility.",["Duration"] = 20,["Button1"] = "Okay."})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement