Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --watch the video to know where to put it
- local repStorage = game:GetService("ReplicatedStorage")
- local remote = repStorage:FindFirstChild("RebirthClick")
- local button = script.Parent
- local debounce = false
- button.MouseButton1Click:Connect(function()
- local rebirths = game.Players.LocalPlayer.leaderstats:FindFirstChild("Rebirths")
- if not debounce then
- debounce = true
- local playerPoint = rebirths
- remote:FireServer(playerPoint)
- wait(0.01)
- debounce = false
- end
- end)
- repeat
- local rebirths = game.Players.LocalPlayer.leaderstats:FindFirstChild("Rebirths")
- local textButton = script.Parent
- textButton.Text = "Rebirth: ".. tostring(100 * (rebirths.Value + 1)) .." cash required"
- wait(0.01)
- until script.Parent == nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement