I have this script:
local player = game.Players.LocalPlayer
local leaderboard = player:WaitForChild("leaderstats")
local price = 30
if leaderboard.Cashies.Value >= price.Value then
leaderboard.Cashies.Value = leaderboard
leaderboard.Cashies.Value = leaderboard.Cashies.Value - price.Value
leaderboard.Pointies.Value = leaderboard.Points.Value - price.Value
end
end)
I wanna make this script have a "Click detector" on it, But not only that, Because my game is filtering enabled, how to i make the script filtering enabled?

1 comment
This is a Script with no LocalScript working. FE only makes it so localscripts can’t change other clients.