I'm trying to make a simulator game and I want to make a zone and you have to pay 100 cash. I am using this script right now:
local Player = game.Players.LocalPlayer
local leaderstats = game.ServerScriptService.Value.leaderstats.Cash
local Zone = game.Workspace.Zone
Zone.Touched:Connect(function(hit) if Player.leaderstats >= 100 then Zone.Transparency = 1 Zone.CanCollide = false end end)
For some reason, it doesnt work. Help?

1 comment
if leaderstats >= 100*