RemoteEvent not firing from inside tool

Hi there!

My RemoteEvent is not firing from inside my tool and I can’t seem to figure out why.

LocalScript inside tool: (yes, the for loop outputs the file hierarchy correctly as well)

local Tool = script.Parent
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")

Tool.Activated:Connect(function()
	print("Working")
	--[[for _, item in pairs(ReplicatedStorage.Remote:GetChildren()) do
		if item.Name == "Attack" then
			print(item)
		else
			print("Nope")
		end
	end]]
	ReplicatedStorage.Remote.Attack:FireServer()
	print("Sent")
end)

Script located in ServerScriptStorage:

ReplicatedStorage.Remote.Attack.OnServerEvent:Connect(function(player)
	print(player)
end)

ReplicatedStorage file hierarchy:
image

Tool file hierarchy:
image

Output after firing function inside StarterPack.bronzescimitar.Tool:
image

Any and all help is much appreciated! :slight_smile:

1 Like

is the script located in ServerScriptService or ServerStorage, because if its in ServerStorage it wont run.

Maybe print ‘player.Name’ instead of just ‘player’?

ServerScriptService - I keep writing storage instead of service for some reason. The script is correct in this regard, however.

I have tried that and a bunch of other prints including just a string and it still doesn’t work.

does it not throw any errors that youre refering to something thats nil?

i did the same as you and it works for me, my player name is printing:
https://gyazo.com/6d568051f5d3afde0fa66b472b8eaced

1 Like

Just a simple question, is your script located in ServerScriptService disabled? (yeah i know, it is probably not but we never know)

1 Like