local lplr = game:GetService("Players").LocalPlayer
local char = lplr.Character or lplr.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local hum = char:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
lplr.CharacterAdded:Connect(function(c) char = c;hrp = c:WaitForChild("HumanoidRootPart");hum = c:WaitForChild("Humanoid");animator = hum:WaitForChild("Animator") end)
local playergui_path = lplr:WaitForChild("PlayerGui")
local abilities_path = playergui_path:WaitForChild("InGameUI") and playergui_path:WaitForChild("InGameUI"):WaitForChild("Bottom") and playergui_path:WaitForChild("InGameUI"):WaitForChild("Bottom"):WaitForChild("Abilities")
local rep = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local ability = function(text,keybind,callback)
local btn = abilities_path["1"]:Clone()
btn.Name = "4"
btn.Parent = abilities_path
btn.AbilityLabel.Text = text
btn.Keybind.Text = keybind
btn.Activated:Connect(function() local ok,res = pcall(callback) if not ok then warn(res) end end)
uis.InputBegan:Connect(function(i,p)
if p then return end
if i.KeyCode == Enum.KeyCode[keybind] then
local ok,res = pcall(callback) if not ok then warn(res) end
end
end)
end
local assets = rep:WaitForChild("Assets")
local anim = assets:WaitForChild("ReplicatedAnims") and assets.ReplicatedAnims:WaitForChild("Abilities") and assets.ReplicatedAnims.Abilities:WaitForChild("KaiserVolley")
local sound = assets:WaitForChild("Sfx") and assets.Sfx:WaitForChild("KaiserImpact2")
ability("Straight Blast","H",function()
animator:LoadAnimation(anim):Play()
rep.Packages.Knit.Services.BallService.RE.Shoot:FireServer(175)
sound:Play()
end)
local tgl = false
local bv = nil
local connection = nil
ability("Ball Orbit","K",function()
tgl = not tgl
local ball = workspace.Football
if not (ball and hrp) then tgl = false return end
if bv then bv:Destroy() bv = nil end
if connection then connection:Disconnect() connection = nil end
if tgl then
bv = ball:FindFirstChild("BodyVelocity") or Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Parent = ball
connection = game:GetService("RunService").Heartbeat:Connect(function()
if not tgl or not ball or not hrp then
tgl = false
if bv then bv:Destroy() bv = nil end
if connection then connection:Disconnect() connection = nil end
return
end
local spot = hrp.Position+Vector3.new(math.cos(tick()*10)*28,30,math.sin(tick()*10)*26)
local direction = (spot-ball.Position).Unit
bv.Velocity = direction*100
end)
end
end)
ability("Bring The Ball","P",function()
local ball = workspace.Football
if not ball then return end
ball.CFrame = CFrame.new(0,-1e4,0)
ball.AssemblyLinearVelocity = Vector3.zero
end)
local last = 0
Dash_Boost = function()
now = tick()
if now-last < .5 then
return
end
last = now
hrp.AssemblyLinearVelocity = (hrp.CFrame.LookVector*190)
end
ability("Dash","R",function()
Dash_Boost()
end)Why are people gatekeeping everything nowadays...
No comments yet. Be the first to comment!
1local lplr = game:GetService("Players").LocalPlayer
2local char = lplr.Character or lplr.CharacterAdded:Wait()
3local hrp = char:WaitForChild("HumanoidRootPart")
4local hum = char:WaitForChild("Humanoid")
5local animator = hum:WaitForChild("Animator")
6lplr.CharacterAdded:Connect(function(c) char = c;hrp = c:WaitForChild("HumanoidRootPart");hum = c:WaitForChild("Humanoid");animator = hum:WaitForChild("Animator") end)
7local playergui_path = lplr:WaitForChild("PlayerGui")
8local abilities_path = playergui_path:WaitForChild("InGameUI") and playergui_path:WaitForChild("InGameUI"):WaitForChild("Bottom") and playergui_path:WaitForChild("InGameUI"):WaitForChild("Bottom"):WaitForChild("Abilities")
9local rep = game:GetService("ReplicatedStorage")
10local uis = game:GetService("UserInputService")
11local ability = function(text,keybind,callback)
12 local btn = abilities_path["1"]:Clone()
13 btn.Name = "4"
14 btn.Parent = abilities_path
15 btn.AbilityLabel.Text = text
16 btn.Keybind.Text = keybind
17 btn.Activated:Connect(function() local ok,res = pcall(callback) if not ok then warn(res) end end)
18 uis.InputBegan:Connect(function(i,p)
19 if p then return end
20 if i.KeyCode == Enum.KeyCode[keybind] then
21 local ok,res = pcall(callback) if not ok then warn(res) end
22 end
23 end)
24end
25local assets = rep:WaitForChild("Assets")
26local anim = assets:WaitForChild("ReplicatedAnims") and assets.ReplicatedAnims:WaitForChild("Abilities") and assets.ReplicatedAnims.Abilities:WaitForChild("KaiserVolley")
27local sound = assets:WaitForChild("Sfx") and assets.Sfx:WaitForChild("KaiserImpact2")
28ability("Straight Blast","H",function()
29 animator:LoadAnimation(anim):Play()
30 rep.Packages.Knit.Services.BallService.RE.Shoot:FireServer(175)
31 sound:Play()
32end)
33local tgl = false
34local bv = nil
35local connection = nil
36ability("Ball Orbit","K",function()
37 tgl = not tgl
38 local ball = workspace.Football
39 if not (ball and hrp) then tgl = false return end
40 if bv then bv:Destroy() bv = nil end
41 if connection then connection:Disconnect() connection = nil end
42 if tgl then
43 bv = ball:FindFirstChild("BodyVelocity") or Instance.new("BodyVelocity")
44 bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
45 bv.Parent = ball
46 connection = game:GetService("RunService").Heartbeat:Connect(function()
47 if not tgl or not ball or not hrp then
48 tgl = false
49 if bv then bv:Destroy() bv = nil end
50 if connection then connection:Disconnect() connection = nil end
51 return
52 end
53 local spot = hrp.Position+Vector3.new(math.cos(tick()*10)*28,30,math.sin(tick()*10)*26)
54 local direction = (spot-ball.Position).Unit
55 bv.Velocity = direction*100
56 end)
57 end
58end)
59ability("Bring The Ball","P",function()
60 local ball = workspace.Football
61 if not ball then return end
62 ball.CFrame = CFrame.new(0,-1e4,0)
63 ball.AssemblyLinearVelocity = Vector3.zero
64end)
65local last = 0
66Dash_Boost = function()
67 now = tick()
68 if now-last < .5 then
69 return
70 end
71 last = now
72 hrp.AssemblyLinearVelocity = (hrp.CFrame.LookVector*190)
73end
74ability("Dash","R",function()
75 Dash_Boost()
76end)