Yep, this is like my 5th question about a fireball script. Anyways, this script works PERFECTLY fine in Play solo, but doesn't shoot online. It just takes Mana away ;-; I've tried everything that I thought would fix it. Script, (Ignore mana stuff)
Player = game.Players.LocalPlayer -- Gets LocalPlayer Character = Player.Character -- Gets Players Character Mouse = Player:GetMouse() -- Gets players Mouse function onKeyDown(key) key = key:lower() if key == "q" then if Player.Magic.Value == "Fire" then if Player.Mana.Value >= 15 then Player.Mana.Value = Player.Mana.Value - 15 local x = Instance.new("Part") x.TopSurface = "Smooth" x.BottomSurface = "Smooth" x.Shape = "Ball" x.Transparency = .7 x.BrickColor = BrickColor.new("Bright red") local f = Instance.new("Fire") f.Parent = x f.Size = 12 f.Heat = 0 local o = Instance.new("StringValue", x) o.Name = "Owner" o.Value = Player.Name game.ReplicatedStorage.DMGSCRIPTS.FBDmg:Clone().Parent = x local y = Instance.new("BodyVelocity") y.maxForce = Vector3.new(math.huge, math.huge, math.huge) y.velocity = Character.Torso.CFrame.lookVector*80 y.Parent = x x.Parent = workspace x.CFrame = Character.Torso.CFrame*CFrame.new(0, 0, -12) end end end end Mouse.KeyDown:connect(onKeyDown)
Any help would be appreciated.