Skip to content

Instantly share code, notes, and snippets.

@DinosaurXxX
Created February 11, 2020 20:01
Show Gist options
  • Save DinosaurXxX/98ea07fee37f89d359ee0ecdf2bf0d66 to your computer and use it in GitHub Desktop.
Save DinosaurXxX/98ea07fee37f89d359ee0ecdf2bf0d66 to your computer and use it in GitHub Desktop.
local library = loadstring(game:HttpGet("https://pastebin.com/raw/7Z6TzFnv", true))()
local UI = library:CreateWindow({
text = "Bow Mods"
})
local Mouse = game.Players.LocalPlayer:GetMouse()
local RapidFire = false
local RapidArrow = "skill0"
UI:AddToggle("Rapid Fire", function(Enabled)
RapidFire = Enabled
end)
game:GetService("UserInputService").InputBegan:Connect(function(Input)
if game.Players.LocalPlayer.Character:FindFirstChild("Bow") and RapidFire and Input.UserInputType == Enum.UserInputType.MouseButton1 then
game.Players.LocalPlayer.Character.Bow.Shoot.RemoteEvent:FireServer(Mouse.Hit.p, RapidArrow);
end
end)
local Dropdown;
Dropdown = UI:AddDropdown({"Normal", "Fire", "Explosive", "Lightning", "Ice", "Meteor", "Black Hole", "Plague", "Nuclear"}, function(Selected)
if Selected == "Normal" then
RapidArrow = "skill0"
elseif Selected == "Fire" then
RapidArrow = "skill1"
elseif Selected == "Explosive" then
RapidArrow = "skill2"
elseif Selected == "Lightning" then
RapidArrow = "skill3"
elseif Selected == "Ice" then
RapidArrow = "skill4"
elseif Selected == "Meteor" then
RapidArrow = "skill5"
elseif Selected == "Black Hole" then
RapidArrow = "skill6"
elseif Selected == "Plague" then
RapidArrow = "skill7"
elseif Selected == "Nuclear" then
RapidArrow = "skill8"
end
end)
UI:AddButton("Shoot All Slimes", function()
if game.Workspace:FindFirstChild("Slimes") and game.Players.LocalPlayer.Character:FindFirstChild("Bow") then
for i,v in pairs(game.Workspace.Slimes:GetChildren()) do
if v:FindFirstChild("Inner") then
game.Players.LocalPlayer.Character.Bow.Shoot.RemoteEvent:FireServer(v.Inner.Position, Arrow);
else
game.Players.LocalPlayer.Character.Bow.Shoot.RemoteEvent:FireServer(v:FindFirstChildOfClass("Part"), Arrow);
end
end
end
end)
local Dropdown2;
Dropdown2 = UI:AddDropdown({"Normal", "Fire", "Explosive", "Lightning", "Ice", "Meteor", "Black Hole", "Plague", "Nuclear"}, function(Selected)
if Selected == "Normal" then
Arrow = "skill0"
elseif Selected == "Fire" then
Arrow = "skill1"
elseif Selected == "Explosive" then
Arrow = "skill2"
elseif Selected == "Lightning" then
Arrow = "skill3"
elseif Selected == "Ice" then
Arrow = "skill4"
elseif Selected == "Meteor" then
Arrow = "skill5"
elseif Selected == "Black Hole" then
Arrow = "skill6"
elseif Selected == "Plague" then
Arrow = "skill7"
elseif Selected == "Nuclear" then
Arrow = "skill8"
end
end)
UI:AddToggle("Can Always Shoot", function(Enabled)
CanAlwaysShoot = Enabled
end)
game:GetService("RunService").Stepped:Connect(function()
if game.Players.LocalPlayer.Character:FindFirstChild("Bow") and CanAlwaysShoot then
game.Players.LocalPlayer.Character.Bow.CanShoot.Value = true
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment