Advertisement
ChikaFujiwara

Untitled

Dec 24th, 2019
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. local meh = game.Players.LocalPlayer
  2. local char = meh.Character.Humanoid
  3.  
  4. local item1 = null
  5. local item2 = null
  6. local item3 = null
  7.  
  8. --[[
  9. repeat
  10. wait()
  11. until meh.PlayerGui:FindFirstChild("IntroGui") ~= null
  12.  
  13. repeat
  14. wait()
  15. until meh.PlayerGui.IntroGui.Enabled == true
  16.  
  17. repeat
  18. wait()
  19. until meh.PlayerGui:FindFirstChild("IntroGui") == null
  20. ]]
  21.  
  22. repeat
  23. wait()
  24. until game.Workspace:FindFirstChild("LostElf") ~= null
  25.  
  26. local ItemsVal = {
  27. ["Cookie"] = 19,
  28. ["Apple"] = 18,
  29. ["Cheezburger"] = 20,
  30. ["Hot Dog"] = 21,
  31. ["Pizza"] = 22,
  32. ["Taco"] = 24,
  33. ["Turkey Leg"] = 25,
  34. ["Bloxiade"] = 23,
  35. ["Misfortune Cookie"] = 28,
  36. ["Void Burger"] = 29,
  37. ["Space Sandwich"] = 31,
  38. ["Void Pizza"] = 32,
  39. ["Void Cake"] = 30,
  40. ["Donut"] = 26,
  41. ["Sunblox Latte"] = 27,
  42. ["Bloxy Cola"] = 11,
  43. ["Witches Brew"] = 12,
  44. ["Red Spice Potion"] = 13,
  45. ["Green Spice Potion"] = 14,
  46. ["Ghastly Brew"] = 15,
  47. ["Dragonfire Potion"] = 16,
  48. ["Golden Chalice of Fame"] = 17
  49. }
  50.  
  51. local SchoolCafeteria = {"Cookie","Apple","Cheezburger","Hot Dog","Pizza","Taco","Turkey Leg","Bloxiade"}
  52. local ChefUmbras = {"Misfortune Cookie","Void Burger","Space Sandwich","Void Pizza","Void Cake"}
  53. local SunbloxCafe = {"Donut","Sunblox Latte"}
  54. local ClubRed = {"Bloxy Cola","Witches Brew","Red Spice Potion","Green Spice Potion","Ghastly Brew","Dragonfire Potion","Golden Chalice of Fame"}
  55.  
  56.  
  57. local function has_value (tab, val)
  58. for index, value in ipairs(tab) do
  59. if value == val then
  60. return true
  61. end
  62. end
  63. return false
  64. end
  65.  
  66. if game.Workspace:FindFirstChild("LostElf") then
  67.  
  68. local getreg = getreg or debug.getregistry
  69.  
  70. for a,b in next, getreg() do
  71. if type(b) == 'function' then
  72. for c,d in next, debug.getupvalues(b) do
  73. if type(d) == 'table' then
  74. for e,f in next, d do
  75. if type(f) == 'table' then
  76. for g,h in next, f do
  77. if tostring(g) == "LostElfItems" then
  78. item1 = h[1]
  79. item2 = h[2]
  80. item3 = h[3]
  81. end
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. end
  89. wait(1)
  90. if has_value(SchoolCafeteria,item1) then
  91. local A_1 = ItemsVal[item1]
  92. local A_2 = "SchoolCafeteria"
  93. local A_3 = 1
  94. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  95. Event:InvokeServer(A_1, A_2, A_3)
  96. end
  97. if has_value(ChefUmbras,item1) then
  98. local A_1 = ItemsVal[item1]
  99. local A_2 = "ChefUmbras"
  100. local A_3 = 1
  101. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  102. Event:InvokeServer(A_1, A_2, A_3)
  103. end
  104. if has_value(SunbloxCafe,item1) then
  105. local A_1 = ItemsVal[item1]
  106. local A_2 = "SunbloxCafe"
  107. local A_3 = 1
  108. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  109. Event:InvokeServer(A_1, A_2, A_3)
  110. end
  111. if has_value(ClubRed,item1) then
  112. local A_1 = ItemsVal[item1]
  113. local A_2 = "ClubRed"
  114. local A_3 = 1
  115. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  116. Event:InvokeServer(A_1, A_2, A_3)
  117. end
  118.  
  119. if has_value(SchoolCafeteria,item2) then
  120. local A_1 = ItemsVal[item2]
  121. local A_2 = "SchoolCafeteria"
  122. local A_3 = 1
  123. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  124. Event:InvokeServer(A_1, A_2, A_3)
  125. end
  126. if has_value(ChefUmbras,item2) then
  127. local A_1 = ItemsVal[item2]
  128. local A_2 = "ChefUmbras"
  129. local A_3 = 1
  130. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  131. Event:InvokeServer(A_1, A_2, A_3)
  132. end
  133. if has_value(SunbloxCafe,item2) then
  134. local A_1 = ItemsVal[item2]
  135. local A_2 = "SunbloxCafe"
  136. local A_3 = 1
  137. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  138. Event:InvokeServer(A_1, A_2, A_3)
  139. end
  140. if has_value(ClubRed,item2) then
  141. local A_1 = ItemsVal[item2]
  142. local A_2 = "ClubRed"
  143. local A_3 = 1
  144. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  145. Event:InvokeServer(A_1, A_2, A_3)
  146. end
  147.  
  148. if has_value(SchoolCafeteria,item3) then
  149. local A_1 = ItemsVal[item3]
  150. local A_2 = "SchoolCafeteria"
  151. local A_3 = 1
  152. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  153. Event:InvokeServer(A_1, A_2, A_3)
  154. end
  155. if has_value(ChefUmbras,item3) then
  156. local A_1 = ItemsVal[item3]
  157. local A_2 = "ChefUmbras"
  158. local A_3 = 1
  159. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  160. Event:InvokeServer(A_1, A_2, A_3)
  161. end
  162. if has_value(SunbloxCafe,item3) then
  163. local A_1 = ItemsVal[item3]
  164. local A_2 = "SunbloxCafe"
  165. local A_3 = 1
  166. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  167. Event:InvokeServer(A_1, A_2, A_3)
  168. end
  169. if has_value(ClubRed,item3) then
  170. local A_1 = ItemsVal[item3]
  171. local A_2 = "ClubRed"
  172. local A_3 = 1
  173. local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
  174. Event:InvokeServer(A_1, A_2, A_3)
  175. end
  176.  
  177. wait(0.1)
  178. local Event = game:GetService("ReplicatedStorage").Remotes.RemoteFunction.CompleteElfMission
  179. Event:InvokeServer()
  180.  
  181. wait(1)
  182.  
  183. game:GetService("TeleportService"):Teleport(2098516465, meh)
  184. end
  185.  
  186. --game:GetService("TeleportService"):Teleport(2098516465, meh)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement