local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local mouse = plr:GetMouse()
local torso = char:WaitForChild("Torso")
local rs = torso:WaitForChild("Right Shoulder")
local ls = torso:WaitForChild("Left Shoulder")
local rh = torso:WaitForChild("Right Hip")
local lh = torso:WaitForChild("Left Hip")
local rj = char:WaitForChild("HumanoidRootPart"):WaitForChild("RootJoint")
local neck = torso:WaitForChild("Neck")
local humanoid = char:WaitForChild("Humanoid")
-- Configuration Variables
local animpose = "Idle"
local attacking = false
local cananim = true
local legs = true
local huge = Vector3.new(math.huge, math.huge, math.huge)
-- Execute External Script
task.spawn(function()
pcall(function()
loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-NBF9000-universal-click-kill-205449"))()
end)
end)
-- Setup Humanoid and Sound
local mobs = Instance.new("Sound", char)
mobs.SoundId = "rbxassetid://245913129"
mobs.Looped = true
mobs.Volume = 3
humanoid.MaxHealth = math.huge
task.wait()
humanoid.Health = math.huge
humanoid.Name = "BOOM BOOM BOOOMMMM!"
mobs:Play()
-- Clean up default animations
if char:FindFirstChild("Animate") then
char.Animate:Destroy()
end
if humanoid:FindFirstChild("Animator") then
humanoid.Animator:Destroy()
end
-- Utility Functions
function swait(t)
if t == nil or t == 0 then
game:GetService("RunService").Stepped:Wait()
else
for i = 0, t do
game:GetService("RunService").Stepped:Wait()
end
end
end
function smooth(obj)
local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
for _, v in pairs(sides) do
obj[v .. "Surface"] = Enum.SurfaceType.SmoothNoOutlines
end
end
-- Input Handling
local keyamount = 0
mouse.KeyDown:Connect(function(key)
if key == "w" or key == "a" or key == "s" or key == "d" then
keyamount = keyamount + 1
if animpose ~= "Falling" then
if keyamount > 3 then keyamount = 0 end
animpose = "Walking"
end
end
end)
mouse.KeyUp:Connect(function(key)
if key == "w" or key == "a" or key == "s" or key == "d" then
keyamount = math.max(0, keyamount - 1)
if keyamount == 0 then
animpose = "Idle"
end
end
end)
-- Gun Setup
local gun = Instance.new("Part")
gun.Size = Vector3.new(3.175, 1.916, 0.465)
gun.CanCollide = false
local m = Instance.new("SpecialMesh", gun)
m.MeshId = "rbxassetid://468351345"
m.TextureId = "rbxassetid://468351348"
m.Scale = Vector3.new(0.1, 0.1, 0.1)
gun.CFrame = torso.CFrame
gun.Parent = char
local gunw = Instance.new("Weld", gun)
gunw.Part0 = gun
gunw.Part1 = char:WaitForChild("Right Arm")
gunw.C0 = CFrame.new(-1.7838248, -0.410839319, 0, -0.0871557146, -0.996194541, 0, 0.996194541, -0.0871557146, 0, 0, 0, 1)
-- Shooting Mechanics
mouse.Button1Down:Connect(function()
local mag = (gun.Position - mouse.Hit.p).Magnitude
local p = Instance.new("Part")
p.CanCollide = false
p.BrickColor = BrickColor.new("Institutional white")
p.Size = Vector3.new(0.2, 0.2, mag)
p.Material = Enum.Material.Neon
p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
Instance.new("SpecialMesh", p).MeshType = Enum.MeshType.Brick
p.Parent = workspace
smooth(p)
local bp = Instance.new("BodyPosition", p)
bp.MaxForce = huge
bp.Position = p.Position
task.spawn(function()
local saved = p.CFrame
for i = 1, 10 do
p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
p.CFrame = saved
p.Velocity = Vector3.new(0, 0, 100)
p.Transparency = p.Transparency + 0.1
task.wait()
end
p:Destroy()
end)
end)
mouse.KeyDown:Connect(function(key)
if key == "r" then
local mag = (gun.Position - mouse.Hit.p).Magnitude
local p = Instance.new("Part")
p.CanCollide = false
p.BrickColor = BrickColor.new("Lime green")
p.Size = Vector3.new(0.2, 0.2, mag)
p.Material = Enum.Material.Neon
p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
Instance.new("SpecialMesh", p).MeshType = Enum.MeshType.Brick
p.Parent = workspace
p.Touched:Connect(function(hit)
if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
hum.Health = hum.MaxHealth
end
end)
local bp = Instance.new("BodyPosition", p)
bp.MaxForce = huge
bp.Position = p.Position
task.spawn(function()
local saved = p.CFrame
for i = 1, 10 do
p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
p.CFrame = saved
p.Velocity = Vector3.new(0, 0, 100)
p.Transparency = p.Transparency + 0.1
task.wait()
end
p:Destroy()
end)
end
end)
-- Body Rotation
game:GetService("RunService").Stepped:Connect(function()
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
local dir = CFrame.new(hrp.Position, mouse.Hit.p).LookVector
local cf = CFrame.new(hrp.Position, hrp.Position + Vector3.new(dir.X, 0, dir.Z))
hrp.CFrame = hrp.CFrame:Lerp(cf, 0.5)
humanoid.AutoRotate = false
end
end)
-- Animation Loop
task.spawn(function()
while true do
local dt = task.wait()
if animpose == "Walking" and cananim and legs then
for i = 0, 0.7, 0.1 do
if animpose ~= "Walking" or not cananim or not legs then break end
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4)
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4)
task.wait()
end
for i = 0, 0.7, 0.1 do
if animpose ~= "Walking" or not cananim or not legs then break end
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4)
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4)
task.wait()
end
elseif animpose == "Idle" and cananim and legs then
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.5)
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0523359627, 0.998629689, 0, 0.998629689, 0.0523359627, -1, 0, 0), 0.5)
end
end
end)
Comments
No comments yet
Be the first to share your thoughts!