Token to Token Error

  1. What do you want to achieve?
    Detect when the player is holding down the left mouse button from a tool.
    I fired a first event so the animation can be played for everyone in the server. Then I wanted to fire a second event when the player take his finger of the button so I can detect for how long he held the button.(is there a better way to do this?).
    I created a modifier that increases as long as the key is down. This way I can change damage and other things

  2. What is the issue?
    It says:" Unable to cast token to Token"

  3. What solutions have you tried so far?
    Tried using a keycode button but still doesn’t work

THIS IS THE CODE AND THE PROBLEM
It’s the script in the tool

The method for detecting mouse input is UserInputService:IsMouseButtonPressed

Ye it fixed the problem thanks​:muscle::muscle::muscle::muscle::fire::fire::muscle::muscle::fire:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.