#help feedback pls gng

1 messages · Page 1 of 1 (latest)

outer zinc
#
--[[
[Client] : Call play function, firing the Arguments to the server
    ->  [Server] : Fire all client the Arguments
        ->  [Client] : Run the module's effect function

Arguments = {
    ["Module"] : ModuleScript - A module that return the function
                                for the effects
    ["Info"] : {}             - A list contain of informations that
                                the function might need : function executer, ect
}
]]

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local EffectRemoteEvent = ReplicatedStorage.Events.RemoteEvent.Effects

if RunService:IsServer() then
    EffectRemoteEvent.OnServerEvent:Connect(function(args)
        EffectRemoteEvent:FireAllClients(args)
    end)
else    
    EffectRemoteEvent.OnClientEvent:Connect(function(args)
        require(args["Module"])(args["Info"])
    end)
end

local SyncEffect = {}

function SyncEffect.Play(Arguments : {["Module"] : ModuleScript, ["Info"] : {}})
    EffectRemoteEvent:FireServer(Arguments)
end

return SyncEffect

I made this module for my game for simply syncing the effects. can you guys point out the flaws and help me improve it?

summer dome
#

i ain't getting none of this chinese language the only thing i can do is print("how to script")

summer dome
nova pathBOT
#

studio** You are now Level 1! **studio