this code.
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players:FindFirstChild("AlphonsoGames")
if not player then return end
local cooldown = false
local holdCooldown = false
local holding = false
local safetyEnabled = true
local screenGui = Instance.new("ScreenGui")
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")
local symbol = Instance.new("ImageLabel")
symbol.Size = UDim2.new(0, 100, 0, 100)
symbol.Position = UDim2.new(1, -120, 1, -120)
symbol.AnchorPoint = Vector2.new(0, 0)
symbol.Image = "rbxassetid://116957729492323"
symbol.BackgroundTransparency = 1
symbol.Parent = screenGui
local safetyBtn = Instance.new("TextButton")
safetyBtn.Size = UDim2.new(0, 100, 0, 50)
safetyBtn.Position = UDim2.new(1, -120, 1, -60)
safetyBtn.AnchorPoint = Vector2.new(0, 0)
safetyBtn.Text = "Safety: ON"
safetyBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
safetyBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
safetyBtn.Parent = screenGui
spawn(function()
while true do
if not safetyEnabled then
for _, color in ipairs({Color3.fromRGB(255,0,0), Color3.fromRGB(255,255,0)}) do
symbol.ImageColor3 = color
task.wait(0.5)
end
else
symbol.ImageColor3 = Color3.fromRGB(150,150,150)
task.wait(0.5)
end
end
end)
safetyBtn.MouseButton1Click:Connect(function()
safetyEnabled = not safetyEnabled
if safetyEnabled then
safetyBtn.Text = "Safety: ON"
safetyBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
else
safetyBtn.Text = "Safety: OFF"
safetyBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
end
end)
local function clearMark(char)
for _, d in ipairs(char:GetChildren()) do
if d.Name == "MarkBill" or d:IsA("Highlight") or d.Name == "Marked" then
d:Destroy()
end
end
end
local function markTarget(hum)
local char = hum.Parent
if not char then return end
clearMark(char)
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
local tag = Instance.new("BoolValue")
tag.Name = "Marked"
tag.Parent = char
local hl = Instance.new("Highlight")
hl.FillColor = Color3.fromRGB(255,255,0)
hl.FillTransparency = 0.7
hl.OutlineTransparency = 1
hl.Parent = char
local bg = Instance.new("BillboardGui")
bg.Name = "MarkBill"
bg.Adornee = hrp
bg.AlwaysOnTop = true
bg.Size = UDim2.new(0, 120, 0, 120)
bg.StudsOffset = Vector3.new(0, 3, 0)
bg.Parent = char
local img = Instance.new("ImageLabel")
img.BackgroundTransparency = 1
img.Image = "rbxassetid://103378350796777"
img.Size = UDim2.new(1,0,1,0)
img.AnchorPoint = Vector2.new(0.5, 0.5)
img.Position = UDim2.new(0.5, 0.5, 0.5, 0.5)
img.Parent = bg
task.spawn(function()
while hum.Parent and tag.Parent do
img.ImageColor3 = Color3.fromRGB(255,255,0)
task.wait(0.5)
if not (hum.Parent and tag.Parent) then break end
img.ImageColor3 = Color3.fromRGB(255,255,255)
task.wait(0.5)
end
end)
return bg, tag, hrp
end
local function ragdollAndFling(char, humanoid)
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
for _, m in ipairs(char:GetDescendants()) do
if m:IsA("Motor6D") then
local a0 = Instance.new("Attachment", m.Part0)
a0.CFrame = m.C0
local a1 = Instance.new("Attachment", m.Part1)
a1.CFrame = m.C1
local bs = Instance.new("BallSocketConstraint")
bs.Attachment0 = a0
bs.Attachment1 = a1
bs.Parent = m.Part0
m.Enabled = false
end
end
humanoid.PlatformStand = true
hrp:ApplyImpulse(Vector3.new(0,1250,0))
end
local function unmarkAndKill(hum)
local char = hum.Parent
if not char then return end
clearMark(char)
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
local s1 = Instance.new("Sound")
s1.SoundId = "rbxassetid://801142469"
s1.Volume = 1
s1.PlaybackSpeed = 1
s1.MinDistance = 25
s1.MaxDistance = 500
s1.Parent = hrp
local s2 = Instance.new("Sound")
s2.SoundId = "rbxassetid://89930963890779"
s2.Volume = 2.25
s2.PlaybackSpeed = 0.75
s2.MinDistance = 50
s2.MaxDistance = 500
s2.Parent = hrp
s1:Play()
s2:Play()
end
hum:TakeDamage(9999)
hum.Health = 0
hum.MaxHealth = 0
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp and hum.Parent and hum.Parent:FindFirstChild("HumanoidRootPart") then
local playerHRP = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
if playerHRP then
local direction = (hrp.Position - playerHRP.Position).Unit
hrp:ApplyImpulse(direction * 999 + Vector3.new(0, 250, 0))
end
end
ragdollAndFling(char, hum)
end
local function createTool(c)
local t = Instance.new("Tool")
t.ToolTip = "Saint will Ascend."
t.Name = "Ascend."
t.RequiresHandle = false
t.Parent = player:FindFirstChild("Backpack") or player.Backpack
t.Activated:Connect(function()
if cooldown or holdCooldown or not safetyEnabled then return end
holding = true
holdCooldown = true
task.delay(1, function() holdCooldown = false end)
safetyEnabled = false
safetyBtn.Text = "Safety: OFF"
safetyBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
local hum = c:FindFirstChild("Humanoid")
if not hum then return end
local bg, tag, hrp = markTarget(hum)
if not bg or not hrp then return end
local loop = Instance.new("Sound")
loop.SoundId = "rbxassetid://9118809363"
loop.Looped = true
loop.PlaybackSpeed = 0.725
loop.Volume = 0.05
loop.Parent = hrp
loop:Play()
local volTweenInfo = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local volTween = TweenService:Create(loop, volTweenInfo, {Volume = 2})
volTween:Play()
local startTime = tick()
local duration = 5
local baseOffset = bg.StudsOffset
local shakeCo
shakeCo = task.spawn(function()
while tick() - startTime <= duration and bg.Parent do
local t = (tick() - startTime) / duration
if t > 1 then t = 1 end
local amp = 0.1 + (0.5 * t)
local nx = (math.random() - 0.5) * 2 * amp
local ny = (math.random() - 0.5) * 2 * amp
local targetOffset = Vector3.new(baseOffset.X + nx, baseOffset.Y + ny, baseOffset.Z)
local ti = TweenInfo.new(0.06, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local tw = TweenService:Create(bg, ti, {StudsOffset = targetOffset})
tw:Play()
task.wait(0.06)
end
end)
task.delay(duration, function()
if loop then loop:Stop() end
if bg and bg.Parent then
bg.StudsOffset = baseOffset
end
if tag and tag.Parent then
local flash = Instance.new("ImageLabel")
flash.Size = UDim2.new(1,0,1,0)
flash.Position = UDim2.new(0,0,0,0)
flash.BackgroundTransparency = 1
flash.Image = "rbxassetid://18689729732"
flash.ImageTransparency = 1
flash.Parent = screenGui
local boom = Instance.new("Sound")
boom.SoundId = "rbxassetid://112583388649186"
boom.Volume = 10
boom.Parent = screenGui
local toVisible = TweenInfo.new(0.08, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local toFade = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
TweenService:Create(flash, toVisible, {ImageTransparency = 0}):Play()
task.wait(0.08)
boom:Play()
unmarkAndKill(hum)
TweenService:Create(flash, toFade, {ImageTransparency = 1}):Play()
task.delay(2.1, function()
if flash and flash.Parent then flash:Destroy() end
end)
end
if bg and bg.Parent then bg:Destroy() end
cooldown = true
task.delay(1.25, function() cooldown = false end)
end)
end)
t.Deactivated:Connect(function()
holding = false
end)
end
local respawnBtn = Instance.new("TextButton")
respawnBtn.Size = UDim2.new(0, 65, 0, 15)
respawnBtn.Position = UDim2.new(1, -75, 1, -160)
respawnBtn.AnchorPoint = Vector2.new(0, 0)
respawnBtn.Text = "Re-add Tool"
respawnBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
respawnBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
respawnBtn.Parent = screenGui
respawnBtn.MouseButton1Click:Connect(function()
if player.Character then createTool(player.Character) end
end)
if player.Character then createTool(player.Character) end
player.CharacterAdded:Connect(function(c) createTool(c) end)
make it that it only effects the player itself and not anyone else. and holding is removed as it only doesi t on click. and