Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GameGui = game.Players.LocalPlayer.PlayerGui:WaitForChild("GameGui")
- local debounce = false
- script.Parent.Changed:connect(function()
- if script.Parent.Value ~= "" then
- if debounce == false then
- debounce = true
- if Rewards[script.Parent.Value] ~= nil then
- GameGui.Reward:TweenPosition(UDim2.new(0.35, 0, 0.25, 0), "Out", "Quad", 1, true)
- GameGui.Reward.TextLabel.Text = "Unlocked "..script.Parent.Value.."!"
- if game.Workspace.Regens["Regen (Pokemons)"]:FindFirstChild(script.Parent.Value) then
- GameGui.Reward.Pokemon.Image = game.Workspace.Regens["Regen (Pokemons)"][script.Parent.Value].Decal.Texture
- else
- GameGui.Reward.Pokemon.Image = Rewards[script.Parent.Value]
- end
- GameGui.Reward.Visible = true
- spawn(function()
- local ETick = os.time() + 8
- while ETick > os.time() do
- GameGui.Reward.Field.Rotation = GameGui.Reward.Field.Rotation + 1
- wait()
- end
- end)
- wait(6)
- GameGui.Reward:TweenPosition(UDim2.new(-1, 0, 0.25, 0), "Out", "Quad", 1, true)
- wait(1)
- GameGui.Reward.Visible = false
- GameGui.Reward.Field.Rotation = 0
- GameGui.Reward.TextLabel.Text = ""
- GameGui.Reward.Pokemon.Image = ""
- end
- script.Parent.Value = ""
- debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement