this is my local script
local rep = game:GetService("ReplicatedStorage") local remote = rep:WaitForChild("RemoteEvent") local player = game:GetService("Players").LocalPlayer local mouse = player:GetMouse() remote:FireServer(mouse) mouse.Button1Down:connect(function() if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.T) then return end if not mouse.Target then return end mouse.Target.Parent.Humanoid.Health = 0 end)
this is my server script
local rep = game:GetService("ReplicatedStorage") local remote = rep:WaitForChild("RemoteEvent") remote.OnServerEvent:Connect(function(player) print(player.name.." activated") end)
it doesnt even print anything, why?