How to make this VFX move/attack visible to others

Hi! So I created a VFX and a script for it, and I want it to be visible to others. It’s currently a localscript due to having to affect the humanoidrootpart.

Here is the script:

    local player = game.Players.LocalPlayer
    local char = player.Character or player.CharacterAdded:Wait()
    local button = script.Parent
    local flame = game.ReplicatedStorage:WaitForChild("FlameVFX")
    local childrenofFlame = flame:GetChildren()

    	flame.Parent = workspace
    	for i,v in pairs(childrenofFlame) do
    		if v.Color == Color3.fromRGB(255, 0, 0) then
    			v.Position = char.HumanoidRootPart.Position +, 1.106, 0)
    		if v.Color == Color3.fromRGB(255, 106, 0) then
    			v.Position = char.HumanoidRootPart.Position
    		if v.Color == Color3.fromRGB(17, 17, 16) then
    			v.Position = char.HumanoidRootPart.Position +, 0.56, 0)
    		if v.Color == Color3.fromRGB(17, 17, 17) then
    			v.Position = char.HumanoidRootPart.Position -, 0.583, 0)
    		v.Orientation = char.HumanoidRootPart.Orientation
    	char.HumanoidRootPart.Velocity = char.HumanoidRootPart.CFrame.lookVector * 250

Okay, I added that in, but that wasn’t really what I was looking for. Thank you for your feedback though!

You should use remote functions to communicate between the server and the client.

I am assuming the reason that other players can’t see the VFX is because it is all going on in the client. You can correct me if I am wrong though.

When I was beginning programming I also ran into this issue.