How can I tell the script that when the player presses the button, it is to shoot?
> local cas = game:GetService("ContextActionService")
> local plr = game.Players.LocalPlayer
> local UserInputService = game:GetService("UserInputService")
>
> local function buttonPressFunction()
> UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1)
> end
>
> local button = cas:BindAction("ExtraFireButton", buttonPressFunction, true,Enum.UserInputType.MouseButton1)

3 comments
U should use plr:GetMouse() and mouse.Button1Click, its much simpler then using UIS
Thank you for the tips
You can just mark it as the answer.