Advertisement
IHATEMICROWAVEOVEN

sticks

Nov 24th, 2021
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. local GameGui = game.Players.LocalPlayer.PlayerGui:WaitForChild("GameGui")
  2. local debounce = false
  3. script.Parent.Changed:connect(function()
  4. if script.Parent.Value ~= "" then
  5. if debounce == false then
  6. debounce = true
  7. if Rewards[script.Parent.Value] ~= nil then
  8. GameGui.Reward:TweenPosition(UDim2.new(0.35, 0, 0.25, 0), "Out", "Quad", 1, true)
  9. GameGui.Reward.TextLabel.Text = "Unlocked "..script.Parent.Value.."!"
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. if game.Workspace.Regens["Regen (Pokemons)"]:FindFirstChild(script.Parent.Value) then
  21. GameGui.Reward.Pokemon.Image = game.Workspace.Regens["Regen (Pokemons)"][script.Parent.Value].Decal.Texture
  22. else
  23. GameGui.Reward.Pokemon.Image = Rewards[script.Parent.Value]
  24. end
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. GameGui.Reward.Visible = true
  36. spawn(function()
  37. local ETick = os.time() + 8
  38. while ETick > os.time() do
  39. GameGui.Reward.Field.Rotation = GameGui.Reward.Field.Rotation + 1
  40. wait()
  41. end
  42. end)
  43. wait(6)
  44. GameGui.Reward:TweenPosition(UDim2.new(-1, 0, 0.25, 0), "Out", "Quad", 1, true)
  45. wait(1)
  46. GameGui.Reward.Visible = false
  47. GameGui.Reward.Field.Rotation = 0
  48. GameGui.Reward.TextLabel.Text = ""
  49. GameGui.Reward.Pokemon.Image = ""
  50. end
  51. script.Parent.Value = ""
  52. debounce = false
  53. end
  54. end
  55. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement