This is what the script does: it is supposed to change a value in their stats. but it doesnt work though. (its supposed to be a normal script, not local, but when i do localscript, it does work, but normal script don't)
local player = game.Players.LocalPlayer
local points = player.stats:FindFirstChild("Points")
local swordz = player.stats.swords
local sword = swordz.Default
local price = 0
script.Parent.MouseButton1Click:Connect(function()
if points.Value >= price then
sword.Value = true
sword.Eq.Value = true
swordz.Linked.Eq.Value = false
end
end)