
KeylessUniversal

-- KRNN Script: Three Buttons - Tap!, Respawn and Sword Classic
local function createButtons()
-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "TripleButtonGui"
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- ===== SETTINGS BUTTON =====
local settingsButton = Instance.new("TextButton")
settingsButton.Name = "SettingsButton"
settingsButton.Size = UDim2.new(0, 80, 0, 25)
settingsButton.Position = UDim2.new(0, 10, 0, 10)
settingsButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
settingsButton.BorderSizePixel = 0
settingsButton.Text = "Settings ⚙️"
settingsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
settingsButton.TextSize = 14
settingsButton.Font = Enum.Font.GothamBold
settingsButton.ZIndex = 10
settingsButton.Parent = screenGui
-- ===== SETTINGS PANEL =====
local settingsPanel = Instance.new("Frame")
settingsPanel.Name = "SettingsPanel"
settingsPanel.Size = UDim2.new(0, 300, 0, 200)
settingsPanel.Position = UDim2.new(0.5, -150, 0.5, -100)
settingsPanel.AnchorPoint = Vector2.new(0.5, 0.5)
settingsPanel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
settingsPanel.BorderSizePixel = 2
settingsPanel.BorderColor3 = Color3.fromRGB(100, 100, 100)
settingsPanel.Visible = false
settingsPanel.ZIndex = 10
settingsPanel.Parent = screenGui
local title = Instance.new("TextLabel")
title.Name = "Title"
title.Size = UDim2.new(1, 0, 0, 30)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
title.BorderSizePixel = 0
title.Text = "COLOR SETTINGS"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.TextSize = 16
title.Font = Enum.Font.GothamBold
title.ZIndex = 11
title.Parent = settingsPanel
local closeButton = Instance.new("TextButton")
closeButton.Name = "CloseButton"
closeButton.Size = UDim2.new(0, 25, 0, 25)
closeButton.Position = UDim2.new(1, -30, 0, 2)
closeButton.AnchorPoint = Vector2.new(1, 0)
closeButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
closeButton.BorderSizePixel = 0
closeButton.Text = "X"
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.TextSize = 14
closeButton.Font = Enum.Font.GothamBold
closeButton.ZIndex = 12
closeButton.Parent = settingsPanel
-- Red color button
local redButton = Instance.new("TextButton")
redButton.Name = "RedButton"
redButton.Size = UDim2.new(0, 120, 0, 40)
redButton.Position = UDim2.new(0.5, -130, 0, 50)
redButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
redButton.BorderSizePixel = 2
redButton.BorderColor3 = Color3.fromRGB(100, 0, 0)
redButton.Text = "Red"
redButton.TextColor3 = Color3.fromRGB(255, 255, 255)
redButton.TextSize = 14
redButton.Font = Enum.Font.GothamBold
redButton.ZIndex = 11
redButton.Parent = settingsPanel
-- Yellow color button
local yellowButton = Instance.new("TextButton")
yellowButton.Name = "YellowButton"
yellowButton.Size = UDim2.new(0, 120, 0, 40)
yellowButton.Position = UDim2.new(0.5, 10, 0, 50)
yellowButton.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
yellowButton.BorderSizePixel = 2
yellowButton.BorderColor3 = Color3.fromRGB(100, 100, 0)
yellowButton.Text = "Yellow"
yellowButton.TextColor3 = Color3.fromRGB(0, 0, 0)
yellowButton.TextSize = 14
yellowButton.Font = Enum.Font.GothamBold
yellowButton.ZIndex = 11
yellowButton.Parent = settingsPanel
-- Reset to default color button
local defaultButton = Instance.new("TextButton")
defaultButton.Name = "DefaultButton"
defaultButton.Size = UDim2.new(0, 120, 0, 40)
defaultButton.Position = UDim2.new(0.5, -60, 0, 110)
defaultButton.BackgroundColor3 = Color3.fromRGB(160, 160, 160)
defaultButton.BorderSizePixel = 2
defaultButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
defaultButton.Text = "Default"
defaultButton.TextColor3 = Color3.fromRGB(255, 255, 255)
defaultButton.TextSize = 14
defaultButton.Font = Enum.Font.GothamBold
defaultButton.ZIndex = 11
defaultButton.Parent = settingsPanel
-- Current button color
local currentColor = Color3.fromRGB(160, 160, 160)
-- Function to change all button colors
local function changeButtonColor(color)
currentColor = color
if respawnButton then
respawnButton.BackgroundColor3 = color
if not respawnCooldown then
respawnButton.BorderColor3 = Color3.fromRGB(
math.clamp(color.R * 255 - 60, 0, 255),
math.clamp(color.G * 255 - 60, 0, 255),
math.clamp(color.B * 255 - 60, 0, 255)
)
end
end
if tapButton then
tapButton.BackgroundColor3 = color
tapButton.BorderColor3 = Color3.fromRGB(
math.clamp(color.R * 255 - 60, 0, 255),
math.clamp(color.G * 255 - 60, 0, 255),
math.clamp(color.B * 255 - 60, 0, 255)
)
end
if swordButton then
swordButton.BackgroundColor3 = color
if not swordActive then
swordButton.BorderColor3 = Color3.fromRGB(
math.clamp(color.R * 255 - 60, 0, 255),
math.clamp(color.G * 255 - 60, 0, 255),
math.clamp(color.B * 255 - 60, 0, 255)
)
end
end
end
-- Settings button handlers
settingsButton.MouseButton1Click:Connect(function()
settingsPanel.Visible = not settingsPanel.Visible
end)
closeButton.MouseButton1Click:Connect(function()
settingsPanel.Visible = false
end)
redButton.MouseButton1Click:Connect(function()
changeButtonColor(Color3.fromRGB(255, 0, 0))
settingsPanel.Visible = false
end)
yellowButton.MouseButton1Click:Connect(function()
changeButtonColor(Color3.fromRGB(255, 255, 0))
settingsPanel.Visible = false
end)
defaultButton.MouseButton1Click:Connect(function()
changeButtonColor(Color3.fromRGB(160, 160, 160))
settingsPanel.Visible = false
end)
-- Create container for all buttons
local mainContainer = Instance.new("Frame")
mainContainer.Name = "MainContainer"
mainContainer.Size = UDim2.new(0, 80, 0, 165)
mainContainer.Position = UDim2.new(0.5, -40, 0.5, -82.5)
mainContainer.AnchorPoint = Vector2.new(0.5, 0.5)
mainContainer.BackgroundTransparency = 1
mainContainer.BorderSizePixel = 0
mainContainer.Parent = screenGui
-- ===== TOP RESPAWN BUTTON =====
local respawnButton = Instance.new("TextButton")
respawnButton.Name = "Respawn_Button"
respawnButton.Size = UDim2.new(0, 64, 0, 48)
respawnButton.Position = UDim2.new(0, 8, 0, 0)
respawnButton.BackgroundColor3 = currentColor
respawnButton.BorderSizePixel = 2
respawnButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
respawnButton.Text = "Respawn"
respawnButton.TextColor3 = Color3.fromRGB(255, 255, 255)
respawnButton.TextSize = 14
respawnButton.Font = Enum.Font.SourceSansBold
respawnButton.TextWrapped = true
respawnButton.Parent = mainContainer
-- Variable to prevent multiple clicks
local respawnCooldown = false
-- Respawn button effects
respawnButton.MouseEnter:Connect(function()
if not respawnCooldown then
respawnButton.BackgroundColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 + 20, 0, 255),
math.clamp(currentColor.G * 255 + 20, 0, 255),
math.clamp(currentColor.B * 255 + 20, 0, 255)
)
respawnButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 + 40, 0, 255),
math.clamp(currentColor.G * 255 + 40, 0, 255),
math.clamp(currentColor.B * 255 + 40, 0, 255)
)
end
end)
respawnButton.MouseLeave:Connect(function()
if not respawnCooldown then
respawnButton.BackgroundColor3 = currentColor
respawnButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
end
end)
-- Respawn click handler with sound
respawnButton.MouseButton1Click:Connect(function()
-- Prevent multiple clicks
if respawnCooldown then return end
respawnCooldown = true
respawnButton.Text = "Resetting..."
respawnButton.BackgroundColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 40, 0, 255),
math.clamp(currentColor.G * 255 - 40, 0, 255),
math.clamp(currentColor.B * 255 - 40, 0, 255)
)
respawnButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 80, 0, 255),
math.clamp(currentColor.G * 255 - 80, 0, 255),
math.clamp(currentColor.B * 255 - 80, 0, 255)
)
print("Starting respawn with sound...")
-- Play respawn sound
local respawnSound = Instance.new("Sound")
respawnSound.SoundId = "rbxassetid://79348298352567"
respawnSound.Volume = 1.0
respawnSound.Parent = game.Workspace
respawnSound:Play()
-- Wait a bit for effect
wait(0.8)
-- Kill character
local character = game.Players.LocalPlayer.Character
if character then
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Health = 0
print("Character killed!")
end
end
-- Remove sound after 3 seconds
delay(3, function()
if respawnSound and respawnSound.Parent then
respawnSound:Destroy()
end
end)
-- Unlock button after 5 seconds
delay(5, function()
if respawnButton and respawnButton.Parent then
respawnCooldown = false
respawnButton.BackgroundColor3 = currentColor
respawnButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
respawnButton.Text = "Respawn"
end
end)
end)
-- ===== MIDDLE TAP! BUTTON =====
local tapButton = Instance.new("TextButton")
tapButton.Name = "Tap_Button"
tapButton.Size = UDim2.new(0, 64, 0, 48)
tapButton.Position = UDim2.new(0, 8, 0, 55)
tapButton.BackgroundColor3 = currentColor
tapButton.BorderSizePixel = 2
tapButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
tapButton.Text = "Tap!"
tapButton.TextColor3 = Color3.fromRGB(255, 255, 255)
tapButton.TextSize = 14
tapButton.Font = Enum.Font.SourceSansBold
tapButton.TextWrapped = true
tapButton.Parent = mainContainer
-- Table to track active sounds
local activeSounds = {}
-- Tap! button effects
tapButton.MouseEnter:Connect(function()
tapButton.BackgroundColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 + 20, 0, 255),
math.clamp(currentColor.G * 255 + 20, 0, 255),
math.clamp(currentColor.B * 255 + 20, 0, 255)
)
tapButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 + 40, 0, 255),
math.clamp(currentColor.G * 255 + 40, 0, 255),
math.clamp(currentColor.B * 255 + 40, 0, 255)
)
end)
tapButton.MouseLeave:Connect(function()
tapButton.BackgroundColor3 = currentColor
tapButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
end)
-- Tap! click handler
tapButton.MouseButton1Click:Connect(function()
tapButton.Text = "FART!!!"
tapButton.BackgroundColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 40, 0, 255),
math.clamp(currentColor.G * 255 - 40, 0, 255),
math.clamp(currentColor.B * 255 - 40, 0, 255)
)
tapButton.TextSize = 12
print("Adding new sound to mix!")
-- Create new sound
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://4809574295"
sound.Volume = 1.0
sound.Parent = game.Workspace
-- Add sound to active table
local soundId = #activeSounds + 1
activeSounds[soundId] = sound
-- Play sound
sound:Play()
-- Sound end handler
sound.Ended:Connect(function()
activeSounds[soundId] = nil
if sound and sound.Parent then
sound:Destroy()
end
end)
-- Auto-reset button after 0.3 seconds
delay(0.3, function()
if tapButton and tapButton.Parent then
tapButton.BackgroundColor3 = currentColor
tapButton.Text = "Tap!"
tapButton.TextSize = 14
end
end)
end)
-- ===== BOTTOM SWORD CLASSIC BUTTON =====
local swordButton = Instance.new("TextButton")
swordButton.Name = "Sword_Button"
swordButton.Size = UDim2.new(0, 64, 0, 48)
swordButton.Position = UDim2.new(0, 8, 0, 110)
swordButton.BackgroundColor3 = currentColor
swordButton.BorderSizePixel = 2
swordButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
swordButton.Text = "Sword Classic"
swordButton.TextColor3 = Color3.fromRGB(255, 255, 255)
swordButton.TextSize = 12
swordButton.Font = Enum.Font.SourceSansBold
swordButton.TextWrapped = true
swordButton.Parent = mainContainer
-- Watermark for Sword Classic button
local watermark = Instance.new("TextLabel")
watermark.Name = "Watermark"
watermark.Size = UDim2.new(1, 0, 0, 12)
watermark.Position = UDim2.new(0, 0, 1, 2)
watermark.BackgroundTransparency = 1
watermark.Text = "тгк KAPTOXA8727"
watermark.TextColor3 = Color3.fromRGB(255, 255, 255)
watermark.TextTransparency = 0.5
watermark.TextSize = 10
watermark.Font = Enum.Font.SourceSans
watermark.TextXAlignment = Enum.TextXAlignment.Center
watermark.Parent = swordButton
-- Variable to track sword activation
local swordActive = false
-- Sword Classic button effects
swordButton.MouseEnter:Connect(function()
if not swordActive then
swordButton.BackgroundColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 + 20, 0, 255),
math.clamp(currentColor.G * 255 + 20, 0, 255),
math.clamp(currentColor.B * 255 + 20, 0, 255)
)
swordButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 + 40, 0, 255),
math.clamp(currentColor.G * 255 + 40, 0, 255),
math.clamp(currentColor.B * 255 + 40, 0, 255)
)
end
end)
swordButton.MouseLeave:Connect(function()
if not swordActive then
swordButton.BackgroundColor3 = currentColor
swordButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
end
end)
-- Sword Classic click handler
swordButton.MouseButton1Click:Connect(function()
if swordActive then
-- Deactivate sword
swordActive = false
swordButton.Text = "Sword Classic"
swordButton.BackgroundColor3 = currentColor
swordButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 60, 0, 255),
math.clamp(currentColor.G * 255 - 60, 0, 255),
math.clamp(currentColor.B * 255 - 60, 0, 255)
)
-- Remove sword from inventory
local backpack = game.Players.LocalPlayer:FindFirstChild("Backpack")
if backpack then
local sword = backpack:FindFirstChild("ClassicSword")
if sword then
sword:Destroy()
end
end
-- Stop animations
local character = game.Players.LocalPlayer.Character
if character then
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
for _, animTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
if animTrack.Animation and animTrack.Animation.AnimationId:find("94161088") then
animTrack:Stop()
end
end
end
end
print("Sword deactivated")
else
-- Activate sword
swordActive = true
swordButton.Text = "Sword Active ✓"
swordButton.BackgroundColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 40, 0, 255),
math.clamp(currentColor.G * 255 - 40, 0, 255),
math.clamp(currentColor.B * 255 - 40, 0, 255)
)
swordButton.BorderColor3 = Color3.fromRGB(
math.clamp(currentColor.R * 255 - 80, 0, 255),
math.clamp(currentColor.G * 255 - 80, 0, 255),
math.clamp(currentColor.B * 255 - 80, 0, 255)
)
-- Start sword script
local plr = game.Players.LocalPlayer
local tool = Instance.new("Tool", plr.Backpack)
tool.GripPos = Vector3.new(0, 0, -1.5)
tool.GripForward = Vector3.new(0, -1, 0)
tool.GripRight = Vector3.new(1, 0, 0)
tool.GripUp = Vector3.new(0, 0, 1)
tool.Name = "ClassicSword"
tool.TextureId = "rbxasset://Textures/Sword128.png"
tool.RequiresHandle = true
tool.CanBeDropped = true
local k = Instance.new("Part", tool)
k.Name = "Handle"
k.Size = Vector3.new(1, 0.8, 4)
k.Anchored = false
k.CanCollide = false
local mesh = Instance.new("SpecialMesh", k)
mesh.MeshId = "rbxasset://fonts/sword.mesh"
mesh.TextureId = "rbxasset://textures/SwordTexture.png"
mesh.Scale = Vector3.new(1, 1, 1)
mesh.Offset = Vector3.new(0, 0, 0)
mesh.VertexColor = Vector3.new(1, 1, 1)
local Unsheath = Instance.new("Sound", k)
Unsheath.SoundId = "http://www.roblox.com/asset/?id=12222225"
Unsheath.Volume = 1
Unsheath.TimePosition = 0
local SwordSlash = Instance.new("Sound", k)
SwordSlash.SoundId = "http://www.roblox.com/asset/?id=12222216"
SwordSlash.Volume = 1



Russian skidding
@zxcv AHHAHAAHHAHAHA I'm just Russian
Not work