Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character or player.CharacterAdded:Wait()
- local uis = game:GetService("UserInputService")
- -- Play startup sound
- local function playSound(id, volume)
- local sound = Instance.new("Sound", char:FindFirstChild("Head") or char)
- sound.SoundId = id
- sound.Volume = volume or 1
- sound:Play()
- game.Debris:AddItem(sound, 3)
- end
- playSound(_G.settings["RedStartupId"] or "rbxassetid://1837635122", 1.5)
- -- Glitch effect
- local function glitchEffect()
- local part = Instance.new("Part", workspace)
- part.Anchored = true
- part.CanCollide = false
- part.Size = Vector3.new(12, 0.5, 12)
- part.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, -3, 0)
- part.Color = _G.settings["EffectColor"] or Color3.fromRGB(255, 0, 0)
- part.Material = Enum.Material.Neon
- game.Debris:AddItem(part, 1)
- local shockwave = Instance.new("ParticleEmitter", part)
- shockwave.Texture = "rbxassetid://243660364"
- shockwave.Size = NumberSequence.new(5)
- shockwave.Rate = 1000
- shockwave.Lifetime = NumberRange.new(0.5)
- shockwave.Speed = NumberRange.new(20)
- shockwave.Color = ColorSequence.new(_G.settings["EffectColor"])
- game.Debris:AddItem(shockwave, 1)
- end
- -- Coolkid punch move
- local function punch()
- glitchEffect()
- playSound(_G.settings["RedHitId"], 1.2)
- -- Optional screen shake
- local cam = workspace.CurrentCamera
- coroutine.wrap(function()
- for i = 1, 5 do
- cam.CFrame = cam.CFrame * CFrame.new(math.random(-1,1), math.random(-1,1), 0)
- wait(0.05)
- end
- end)()
- -- Damage + Knockback nearby players
- for _, target in pairs(game.Players:GetPlayers()) do
- if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
- local hrp = target.Character.HumanoidRootPart
- local dist = (hrp.Position - char.HumanoidRootPart.Position).Magnitude
- if dist < 15 then
- hrp.Velocity = (hrp.Position - char.HumanoidRootPart.Position).Unit * 100 + Vector3.new(0, 60, 0)
- local humanoid = target.Character:FindFirstChild("Humanoid")
- if humanoid then
- humanoid:TakeDamage(35)
- end
- end
- end
- end
- end
- -- Keybind
- uis.InputBegan:Connect(function(input, gp)
- if gp then return end
- if input.KeyCode == Enum.KeyCode.F then
- punch()
- end
- end)
- -- Glitch UI
- if _G.settings["GlitchText"] then
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "CoolkidHack"
- local text = Instance.new("TextLabel", gui)
- text.Size = UDim2.new(1, 0, 0.1, 0)
- text.Position = UDim2.new(0, 0, 0, 0)
- text.Text = "COOLKID OWNS THIS PLACE"
- text.TextColor3 = _G.settings["EffectColor"]
- text.BackgroundTransparency = 1
- text.Font = Enum.Font.Code
- text.TextScaled = true
- coroutine.wrap(function()
- while gui.Parent do
- text.Text = text.Text .. "|"
- wait(0.1)
- text.Text = text.Text:sub(1, -2)
- wait(0.1)
- end
- end)()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement