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)