Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local meh = game.Players.LocalPlayer
- local char = meh.Character.Humanoid
- local item1 = null
- local item2 = null
- local item3 = null
- --[[
- repeat
- wait()
- until meh.PlayerGui:FindFirstChild("IntroGui") ~= null
- repeat
- wait()
- until meh.PlayerGui.IntroGui.Enabled == true
- repeat
- wait()
- until meh.PlayerGui:FindFirstChild("IntroGui") == null
- ]]
- repeat
- wait()
- until game.Workspace:FindFirstChild("LostElf") ~= null
- local ItemsVal = {
- ["Cookie"] = 19,
- ["Apple"] = 18,
- ["Cheezburger"] = 20,
- ["Hot Dog"] = 21,
- ["Pizza"] = 22,
- ["Taco"] = 24,
- ["Turkey Leg"] = 25,
- ["Bloxiade"] = 23,
- ["Misfortune Cookie"] = 28,
- ["Void Burger"] = 29,
- ["Space Sandwich"] = 31,
- ["Void Pizza"] = 32,
- ["Void Cake"] = 30,
- ["Donut"] = 26,
- ["Sunblox Latte"] = 27,
- ["Bloxy Cola"] = 11,
- ["Witches Brew"] = 12,
- ["Red Spice Potion"] = 13,
- ["Green Spice Potion"] = 14,
- ["Ghastly Brew"] = 15,
- ["Dragonfire Potion"] = 16,
- ["Golden Chalice of Fame"] = 17
- }
- local SchoolCafeteria = {"Cookie","Apple","Cheezburger","Hot Dog","Pizza","Taco","Turkey Leg","Bloxiade"}
- local ChefUmbras = {"Misfortune Cookie","Void Burger","Space Sandwich","Void Pizza","Void Cake"}
- local SunbloxCafe = {"Donut","Sunblox Latte"}
- local ClubRed = {"Bloxy Cola","Witches Brew","Red Spice Potion","Green Spice Potion","Ghastly Brew","Dragonfire Potion","Golden Chalice of Fame"}
- local function has_value (tab, val)
- for index, value in ipairs(tab) do
- if value == val then
- return true
- end
- end
- return false
- end
- if game.Workspace:FindFirstChild("LostElf") then
- local getreg = getreg or debug.getregistry
- for a,b in next, getreg() do
- if type(b) == 'function' then
- for c,d in next, debug.getupvalues(b) do
- if type(d) == 'table' then
- for e,f in next, d do
- if type(f) == 'table' then
- for g,h in next, f do
- if tostring(g) == "LostElfItems" then
- item1 = h[1]
- item2 = h[2]
- item3 = h[3]
- end
- end
- end
- end
- end
- end
- end
- end
- wait(1)
- if has_value(SchoolCafeteria,item1) then
- local A_1 = ItemsVal[item1]
- local A_2 = "SchoolCafeteria"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(ChefUmbras,item1) then
- local A_1 = ItemsVal[item1]
- local A_2 = "ChefUmbras"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(SunbloxCafe,item1) then
- local A_1 = ItemsVal[item1]
- local A_2 = "SunbloxCafe"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(ClubRed,item1) then
- local A_1 = ItemsVal[item1]
- local A_2 = "ClubRed"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(SchoolCafeteria,item2) then
- local A_1 = ItemsVal[item2]
- local A_2 = "SchoolCafeteria"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(ChefUmbras,item2) then
- local A_1 = ItemsVal[item2]
- local A_2 = "ChefUmbras"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(SunbloxCafe,item2) then
- local A_1 = ItemsVal[item2]
- local A_2 = "SunbloxCafe"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(ClubRed,item2) then
- local A_1 = ItemsVal[item2]
- local A_2 = "ClubRed"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(SchoolCafeteria,item3) then
- local A_1 = ItemsVal[item3]
- local A_2 = "SchoolCafeteria"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(ChefUmbras,item3) then
- local A_1 = ItemsVal[item3]
- local A_2 = "ChefUmbras"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(SunbloxCafe,item3) then
- local A_1 = ItemsVal[item3]
- local A_2 = "SunbloxCafe"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- if has_value(ClubRed,item3) then
- local A_1 = ItemsVal[item3]
- local A_2 = "ClubRed"
- local A_3 = 1
- local Event = game:GetService("ReplicatedStorage").Remotes.Items.PurchaseItem
- Event:InvokeServer(A_1, A_2, A_3)
- end
- wait(0.1)
- local Event = game:GetService("ReplicatedStorage").Remotes.RemoteFunction.CompleteElfMission
- Event:InvokeServer()
- wait(1)
- game:GetService("TeleportService"):Teleport(2098516465, meh)
- end
- --game:GetService("TeleportService"):Teleport(2098516465, meh)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement