Hello! It’s hard to explain my question in the title, so I’ll explain it here: So, I was simply wondering if - if I call a module script locally, will it run the function I’m calling locally? For example, let’s say I have a ModuleScript in the ReplicatedStorage with this code:
local module = {}
module.ChangeColor = function(part, color)
part.Color3 = color
end) – I can’t remember if you put a ) at the end or not but it doesn’t matter right now
return module
Then, I have a LocalScript in the StarterGui with this code:
local InputService = game:GetService(“UserInputService”)
InputService.InputBegan:Connect(function()
require(game.ReplicatedStorage.ModuleScript).changecolor(game.Workspace.BasePlate, Color3.new(0, 0, 0)
end)
Basically, what I’m wondering is - to say it again - will this only change the baseplate’s color locally because it’s a client calling a function or will it do it via server because a module is performing the function? Thanks for your time.