It needs to be a remote event or else the filtering will block it.
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.ExpUp:FireServer()
end)
game.Players.PlayerAdded:Connect(function(player)
game.ReplicatedStorage.ExpUp.OnServerEvent:Connect(function()
local exp = player:WaitForChild("Leaderstats")["Exp"]
local mana = player:WaitForChild("Mana")
local manac = player:WaitForChild("Manac")
if mana.Value >= 5 then
exp.Value = exp.Value + 20
mana.Value = mana.Value - 10
end
end)
end)

1 comment
Wait so doesn't increase everyones exp and decreases everyones mana or doesnt increase everyones exp and mana??