I’ve made a local script which creates a fireball. The problem is only the local player can see it not everyone. Is their anyway I can make it visible to everyone
local deviation = 2
function onButton1Down(mouse)
local Fireball = game.Workspace[script.Parent.Parent.Parent.Name].Head
local Attack = script.Slice:Clone()
Attack.Parent = game.Workspace
Attack.CFrame = Fireball.CFrame + (mouse.Hit.lookVector * 2)
Attack.CFrame = CFrame.new(Attack.Position + (mouse.Hit.lookVector * 2), mouse.Hit.lookVector * 8)
Attack.Velocity = mouse.Hit.lookVector * 400 + Vector3.new(math.random(-deviation,deviation),math.random(-deviation,deviation),math.random(-deviation,deviation))
local force = Instance.new("BodyForce")
force.force = Vector3.new(0,100,0)
force.Parent = Attack
end
function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
script.Parent.Selected:connect(onSelected)