Ok, so here's my problem. Today, I found out just where I should put my UserInputServiceScript using a module script. Although, when I try to clone the UserInputService script and put it into PlayerScripts, it doesn't work!
Code:
local CombatScript = {}
function CombatScript.Owner(PlayerName)
local playerOwner = game:GetService("Players"):FindFirstChild(PlayerName)
local clone = script.LocalScript:Clone()
clone.Parent = game:GetService("Players") [PlayerName]:FindFirstChildOfClass("PlayerScripts") --Why isn't the script going into PlayerScripts?"
clone:WaitForChild("FindModulePlayer"):Fire(playerOwner)
end
return CombatScript
And here is what I used in Developer console to require it:
require(game.workspace.MainModule).Owner("Howatcha")

1 comment
Putting the localscript in StarterPlayerScripts replicate it into PlaerScripts. located in StarterPlayer