So, i have a script, y'know, simple 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)
However, how can i make this script be a ClickDetector version? I already have a block with the clickdetector.
And the extra thing that is needed: It needs to work on filtering enabled.
Thanks for listening.

1 comment
Please don't ask twice... (https://scriptinghelpers.org/questions/55479/need-to-put-a-script-into-a-clickdetector-but-i-dont-know-how-to-use-them-help)