Hello, i have been learning a lot about Filtering Enabled lately but i still do not get it. I started writing this script but it only works in Roblox Studio. Can someone please help me?
Inside a textbutton in a local script
RS = game.ReplicatedStorage.CollectCashEvent
script.Parent.MouseButton1Click:Connect(function()
RS:FireServer(50)
end)
Inside the textbutton in a normal script
user = game.Players.LocalPlayer
RS = game.ReplicatedStorage.CollectCashEvent
RS.OnServerEvent:Connect(function()
user.leaderstats.Cash.Value = user.leaderstats.Cash.Value + number
end)

2 comments
Thanks :D i'll test it out.
friend me