Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does not this script kill other player?

Asked by 5 years ago

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?

0
because FE theking48989987 2147 — 5y
0
FE ClockWallie 28 — 5y
0
fe is turned off Gameplayer365247v2 1055 — 5y
0
FE is turned on by default. RiotGUI 15 — 5y
0
The `FilteringEnabled` property under the `Workspace` is a dummy, and has been for months; you can't turn FE off anymore. https://devforum.roblox.com/t/removal-of-experimental-mode/152807 TheeDeathCaster 2368 — 5y

Answer this question