I have two scripts that detect if a tool comes into contact with a maintenance panel. It works fine if both are scripts, however I want the script in the tool to be Local, so I can fire a remoteevent with the player's name.
Local/ToolScript:
script.Parent:FindFirstChild("Handle").Touched:Connect(function(hit)
if hit:FindFirstChild("Humanoid") == nil then -- we make sure it's not a player tocuhed
if hit ~= nil and hit.Name == "MaintPanel" then
MaintenanceEvent:FireServer(game.Players.LocalPlayer)
end
end
end)
Server/PanelScript:
function receive(player)
warn(player)
--do stuff
end
MaintFire.OnServerEvent:Connect(receive())
Is there any way to make this work without BindableEvents?

4 comments
Panel script?
the script inside the panel that its being touched.
What help do you need from your script?
I want to be able to use a localscript inside the tool, however the :touched function doesn't work.