Problem:
I used “IsTyping” and typed a condition (if IsTyping then return end) when activating this local script BUT player still able to activate it when typing in chat,the condition did not stop the script from working.
What I want it to do:
I want this local script to not activate when player is typing.
I don’t know why you need p5 and p6 but your last two parameters will always be nil
Edit: Also I know you didn’t ask but for the code above you could just make it a lot simplier by using RemoteFunctions instead of sending and returning with a remote event
RemoteFunction.OnClientInvoke = function()
return LocalPlayer:GetMouse().Target
end