Basically I'm working on making a magic attack, using FE. (I'm not experienced with FE so it is supposed to be super basic) The part that I am going to use for it isn't even spawning.
Local Script
local event = game.ReplicatedStorage.Pet
local plr = game.Players.LocalPlayer
local char = plr.Character or plr:WaitForChild("Character")
local tool = script.Parent
tool.Activated:Connect(function()
event:FireServer(char.Torso.Position)
end)
Server Script
local event = game.ReplicatedStorage.Pet
local plr = game.Players.LocalPlayer
local char = plr.Character or plr:WaitForChild("Character")
event.OnServerEvent:Connect(function(plr,position)
local gay = Instance.new("Part")
gay.Shape = "Ball"
gay.BrickColor = BrickColor.new("Red")
gay.Position = position
gay.Parent = workspace.Magic
end)
Anyone know the problem?

2 comments
you realize you can just do tool.Activated in the server script, right?
no i don't- how does that work?