Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService")
- local renderstepped = game:GetService("RunService").RenderStepped
- local mouse = game.Players.LocalPlayer:GetMouse()
- -- function Mod()
- -- local oldw; oldw = hookfunction(getrenv().wait, function(...)
- -- if getfenv(2).script.Parent.Parent:IsA("Tool") then
- -- return
- -- end
- -- return oldw(...)
- -- end)
- -- end
- uis.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- Hold = true
- end
- end)
- uis.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- Hold = false
- end
- end)
- renderstepped:Connect(function()
- local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
- if Hold and tool and tool.Name:find("Crossbow") then
- tool.Remotes.Shoot:FireServer(tool.Handle.Position, mouse.Hit.p)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement