Help wtih ContextActionService

Hello everyone,

I am trying to use ContextActionService to detect input. However, it doesn’t seem to be working and I’m not sure why. Here’s the code:

local CAS = game:GetService("ContextActionService")

local function Thing(a, is, io)
    -- at this point i gave up and just tried printing 
    -- something but it didn't print

CAS:BindAction("lhajhfl", Thing, false, Enum.UserInputType.MouseButton1)

Here’s the hierarchy:

Thanks for your help.

Of course it doesn’t work because local scripts will only work if it’s parented inside a player’s character model or in StarerScripts.

oh i didn’t know that; i’ll put it in characterscripts.

You could put it under StarterScripts, which works as well.

ok it works thanks for the help