Here is my code for the local script
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local input = game:GetService("UserInputService")
input.InputBegan:Connect(function(key, gameProcessed)
if gameProcessed then
if key == Enum.KeyCode.E then
print("?")
game.ReplicatedStorage.ItemEvents.Blast:FireServer("e", mouse.Hit)
end
end
end)
Here is my script
local Attack = require(script.Parent.Attacks)
game.ReplicatedStorage.ItemEvents.Blast.OnServerEvent:Connect(function(plr,Key,Mouse)
local Blaster = game.ServerStorage.Blaster:Clone()
print("Blast")
Blaster.Name = "BlastClone"
Blaster.Parent = game.Workspace
Blaster:MoveTo(script.Parent.Parent.Head.Position)
local lookTo = CFrame.Angles(Mouse.Position.X,Mouse.Position.Y,Mouse.Position.Z)
Blaster:SetPrimaryPartCFrame(CFrame.new(script.Parent.Head.CFrame.X,script.Parent.Head.CFrame.Y,script.Parent.Head.CFrame.Z) * lookTo)
wait(7.9999)
Blaster:Remove()
end)

2 comments
What is not working? Any error in the output window? What exactly supposed to happen? Post any info you can.
the output says nothing