Advertisement
Gaynoob

Untitled

May 17th, 2025
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.19 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character or player.CharacterAdded:Wait()
  3. local uis = game:GetService("UserInputService")
  4.  
  5. -- Play startup sound
  6. local function playSound(id, volume)
  7.     local sound = Instance.new("Sound", char:FindFirstChild("Head") or char)
  8.     sound.SoundId = id
  9.     sound.Volume = volume or 1
  10.     sound:Play()
  11.     game.Debris:AddItem(sound, 3)
  12. end
  13.  
  14. playSound(_G.settings["RedStartupId"] or "rbxassetid://1837635122", 1.5)
  15.  
  16. -- Glitch effect
  17. local function glitchEffect()
  18.     local part = Instance.new("Part", workspace)
  19.     part.Anchored = true
  20.     part.CanCollide = false
  21.     part.Size = Vector3.new(12, 0.5, 12)
  22.     part.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0)
  23.     part.Color = _G.settings["EffectColor"] or Color3.fromRGB(255, 0, 0)
  24.     part.Material = Enum.Material.Neon
  25.     game.Debris:AddItem(part, 1)
  26.  
  27.     local shockwave = Instance.new("ParticleEmitter", part)
  28.     shockwave.Texture = "rbxassetid://243660364"
  29.     shockwave.Size = NumberSequence.new(5)
  30.     shockwave.Rate = 1000
  31.     shockwave.Lifetime = NumberRange.new(0.5)
  32.     shockwave.Speed = NumberRange.new(20)
  33.     shockwave.Color = ColorSequence.new(_G.settings["EffectColor"])
  34.     game.Debris:AddItem(shockwave, 1)
  35. end
  36.  
  37. -- Coolkid punch move
  38. local function punch()
  39.     glitchEffect()
  40.     playSound(_G.settings["RedHitId"], 1.2)
  41.  
  42.     -- Optional screen shake
  43.     local cam = workspace.CurrentCamera
  44.     coroutine.wrap(function()
  45.         for i = 1, 5 do
  46.             cam.CFrame = cam.CFrame * CFrame.new(math.random(-1,1), math.random(-1,1), 0)
  47.             wait(0.05)
  48.         end
  49.     end)()
  50.  
  51.     -- Damage + Knockback nearby players
  52.     for _, target in pairs(game.Players:GetPlayers()) do
  53.         if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  54.             local hrp = target.Character.HumanoidRootPart
  55.             local dist = (hrp.Position - char.HumanoidRootPart.Position).Magnitude
  56.             if dist < 15 then
  57.                 hrp.Velocity = (hrp.Position - char.HumanoidRootPart.Position).Unit * 100 + Vector3.new(0, 60, 0)
  58.                 local humanoid = target.Character:FindFirstChild("Humanoid")
  59.                 if humanoid then
  60.                     humanoid:TakeDamage(35)
  61.                 end
  62.             end
  63.         end
  64.     end
  65. end
  66.  
  67. -- Keybind
  68. uis.InputBegan:Connect(function(input, gp)
  69.     if gp then return end
  70.     if input.KeyCode == Enum.KeyCode.F then
  71.         punch()
  72.     end
  73. end)
  74.  
  75. -- Glitch UI
  76. if _G.settings["GlitchText"] then
  77.     local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  78.     gui.Name = "CoolkidHack"
  79.  
  80.     local text = Instance.new("TextLabel", gui)
  81.     text.Size = UDim2.new(1, 0, 0.1, 0)
  82.     text.Position = UDim2.new(0, 0, 0, 0)
  83.     text.Text = "COOLKID OWNS THIS PLACE"
  84.     text.TextColor3 = _G.settings["EffectColor"]
  85.     text.BackgroundTransparency = 1
  86.     text.Font = Enum.Font.Code
  87.     text.TextScaled = true
  88.  
  89.     coroutine.wrap(function()
  90.         while gui.Parent do
  91.             text.Text = text.Text .. "|"
  92.             wait(0.1)
  93.             text.Text = text.Text:sub(1, -2)
  94.             wait(0.1)
  95.         end
  96.     end)()
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement