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

Is it possible to make this work as a local script?

Asked by 4 years ago

I need this Server script to be a local script and since OnServerEvent can only be used on the server is their a alternative that can work on a local script?

local Remote = game:GetService("ReplicatedStorage").Chop

Remote.OnServerEvent:Connect(function(plr,Wood)
    local V = Wood.Values.Health
    local Amount = 25
    V.Value = V.Value - Amount
end)

Answer this question