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()
- -- 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)
- end
- -- Punch move with glitch
- local function punch()
- playSound(_G.settings["RedHitId"], 1.2)
- glitchEffect()
- -- Optional: knockback or explosion
- for _, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") and v:FindFirstChild("HumanoidRootPart") and v ~= char then
- local dist = (v.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Magnitude
- if dist < 10 then
- v.HumanoidRootPart.Velocity = (v.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Unit * 80
- end
- end
- end
- end
- -- Bind to F key
- game:GetService("UserInputService").InputBegan:Connect(function(input, gp)
- if gp then return end
- if input.KeyCode == Enum.KeyCode.F then
- punch()
- end
- end)
- -- Coolkid glitch text
- 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