How would I layout a VFX script?

I was thinking that I put the vfx in Serverstorage and then wait for child but how would I make the vfx go to the player?? the rest I can do I just need to know this!

1 Like

when the VFX is needed you would just script it to run within the event handler.like

In a Regular Script

local VFX_remoteEvent = ReplicatedStorage:WaitForChild("VFX_RemoteEvent")

VFX_remoteEvent.OnServerEvent:Connect(function(Player)
-- Play VFX
end)

Firing Remote in a localscript

local VFX_remote = ReplicatedStorage:WaitForChild("VFX_RemoteEvent")

VFX_remote:FireServer()

But I don’t recommend having VFX serverside though

2 Likes

I will learn more scripting later on, thanks man

1 Like