If you use a console while the game is not running some services haven't replicated their contents yet. When you start a game every player gets a copy of the tool and so many events are created in Players.LocalPlayer.Backpack.Tool. The script in the tool in starterpack will never be used so it can never fire or be called. Put your remote event in replicated storage and a local script in your tool and see if it helps. No need to be rude.
This worked for me:
Put the remote event in: game.ReplicatedStorage
Put a script wherever you want, I put mine in game.ServerScriptService
server script:
x = game.ReplicatedStorage.RemoteEvent
x.OnServerEvent:Connect(function()
print("got msg")
end)
local script inside tool:
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
script.Parent.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z)
end)
end)
2 comments
Have you tried putting the remote event in replicated storage? Reading the documentation might help you https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events
bro i said from console they worked LOL