Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by Tweakified, Neonblox Games
- Video: https://www.youtube.com/watch?v=Yki2Y-IuNnA
- Server Script: https://pastebin.com/7xCdMs9U
- Script Type: Local Script
- Script Parent: TextButton
- --]]
- local TextButton = script.Parent
- local Checkpoints = workspace:WaitForChild("Checkpoints")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local StageLeaderstat = player:WaitForChild("leaderstats"):WaitForChild("Stage")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local SkipStage = ReplicatedStorage:WaitForChild("SkipStage")
- TextButton.MouseButton1Click:Connect(function()
- if TextButton.Text == "Skip Stage" then
- if #Checkpoints:GetChildren() ~= StageLeaderstat.Value then
- TextButton.Text = "Purchasing..."
- local Response = SkipStage:InvokeServer()
- TextButton.Text = Response
- else
- TextButton.Text = "You have reached the highest stage!"
- end
- wait(2)
- TextButton.Text = "Skip Stage"
- end
- end)
Add Comment
Please, Sign In to add comment