-- Converted using Mokiros's Model to Script Version 3
-- Converted string size: 2904 characters
--https://glot.io/snippets/gbm8oipxhp
local Instance = {new = function(class, par)
local obj = Instance.new(class == "TextLabel" and "TextBox" or class, par)
return obj
end,}
local function Decode(str)
local StringLength = #str
-- Base64 decoding
do
local decoder = {}
for b64code, char in pairs(('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='):split('')) do
decoder[char:byte()] = b64code-1
end
local n = StringLength
local t,k = table.create(math.floor(n/4)+1),1
local padding = str:sub(-2) == '==' and 2 or str:sub(-1) == '=' and 1 or 0
for i = 1, padding > 0 and n-4 or n, 4 do
local a, b, c, d = str:byte(i,i+3)
local v = decoder[a]*0x40000 + decoder[b]*0x1000 + decoder[c]*0x40 + decoder[d]
t[k] = string.char(bit32.extract(v,16,8),bit32.extract(v,8,8),bit32.extract(v,0,8))
k = k + 1
end
if padding == 1 then
local a, b, c = str:byte(n-3,n-1)
local v = decoder[a]*0x40000 + decoder[b]*0x1000 + decoder[c]*0x40
t[k] = string.char(bit32.extract(v,16,8),bit32.extract(v,8,8))
elseif padding == 2 then
local a, b = str:byte(n-3,n-2)
local v = decoder[a]*0x40000 + decoder[b]*0x1000
t[k] = string.char(bit32.extract(v,16,8))
end
str = table.concat(t)
end
local Position = 1
local function Parse(fmt)
local Values = {string.unpack(fmt,str,Position)}
Position = table.remove(Values)
return table.unpack(Values)
end
local Settings = Parse('B')
local Flags = Parse('B')
Flags = {
--[[ValueIndexByteLength]] bit32.extract(Flags,6,2)+1,
--[[InstanceIndexByteLength]] bit32.extract(Flags,4,2)+1,
--[[ConnectionsIndexByteLength]] bit32.extract(Flags,2,2)+1,
--[[MaxPropertiesLengthByteLength]] bit32.extract(Flags,0,2)+1,
--[[Use Double instead of Float]] bit32.band(Settings,0b1) > 0
}
local ValueFMT = ('I'..Flags[1])
local InstanceFMT = ('I'..Flags[2])
local ConnectionFMT = ('I'..Flags[3])
local PropertyLengthFMT = ('I'..Flags[4])
local ValuesLength = Parse(ValueFMT)
local Values = table.create(ValuesLength)
local CFrameIndexes = {}
local ValueDecoders = {
--!!Start
[1] = function(Modifier)
return Parse('s'..Modifier)
end,
--!!Split
[2] = function(Modifier)
return Modifier ~= 0
end,
--!!Split
[3] = function()
return Parse('d')
end,
--!!Split
[4] = function(_,Index)
table.insert(CFrameIndexes,{Index,Parse(('I'..Flags[1]):rep(3))})
end,
--!!Split
[5] = {CFrame.new,Flags[5] and 'dddddddddddd' or 'ffffffffffff'},
--!!Split
[6] = {Color3.fromRGB,'BBB'},
--!!Split
[7] = {BrickColor.new,'I2'},
--!!Split
[8] = function(Modifier)
local len = Parse('I'..Modifier)
local kpts = table.create(len)
for i = 1,len do
kpts[i] = ColorSequenceKeypoint.new(Parse('f'),Color3.fromRGB(Parse('BBB')))
end
return ColorSequence.new(kpts)
end,
--!!Split
[9] = function(Modifier)
local len = Parse('I'..Modifier)
local kpts = table.create(len)
for i = 1,len do
kpts[i] = NumberSequenceKeypoint.new(Parse(Flags[5] and 'ddd' or 'fff'))
end
return NumberSequence.new(kpts)
end,
--!!Split
[10] = {Vector3.new,Flags[5] and 'ddd' or 'fff'},
--!!Split
[11] = {Vector2.new,Flags[5] and 'dd' or 'ff'},
--!!Split
[12] = {UDim2.new,Flags[5] and 'di2di2' or 'fi2fi2'},
--!!Split
[13] = {Rect.new,Flags[5] and 'dddd' or 'ffff'},
--!!Split
[14] = function()
local flags = Parse('B')
local ids = {"Top","Bottom","Left","Right","Front","Back"}
local t = {}
for i = 0,5 do
if bit32.extract(flags,i,1)==1 then
table.insert(t,Enum.NormalId[ids[i+1]])
end
end
return Axes.new(unpack(t))
end,
--!!Split
[15] = function()
local flags = Parse('B')
local ids = {"Top","Bottom","Left","Right","Front","Back"}
local t = {}
for i = 0,5 do
if bit32.extract(flags,i,1)==1 then
table.insert(t,Enum.NormalId[ids[i+1]])
end
end
return Faces.new(unpack(t))
end,
--!!Split
[16] = {PhysicalProperties.new,Flags[5] and 'ddddd' or 'fffff'},
--!!Split
[17] = {NumberRange.new,Flags[5] and 'dd' or 'ff'},
--!!Split
[18] = {UDim.new,Flags[5] and 'di2' or 'fi2'},
--!!Split
[19] = function()
return Ray.new(Vector3.new(Parse(Flags[5] and 'ddd' or 'fff')),Vector3.new(Parse(Flags[5] and 'ddd' or 'fff')))
end
--!!End
}
for i = 1,ValuesLength do
local TypeAndModifier = Parse('B')
local Type = bit32.band(TypeAndModifier,0b11111)
local Modifier = (TypeAndModifier - Type) / 0b100000
local Decoder = ValueDecoders[Type]
if type(Decoder)=='function' then
Values[i] = Decoder(Modifier,i)
else
Values[i] = Decoder[1](Parse(Decoder[2]))
end
end
for i,t in pairs(CFrameIndexes) do
Values[t[1]] = CFrame.fromMatrix(Values[t[2]],Values[t[3]],Values[t[4]])
end
local InstancesLength = Parse(InstanceFMT)
local Instances = {}
local NoParent = {}
for i = 1,InstancesLength do
local ClassName = Values[Parse(ValueFMT)]
local obj
local MeshPartMesh,MeshPartScale
if ClassName == "UnionOperation" then
obj = DecodeUnion(Values,Flags,Parse)
obj.UsePartColor = true
elseif ClassName:find("Script") then
obj = Instance.new("Folder")
Script(obj,ClassName=='ModuleScript')
elseif ClassName == "MeshPart" then
obj = Instance.new("Part")
MeshPartMesh = Instance.new("SpecialMesh")
MeshPartMesh.MeshType = Enum.MeshType.FileMesh
MeshPartMesh.Parent = obj
else
obj = Instance.new(ClassName)
end
local Parent = Instances[Parse(InstanceFMT)]
local PropertiesLength = Parse(PropertyLengthFMT)
local AttributesLength = Parse(PropertyLengthFMT)
Instances[i] = obj
for i = 1,PropertiesLength do
local Prop,Value = Values[Parse(ValueFMT)],Values[Parse(ValueFMT)]
-- ok this looks awful
if MeshPartMesh then
if Prop == "MeshId" then
MeshPartMesh.MeshId = Value
continue
elseif Prop == "TextureID" then
MeshPartMesh.TextureId = Value
continue
elseif Prop == "Size" then
if not MeshPartScale then
MeshPartScale = Value
else
MeshPartMesh.Scale = Value / MeshPartScale
end
elseif Prop == "MeshSize" then
if not MeshPartScale then
MeshPartScale = Value
MeshPartMesh.Scale = obj.Size / Value
else
MeshPartMesh.Scale = MeshPartScale / Value
end
continue
end
end
obj[Prop] = Value
end
if MeshPartMesh then
if MeshPartMesh.MeshId=='' then
if MeshPartMesh.TextureId=='' then
MeshPartMesh.TextureId = 'rbxasset://textures/meshPartFallback.png'
end
MeshPartMesh.Scale = obj.Size
end
end
for i = 1,AttributesLength do
obj:SetAttribute(Values[Parse(ValueFMT)],Values[Parse(ValueFMT)])
end
if not Parent then
table.insert(NoParent,obj)
else
obj.Parent = Parent
end
end
local ConnectionsLength = Parse(ConnectionFMT)
for i = 1,ConnectionsLength do
local a,b,c = Parse(InstanceFMT),Parse(ValueFMT),Parse(InstanceFMT)
Instances[a][Values[b]] = Instances[c]
end
return NoParent
end
local Objects = Decode('AACLIQVNb2RlbCEETmFtZSEFcGxvdHMhCldvcmxkUGl2b3QEe3x9IQRQYXJ0IQEzIQhBbmNob3JlZCIhDUJvdHRvbVN1cmZhY2UDAAAAAAAAAAAhBkNGcmFtZQQRfH0hCE1hdGVyaWFsAwAAAAAAgIlAIQhQb3NpdGlvbgoAAOpCzcxMPgAA+sIhBFNpemUKAABgQwAA'
..'gD8AAGBDIQpUb3BTdXJmYWNlIQNidXkEfn99IQpCcmlja0NvbG9yB8AABB+AfSEFQ29sb3IGaUAoAwAAAAAAgIBAIQtPcmllbnRhdGlvbgoAAAAAAACgQgAAAAAKhzPcQGZmRkB6GmjBIQhSb3RhdGlvbgrNzMw+mpmZQM3MTD4hCk1hbnVhbFdlbGQhGVBhcnQtdG8t'
..'UGFydCBTdHJvbmcgSm9pbnQhAkMwBIGCfSECQzEEg4J9IQVQYXJ0MCEFUGFydDEhElBhcnQgVGVycmFpbiBKb2ludAQsgH0K+eXVQGZmhkC/qGjBCgAAgEDNzAxAzcxMPiEZUGFydC10by1UZXh0IFN0cm9uZyBKb2ludASEgn0EhYZ9IQRUZXh0IQtCYWNrU3VyZmFj'
..'ZQMA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KMxcYDHQaGzUzNjMOHB0eEHU4MyAeEjkUMzotAQA7PD0uDAA+CT9AQUISQ0RFMXZHQEgJSUpLTE0LTglPLQAAUDACAAJRUlMG'
..'AQcACAkKCwx3DngQeRJ6FAsUBSgEBSkHBikECCgHCCkJESgQESkTEikQFCgTFCkVHSgcHSkfHikcICgfICkhKSgoKSkrKikoLCgrLCkt')
for _,obj in pairs(Objects) do
obj.Parent = script or workspace
end
local plots =Objects[1]
plots:PivotTo(CFrame.new(0, 0.2, 0))
local plotOwners = {}
for i,v in next, plots:GetDescendants() do
if v:IsA("ProximityPrompt") then
v.ActionText = "Buy"
v.ObjectText = "(Accept NLS request)"
local db = false
local text = v.Parent.SurfaceGui.TextBox.Text
v.Triggered:Connect(function(p)
if db then
return
end
v.Parent.SurfaceGui.TextBox.Text = "being bought..."
local accepted = Instance.new("RemoteEvent", p.PlayerGui)
NLS([[script.Parent:FireServer()
task.wait(3)
-- Gui to Lua
-- Version: 3.2
-- Instances:
local shop_toggle = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
local ImageLabel = Instance.new("ImageLabel")
local shop = Instance.new("Frame")
local UICorner_2 = Instance.new("UICorner")
local search = Instance.new("TextBox")
local UICorner_3 = Instance.new("UICorner")
local scroll = Instance.new("Frame")
local UICorner_4 = Instance.new("UICorner")
local contents = Instance.new("ScrollingFrame")
local UIGridLayout = Instance.new("UIGridLayout")
local BasicConveyor = Instance.new("TextButton")
local UICorner_5 = Instance.new("UICorner")
local TextBox = Instance.new("TextBox")
local ImageLabel_2 = Instance.new("ImageLabel")
local BasicIronMine = Instance.new("TextButton")
local UICorner_6 = Instance.new("UICorner")
local TextBox_2 = Instance.new("TextBox")
local ImageLabel_3 = Instance.new("ImageLabel")
local buydata = Instance.new("Frame")
local UICorner_7 = Instance.new("UICorner")
local icon = Instance.new("ImageLabel")
local text = Instance.new("TextBox")
local amount = Instance.new("TextBox")
local UICorner_8 = Instance.new("UICorner")
local buy = Instance.new("TextButton")
local UICorner_9 = Instance.new("UICorner")
-- Gui to Lua
-- Version: 3.2
-- Instances:
local TextBoxxx = Instance.new("TextBox")
local TextBoxxx_2 = Instance.new("TextBox")
--Properties:
TextBoxxx.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
TextBoxxx.Position = UDim2.new(0, 0, 1, -53)
TextBoxxx.Size = UDim2.new(0, 200, 0, 23)
TextBoxxx.ClearTextOnFocus = false
TextBoxxx.Font = Enum.Font.SourceSans
TextBoxxx.Text = "x/owner.PlayerGui.da_shop:Destroy()"
TextBoxxx.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBoxxx.TextSize = 14.000
TextBoxxx_2.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
TextBoxxx_2.Position = UDim2.new(0, 200, 1, -53)
TextBoxxx_2.Size = UDim2.new(0, 236, 0, 23)
TextBoxxx_2.ClearTextOnFocus = false
TextBoxxx_2.Font = Enum.Font.SourceSans
TextBoxxx_2.Text = "copy and paste the code to delete the shop ui"
TextBoxxx_2.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBoxxx_2.TextSize = 14.000
--Properties:
Instance.new("ScreenGui", owner.PlayerGui).Name = "da_shop"
ScreenGui = owner.PlayerGui:WaitForChild("da_shop")
TextBoxxx.Parent = ScreenGui
TextBoxxx_2.Parent = ScreenGui
shop_toggle.Name = "shop_toggle"
shop_toggle.Parent = ScreenGui
shop_toggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
shop_toggle.Position = UDim2.new(0.0109999999, 0, 0.713, 0)
shop_toggle.Size = UDim2.new(0, 200, 0, 45)
shop_toggle.Font = Enum.Font.FredokaOne
shop_toggle.Text = " Shop"
shop_toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
shop_toggle.TextScaled = true
shop_toggle.TextSize = 14.000
shop_toggle.TextWrapped = true
UICorner.CornerRadius = UDim.new(0, 12)
UICorner.Parent = shop_toggle
ImageLabel.Parent = shop_toggle
ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageLabel.BackgroundTransparency = 1.000
ImageLabel.Position = UDim2.new(0.0299999993, 0, 0, 0)
ImageLabel.Size = UDim2.new(0.200000003, 0, 1, 0)
ImageLabel.Image = "rbxassetid://8673957026"
ImageLabel.ScaleType = Enum.ScaleType.Fit
shop.Name = "shop"
shop.Parent = ScreenGui
shop.AnchorPoint = Vector2.new(1, 1)
shop.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
shop.Position = UDim2.new(1, 0, 1, 0)
shop.Size = UDim2.new(0, 430, 0, 422)
UICorner_2.CornerRadius = UDim.new(0, 12)
UICorner_2.Parent = shop
search.Name = "search"
search.Parent = shop
search.AnchorPoint = Vector2.new(0.5, 0.5)
search.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
search.Position = UDim2.new(0.5, 0, 0.0831901655, 0)
search.Size = UDim2.new(0.900000155, 0, 0.0815951005, 0)
search.Font = Enum.Font.FredokaOne
search.PlaceholderText = "Search here..."
search.Text = ""
search.TextColor3 = Color3.fromRGB(255, 255, 255)
search.TextScaled = true
search.TextSize = 14.000
search.TextWrapped = true
UICorner_3.CornerRadius = UDim.new(0, 12)
UICorner_3.Parent = search
scroll.Name = "scroll"
scroll.Parent = shop
scroll.AnchorPoint = Vector2.new(0.5, 0.5)
scroll.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
scroll.ClipsDescendants = true
scroll.Position = UDim2.new(0.5, 0, 0.558282197, 0)
scroll.Size = UDim2.new(0.900000036, 0, 0.814110398, 0)
UICorner_4.CornerRadius = UDim.new(0, 12)
UICorner_4.Parent = scroll
contents.Name = "contents"
contents.Parent = scroll
contents.AnchorPoint = Vector2.new(0.5, 0.5)
contents.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
contents.BorderSizePixel = 0
contents.ClipsDescendants = false
contents.Position = UDim2.new(0.5, 0, 0.5, 0)
contents.Selectable = false
contents.Size = UDim2.new(0.949999988, 0, 0.949999988, 0)
contents.ScrollBarThickness = 6
UIGridLayout.Parent = contents
UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
BasicConveyor.Name = "Basic Conveyor"
BasicConveyor.Parent = contents
BasicConveyor.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
BasicConveyor.Position = UDim2.new(0.010590015, 0, 0.713305891, 0)
BasicConveyor.Size = UDim2.new(0.151285931, 0, 0.0631001368, 0)
BasicConveyor.AutoButtonColor = false
BasicConveyor.Font = Enum.Font.FredokaOne
BasicConveyor.Text = ""
BasicConveyor.TextColor3 = Color3.fromRGB(255, 255, 255)
BasicConveyor.TextScaled = true
BasicConveyor.TextSize = 14.000
BasicConveyor.TextWrapped = true
UICorner_5.CornerRadius = UDim.new(0, 12)
UICorner_5.Parent = BasicConveyor
TextBox.Parent = BasicConveyor
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox.BackgroundTransparency = 1.000
TextBox.Position = UDim2.new(0.0700000003, 0, 0.800000012, 0)
TextBox.Size = UDim2.new(0.860000014, 0, 0.200000003, 0)
TextBox.ClearTextOnFocus = false
TextBox.Font = Enum.Font.FredokaOne
TextBox.Text = "Basic Conveyor"
TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBox.TextScaled = true
TextBox.TextSize = 14.000
TextBox.TextWrapped = true
ImageLabel_2.Parent = BasicConveyor
ImageLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageLabel_2.BackgroundTransparency = 1.000
ImageLabel_2.Position = UDim2.new(0, 0, 0.0799999982, 0)
ImageLabel_2.Size = UDim2.new(1, 0, 0.640000105, 0)
ImageLabel_2.Image = "rbxassetid://205555141"
ImageLabel_2.ScaleType = Enum.ScaleType.Fit
BasicIronMine.Name = "Basic Iron Mine"
BasicIronMine.Parent = contents
BasicIronMine.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
BasicIronMine.Position = UDim2.new(0.010590015, 0, 0.713305891, 0)
BasicIronMine.Size = UDim2.new(0.151285931, 0, 0.0631001368, 0)
BasicIronMine.AutoButtonColor = false
BasicIronMine.Font = Enum.Font.FredokaOne
BasicIronMine.Text = ""
BasicIronMine.TextColor3 = Color3.fromRGB(255, 255, 255)
BasicIronMine.TextScaled = true
BasicIronMine.TextSize = 14.000
BasicIronMine.TextWrapped = true
UICorner_6.CornerRadius = UDim.new(0, 12)
UICorner_6.Parent = BasicIronMine
TextBox_2.Parent = BasicIronMine
TextBox_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox_2.BackgroundTransparency = 1.000
TextBox_2.Position = UDim2.new(0.0700000003, 0, 0.800000012, 0)
TextBox_2.Size = UDim2.new(0.860000014, 0, 0.200000003, 0)
TextBox_2.ClearTextOnFocus = false
TextBox_2.Font = Enum.Font.FredokaOne
TextBox_2.Text = "Basic Iron Mine"
TextBox_2.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBox_2.TextScaled = true
TextBox_2.TextSize = 14.000
TextBox_2.TextWrapped = true
ImageLabel_3.Parent = BasicIronMine
ImageLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageLabel_3.BackgroundTransparency = 1.000
ImageLabel_3.Position = UDim2.new(0, 0, 0.0799999982, 0)
ImageLabel_3.Size = UDim2.new(1, 0, 0.640000105, 0)
ImageLabel_3.Image = "rbxassetid://4556992035"
ImageLabel_3.ScaleType = Enum.ScaleType.Fit
buydata.Name = "buydata"
buydata.Parent = scroll
buydata.AnchorPoint = Vector2.new(0.5, 0.5)
buydata.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
buydata.Position = UDim2.new(0.49999997, 0, 0.849678338, 0)
buydata.Size = UDim2.new(1.00000012, 0, 0.300643325, 0)
buydata.Visible = false
UICorner_7.CornerRadius = UDim.new(0, 12)
UICorner_7.Parent = buydata
icon.Name = "icon"
icon.Parent = buydata
icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
icon.BackgroundTransparency = 1.000
icon.Position = UDim2.new(0, 0, 0.0800000802, 0)
icon.Size = UDim2.new(0.258398056, 0, 0.83684504, 0)
icon.Image = "rbxassetid://205555141"
icon.ScaleType = Enum.ScaleType.Fit
text.Name = "text"
text.Parent = buydata
text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
text.BackgroundTransparency = 1.000
text.Position = UDim2.new(0.256000012, 0, 0.699999988, 0)
text.Size = UDim2.new(0.663617671, 0, 0.200000003, 0)
text.ClearTextOnFocus = false
text.Font = Enum.Font.FredokaOne
text.Text = "Basic Conveyor"
text.TextColor3 = Color3.fromRGB(255, 255, 255)
text.TextScaled = true
text.TextSize = 14.000
text.TextWrapped = true
text.TextXAlignment = Enum.TextXAlignment.Left
amount.Name = "amount"
amount.Parent = buydata
amount.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
amount.Position = UDim2.new(0.283398151, 0, 0.157823786, 0)
amount.Size = UDim2.new(0.691426039, 0, 0.200000003, 0)
amount.ClearTextOnFocus = false
amount.Font = Enum.Font.FredokaOne
amount.PlaceholderText = "Amount to buy"
amount.Text = ""
amount.TextColor3 = Color3.fromRGB(255, 255, 255)
amount.TextScaled = true
amount.TextSize = 14.000
amount.TextWrapped = true
UICorner_8.CornerRadius = UDim.new(0, 12)
UICorner_8.Parent = amount
buy.Name = "buy"
buy.Parent = buydata
buy.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
buy.Position = UDim2.new(0.282317817, 0, 0.422548354, 0)
buy.Size = UDim2.new(0, 268, 0, 21)
buy.Font = Enum.Font.FredokaOne
buy.Text = "Buy"
buy.TextColor3 = Color3.fromRGB(255, 255, 255)
buy.TextScaled = true
buy.TextSize = 14.000
buy.TextWrapped = true
UICorner_9.CornerRadius = UDim.new(0, 12)
UICorner_9.Parent = buy
sfx0 = Instance.new("Sound")
sfx0.MaxDistance = 10000
sfx0.Volume = 0.5
sfx0.TimePosition = 0
sfx0.Looped = false
sfx0.PlayOnRemove = false
sfx0.Pitch = 1
sfx0.Name = "sfx"
sfx0.SoundId = "rbxassetid://7112275565"
sfx0.MinDistance = 10
sfx0.Parent = script
-- Scripts:
local function UYXMYT_fake_script() -- ScreenGui.LocalScript
local script = Instance.new('LocalScript', ScreenGui)
local shop = script.Parent:WaitForChild("shop")
local toggle = script.Parent:WaitForChild("shop_toggle")
toggle.MouseButton1Down:Connect(function()
shop.Visible = not shop.Visible
end)
for i,v in next, shop.scroll.contents:GetChildren() do
if v:IsA("TextButton") then
v.MouseButton1Down:Connect(function()
shop.scroll.buydata.text.Text = v.Name
shop.scroll.buydata.icon.Image = v.ImageLabel.Image
shop.scroll.buydata.amount.Text = ""
shop.scroll.buydata.Visible = true
end)
end
end
shop.scroll.buydata.buy.MouseButton1Down:Connect(function()
sfx0:Play()
workspace:FindFirstChild("buy_remote_"..owner.UserId, true):FireServer(shop.scroll.buydata.text.Text, tonumber(shop.scroll.buydata.amount.Text) or 1)
end)
end
coroutine.wrap(UYXMYT_fake_script)()
]], accepted)
local done = false
accepted.OnServerEvent:Connect(function()
done = true
end)
task.wait(3)
if done then
v.sfx:Play()
local buy = Instance.new("RemoteEvent", script)
buy.Name = "buy_remote_"..p.UserId
buy.OnServerEvent:Connect(function(plr, name, amount)
for i = 1, amount do
end
end)
v.Parent.SurfaceGui.TextBox.Text = p.Name.."'s plot"
v:Destroy()
else
db = false
v.Parent.SurfaceGui.TextBox.Text = text
end
end)
end
end