Advertisement
Gaynoob

Untitled

May 17th, 2025
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.31 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character or player.CharacterAdded:Wait()
  3.  
  4. -- Play startup sound
  5. local function playSound(id, volume)
  6.     local sound = Instance.new("Sound", char:FindFirstChild("Head") or char)
  7.     sound.SoundId = id
  8.     sound.Volume = volume or 1
  9.     sound:Play()
  10.     game.Debris:AddItem(sound, 3)
  11. end
  12.  
  13. playSound(_G.settings["RedStartupId"] or "rbxassetid://1837635122", 1.5)
  14.  
  15. -- Glitch effect
  16. local function glitchEffect()
  17.     local part = Instance.new("Part", workspace)
  18.     part.Anchored = true
  19.     part.CanCollide = false
  20.     part.Size = Vector3.new(12, 0.5, 12)
  21.     part.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0)
  22.     part.Color = _G.settings["EffectColor"] or Color3.fromRGB(255, 0, 0)
  23.     part.Material = Enum.Material.Neon
  24.     game.Debris:AddItem(part, 1)
  25. end
  26.  
  27. -- Punch move with glitch
  28. local function punch()
  29.     playSound(_G.settings["RedHitId"], 1.2)
  30.     glitchEffect()
  31.  
  32.     -- Optional: knockback or explosion
  33.     for _, v in pairs(workspace:GetChildren()) do
  34.         if v:IsA("Model") and v:FindFirstChild("HumanoidRootPart") and v ~= char then
  35.             local dist = (v.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Magnitude
  36.             if dist < 10 then
  37.                 v.HumanoidRootPart.Velocity = (v.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Unit * 80
  38.             end
  39.         end
  40.     end
  41. end
  42.  
  43. -- Bind to F key
  44. game:GetService("UserInputService").InputBegan:Connect(function(input, gp)
  45.     if gp then return end
  46.     if input.KeyCode == Enum.KeyCode.F then
  47.         punch()
  48.     end
  49. end)
  50.  
  51. -- Coolkid glitch text
  52. if _G.settings["GlitchText"] then
  53.     local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  54.     gui.Name = "CoolkidHack"
  55.  
  56.     local text = Instance.new("TextLabel", gui)
  57.     text.Size = UDim2.new(1, 0, 0.1, 0)
  58.     text.Position = UDim2.new(0, 0, 0, 0)
  59.     text.Text = "COOLKID OWNS THIS PLACE"
  60.     text.TextColor3 = _G.settings["EffectColor"]
  61.     text.BackgroundTransparency = 1
  62.     text.Font = Enum.Font.Code
  63.     text.TextScaled = true
  64.  
  65.     coroutine.wrap(function()
  66.         while gui.Parent do
  67.             text.Text = text.Text .. "|"
  68.             wait(0.1)
  69.             text.Text = text.Text:sub(1, -2)
  70.             wait(0.1)
  71.         end
  72.     end)()
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement