Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local c1 = plr.leaderstats.Points
- local c2 = plr.leaderstats.Rebirths
- local ac = plr.PlayerGui.rebirths_ui.annoucement
- function onClicked()
- if c1.Value >= 500 then
- print(plr.Name.." has rebirthed!")
- c2.Value = c2.Value +1
- c1.Value = c1.Value -500
- elseif c1.Value <= 500 then
- print(plr.Name.." hasn't enough Points to Rebirth")
- ac.Visible = true
- wait(2)
- ac.Visible = false
- end
- end
- plr.PlayerGui.rebirths_ui.exchange.MouseButton1Click:Connect(onClicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement