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()

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

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.