I'm new to Filtering Enabled and I'm running into some problems The problem is the code won't work on the client. I've tried using local scripts but then Remote Events don;t work.
code 1
script.Parent.MouseClick:connect(function()
game:GetService("ReplicatedStorage").OnEat:FireServer()
end)
code 2
game.ReplicatedStorage.OnEat.OnServerEvent:connect(function(Player)
local Character = Player.Character
local Humanoid = Character.Humanoid
local BDS = Humanoid.BodyDepthScale
local BHS = Humanoid.BodyHeightScale
local BWS = Humanoid.BodyWidthScale
local HS = Humanoid.HeadScale
local points = game.Players.LocalPlayer.leaderstats.Points
local rebirth = game.Players.LocalPlayer.leaderstats.Rebirth
BDS.Value = BDS.Value +0.03*rebirth.Value
BHS.Value = BHS.Value +0.03*rebirth.Value
BWS.Value = BWS.Value +0.03*rebirth.Value
HS.Value = HS.Value +0.03*rebirth.Value
Humanoid.WalkSpeed = Humanoid.WalkSpeed + 0.03
points.Value = points.Value +1*rebirth.Value
end)

2 comments
Okay
https://scriptinghelpers.org/questions/54228/filtering-enabled-script-working-in-studio-but-not-in-game