Anyone got any idea on how to run a local script that is parented to a module

  1. What do I want to achieve?
    I want to make a require troll module that allows you to punch and kick people

  2. What is the issue?
    I can’t seem to find a way to detect inputs so the attacks can activate.

  3. What solutions have I tried so far?
    I tried putting a disabled local script under the module but it doesn’t run after I enable it.

Heres how the module is set up currently
screenshot

BTW its being required as a model.

If anyone has an idea on how i can make the troll module detect inputs then ill appreciate it.

You can put a LocalScript in StarterPlayerScripts, or directly connect the input events inside the module.

1 Like

im trying to make this to be used in any game(that has the ability to run scripts)

Have you tried to change script’s RunContext to Client?

part of it is supposed to be server side and the inputs and stuff is supposed to be on client
also you cant change a module’s runcontext.

the module makes a remote event that the local script sends data to the module with

I was referring to the localscript’s RunContext. Because if it’s Legacy, it will not run unless you meet some specific criterias.

I swapped the regular local script with a script set to client run context and it works now

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