LocalScript (In a tool)
tool = script.Parent
player = game.Players.LocalPlayer
tool.Equipped:Connect(function(mouse)
mouse.Icon = "http://www.roblox.com/asset/?id=2312592107"
print("1")
mouse.Button1Down:Connect(function()
print(1)
explosionPoint = mouse.Hit.p
game.Workspace.ToolExplosion.ExplosionCreate:FireServer(explosionPoint, tool)
end)
end)
ServerScript (In workspace)
script.ExplosionCreate.OnServerEvent:Connect(function(explosionPoint, tool)
local explosion = Instance.new("Explosion")
explosion.Parent = game.Workspace
explosion.Position = explosionPoint
end)
ERROR ON LINE 4 (SERVER SCRIPT)

5 comments
mouse is deprecated use userInputService
It is not. Can you help me with my question?
game.Workspace.ToolExplosion.ExplosionCreate:FireServer(player, --// Don't add the player, the server knows who is sending it, what you actually receive is player, player, explosionPoint, tool
I still get the same error.
OnServerEvent() always has the first argument the player who fired the server. It should be script.ExplosionCreate.OnServerEvent:Connect(function(player, explosionPoint, tool)