I got a problem with FE, the local script and script won't perform, I think that the issue might be the activated event because when I removed it to test, everything performed just fine Local Script:
Player = game.Players.LocalPlayer Character = Player.Character Mouse = Player:GetMouse() Tool = script.Parent Tool.Activated:connect(function() local en = true if en == true then en = false Tool.RemoteEvent:FireServer(Mouse.Hit) wait(5) en = true end end)
Script:
Player = script.Parent.Parent.Parent Character = Player.Character Mouse = Player:GetMouse() Tool = script.Parent Tool.RemoteEvent.OnServerEvent:connect(function() print("Activated") local Torso = Character.Torso local Breath = Instance.new("Part") Breath.Shape = "Ball" Breath.Size = Vector3.new(6.05, 6.05, 6.05) Breath.CanCollide = false Breath.Transparency = 1 local Particle = script.Particle:Clone() Particle.Parent = Breath Breath.Parent = Torso Breath.CFrame = Torso.CFrame W = Instance.new("Weld") W.Part0 = Breath W.C0 = Breath.CFrame:inverse() W.Part1 = Torso W.C1 = Torso.CFrame:inverse() W.Parent = Torso local MouseHitP = Mouse.Hit.p local Torso = Character.Torso local direction = (MouseHitP - Torso.Position) * Vector3.new(1, 0, 1) Torso.CFrame = CFrame.new(Torso.Position, Torso.Position + direction) end)
Local script:
local Player = game.Players.LocalPlayer local Character = Player.Character local Mouse = Player:GetMouse() local Tool = script.Parent local Equipped = false Mouse.Button1Down:connect(function() if Equipped then local en = true if en == true then en = false Tool.RemoteEvent:FireServer(Mouse.Hit) wait(5) en = true end end end) Tool.Equipped:connect(function() Equipped = true end) Tool.Unequipped:connect(function() Equipped = false end)
Server script:
Player = script.Parent.Parent.Parent Character = Player.Character Mouse = Player:GetMouse() Tool = script.Parent Tool.RemoteEvent.OnServerEvent:connect(function(player, mousehit) -- you forgot to add the parameters(remember the first parameter is always the player who fired the event) print("Activated") local Character = player.Character -- get the player's character local Torso = Character.Torso local Breath = Instance.new("Part") Breath.Shape = "Ball" Breath.Size = Vector3.new(6.05, 6.05, 6.05) Breath.CanCollide = false Breath.Transparency = 1 local Particle = script.Particle:Clone() Particle.Parent = Breath Breath.Parent = Torso Breath.CFrame = Torso.CFrame W = Instance.new("Weld") W.Part0 = Breath W.C0 = Breath.CFrame:inverse() W.Part1 = Torso W.C1 = Torso.CFrame:inverse() W.Parent = Torso local MouseHitP = mousehit.p local Torso = Character.Torso local direction = (MouseHitP - Torso.Position) * Vector3.new(1, 0, 1) Torso.CFrame = CFrame.new(Torso.Position, Torso.Position + direction) end)