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)
that is because the first argument of OnServerEvent is always the player object, so yes you will still get the same error because you removed the player argument in your OnServerEvent,and explosionPoint becomes the player argument,Redcommanderv2 is saying that you should remove the player argument from fireServer only
script.ExplosionCreate.OnServerEvent:Connect(function(player, explosionPoint, tool)