So.., I did this after 3 hours failing to do Mouse.Button1Down and Button1Up. I thought it would solve my problem ...
UserInputService = game:GetService("UserInputService")
ChargeTime = script.Parent.Configurations.ArrowCharge.Value
FireEvent = game:GetService("ReplicatedStorage").BowEvents.FireEvent
local ReloadTime = script.Parent.Configurations.ArrowReload.Value
local mouse = game.Players:GetPlayerFromCharacter(script.Parent.Parent):GetMouse()
local charge = 0
reloading = false
holdDown = script.Parent.holdDown.Value
local function Press()
while UserInputService:IsMouseButtonPressed() == true do
print("hold")
wait(0.1)
end
if UserInputService:IsMouseButtonPressed() == false then
print("FIRED")
end
end
if UserInputService.InputBegan == Enum.KeyCode.ButtonL1 then
print("click")
Press()
end
It's a charging script for a bow. (It's a local script) What's the problem or is there any workaround?

1 comment
Oh.. XD Thanks!