My code currently sends effects to client through a RemoteEvent that contains a key, and then any additional data.
This key simply tells the client what effects to fire.
This is simply a tiny excerpt of my server effects. I was wondering if there was any way to make it look cleaner.
local function effects(Character)
Remotes.Effect:FireAllClients("RemoveLimb", Character, "LeftHand")
wait(.3)
Remotes.Effect:FireAllClients("Plasma", Character)
wait(1)
local origin = Character.HumanoidRootPart.Position + Vector3.new(0, 250, 0)
local point = origin - Vector3.new(0, 255, 0)
Remotes.Effect:FireAllClients("BranchLightning", origin, point)
wait(.2)
Remotes.Effect:FireAllClients("Sound", Character.HumanoidRootPart.CFrame, "rbxassetid://4683291840")
wait(.2)
Remotes.Effect:FireAllClients("Explode", Character.HumanoidRootPart.Position)
wait(.2)
end