Oldrobloxc00lkid

Invisible scripr

Jul 28th, 2025
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.96 KB | Gaming | 0 0
  1. – Invisible Microphone Script for Volcano Executor
  2. – Test script for microphone functionality
  3.  
  4. local Players = game:GetService(“Players”)
  5. local RunService = game:GetService(“RunService”)
  6. local UserInputService = game:GetService(“UserInputService”)
  7. local SoundService = game:GetService(“SoundService”)
  8. local TweenService = game:GetService(“TweenService”)
  9.  
  10. local LocalPlayer = Players.LocalPlayer
  11. local PlayerGui = LocalPlayer:WaitForChild(“PlayerGui”)
  12.  
  13. – Configuration
  14. local MIC_KEY = Enum.KeyCode.M – Press M to toggle
  15. local micEnabled = false
  16. local micPart = nil
  17. local micGui = nil
  18.  
  19. – Create invisible microphone part
  20. local function createInvisibleMic()
  21. if micPart then micPart:Destroy() end
  22.  
  23. ```
  24. local character = LocalPlayer.Character
  25. if not character then return end
  26.  
  27. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  28. if not humanoidRootPart then return end
  29.  
  30. -- Create invisible mic part
  31. micPart = Instance.new("Part")
  32. micPart.Name = "InvisibleMicrophone"
  33. micPart.Size = Vector3.new(0.05, 0.05, 0.05)
  34. micPart.Material = Enum.Material.ForceField
  35. micPart.Transparency = 1
  36. micPart.CanCollide = false
  37. micPart.Anchored = false
  38. micPart.TopSurface = Enum.SurfaceType.Smooth
  39. micPart.BottomSurface = Enum.SurfaceType.Smooth
  40.  
  41. -- Attach to head area
  42. local attachment0 = Instance.new("Attachment")
  43. attachment0.Parent = humanoidRootPart
  44.  
  45. local attachment1 = Instance.new("Attachment")
  46. attachment1.Parent = micPart
  47.  
  48. local alignPosition = Instance.new("AlignPosition")
  49. alignPosition.Attachment0 = attachment1
  50. alignPosition.Attachment1 = attachment0
  51. alignPosition.MaxForce = 9e9
  52. alignPosition.MaxVelocity = math.huge
  53. alignPosition.Responsiveness = 200
  54. alignPosition.Parent = micPart
  55.  
  56. -- Position offset (in front of player's face)
  57. attachment0.Position = Vector3.new(0, 1.5, -1)
  58.  
  59. micPart.Parent = workspace
  60.  
  61. print("✅ Invisible microphone created and attached")
  62. ```
  63.  
  64. end
  65.  
  66. – Create GUI
  67. local function createMicrophoneGUI()
  68. if micGui then micGui:Destroy() end
  69.  
  70. ```
  71. micGui = Instance.new("ScreenGui")
  72. micGui.Name = "MicrophoneInterface"
  73. micGui.ResetOnSpawn = false
  74. micGui.Parent = PlayerGui
  75.  
  76. -- Main frame
  77. local mainFrame = Instance.new("Frame")
  78. mainFrame.Name = "MicFrame"
  79. mainFrame.Size = UDim2.new(0, 120, 0, 40)
  80. mainFrame.Position = UDim2.new(0, 10, 0, 10)
  81. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  82. mainFrame.BorderSizePixel = 0
  83. mainFrame.Parent = micGui
  84.  
  85. -- Corner rounding
  86. local corner = Instance.new("UICorner")
  87. corner.CornerRadius = UDim.new(0, 8)
  88. corner.Parent = mainFrame
  89.  
  90. -- Microphone status label
  91. local statusLabel = Instance.new("TextLabel")
  92. statusLabel.Name = "StatusLabel"
  93. statusLabel.Size = UDim2.new(0.7, 0, 1, 0)
  94. statusLabel.Position = UDim2.new(0, 0, 0, 0)
  95. statusLabel.BackgroundTransparency = 1
  96. statusLabel.Text = "🎤 OFF"
  97. statusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
  98. statusLabel.TextScaled = true
  99. statusLabel.Font = Enum.Font.GothamBold
  100. statusLabel.Parent = mainFrame
  101.  
  102. -- Toggle button
  103. local toggleButton = Instance.new("TextButton")
  104. toggleButton.Name = "ToggleButton"
  105. toggleButton.Size = UDim2.new(0.3, 0, 0.8, 0)
  106. toggleButton.Position = UDim2.new(0.7, 0, 0.1, 0)
  107. toggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  108. toggleButton.Text = "M"
  109. toggleButton.TextColor3 = Color3.white
  110. toggleButton.TextScaled = true
  111. toggleButton.Font = Enum.Font.GothamBold
  112. toggleButton.Parent = mainFrame
  113.  
  114. local buttonCorner = Instance.new("UICorner")
  115. buttonCorner.CornerRadius = UDim.new(0, 4)
  116. buttonCorner.Parent = toggleButton
  117.  
  118. return statusLabel, toggleButton
  119. ```
  120.  
  121. end
  122.  
  123. – Update microphone status
  124. local function updateMicrophoneStatus()
  125. if not micGui then return end
  126.  
  127. ```
  128. local statusLabel = micGui.MicFrame.StatusLabel
  129.  
  130. if micEnabled then
  131.     statusLabel.Text = "🎤 ON"
  132.     statusLabel.TextColor3 = Color3.fromRGB(100, 255, 100)
  133.    
  134.     -- Add pulsing effect when active
  135.     local tween = TweenService:Create(
  136.         statusLabel,
  137.         TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true),
  138.         {TextTransparency = 0.3}
  139.     )
  140.     tween:Play()
  141.    
  142.     print("🎤 Microphone ENABLED")
  143. else
  144.     statusLabel.Text = "🎤 OFF"
  145.     statusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
  146.     statusLabel.TextTransparency = 0
  147.    
  148.     print("🎤 Microphone DISABLED")
  149. end
  150. ```
  151.  
  152. end
  153.  
  154. – Toggle microphone function
  155. local function toggleMicrophone()
  156. micEnabled = not micEnabled
  157. updateMicrophoneStatus()
  158.  
  159. ```
  160. if micEnabled then
  161.     -- Create mic if it doesn't exist
  162.     if not micPart or not micPart.Parent then
  163.         createInvisibleMic()
  164.     end
  165. end
  166. ```
  167.  
  168. end
  169.  
  170. – Initialize everything
  171. local function initialize()
  172. print(“🔧 Initializing Invisible Microphone System…”)
  173.  
  174. ```
  175. -- Create GUI
  176. local statusLabel, toggleButton = createMicrophoneGUI()
  177.  
  178. -- Button click handler
  179. toggleButton.MouseButton1Click:Connect(toggleMicrophone)
  180.  
  181. -- Keyboard handler
  182. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  183.     if gameProcessed then return end
  184.    
  185.     if input.KeyCode == MIC_KEY then
  186.         toggleMicrophone()
  187.     end
  188. end)
  189.  
  190. -- Handle character respawn
  191. LocalPlayer.CharacterAdded:Connect(function(character)
  192.     wait(2) -- Wait for character to fully load
  193.     if micEnabled then
  194.         createInvisibleMic()
  195.     end
  196. end)
  197.  
  198. -- Create initial mic if character exists
  199. if LocalPlayer.Character then
  200.     createInvisibleMic()
  201. end
  202.  
  203. updateMicrophoneStatus()
  204.  
  205. print("✅ Invisible Microphone System loaded!")
  206. print("📋 Press 'M' key or click the button to toggle microphone")
  207. print("🎯 Current status: " .. (micEnabled and "ON" or "OFF"))
  208. ```
  209.  
  210. end
  211.  
  212. – Start the system
  213. initialize()
  214.  
  215. – Cleanup function
  216. local function cleanup()
  217. if micPart then micPart:Destroy() end
  218. if micGui then micGui:Destroy() end
  219. end
  220.  
  221. – Handle script termination
  222. game:GetService(“Players”).PlayerRemoving:Connect(function(player)
  223. if player == LocalPlayer then
  224. cleanup()
  225. end
  226. end)
Advertisement
Add Comment
Please, Sign In to add comment