Why won't dis remote event work

Why won’t this work?

--Local Script
local Handle = script.Parent.Handle
local Tool = script.Parent
local Yeet = script.Parent:WaitForChild("Yeet")
local Players = game:GetService("Players")

Tool.Activated:Connect(function()
	print("clicked")
	Yeet:FireServer()
end)
--Script
local Tool = game.StarterPack:WaitForChild("B a l l")
local Handle = Tool:WaitForChild("Handle")
local Yeet = Tool:WaitForChild("Yeet")
local Players = game:GetService("Players")

function shoot()
	print("shoot")
end

Yeet.OnServerEvent:Connect(shoot)

Ty

This is because when you use the tool and fire the remote event it is coming from a players tool.
Your server script is trying to detect the remote event from the starter pack.

To fix this you would need to put the remote event in replicated storage.

1 Like

yeah i think that is a good thing to do

but at the same time you can put remote events anywhere you want it still won’t make a difference

1 Like

try putting the server script in serverscriptstorage instead and check if it still makes a difference

Didn’t work when I did it (characcteeeeerrrr limit)

oh yeah wait he is right i’m so dumb i wasn’t thinking straight