Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LandArt = Instance.new("ScreenGui")
- local Main = Instance.new("ImageLabel")
- local Bar = Instance.new("ImageLabel")
- local Tab = Instance.new("ImageButton")
- local Title = Instance.new("TextLabel")
- local Box = Instance.new("ScrollingFrame")
- local back = Instance.new("ImageLabel")
- local Swastika = Instance.new("TextButton")
- local back_2 = Instance.new("ImageLabel")
- local Penis = Instance.new("TextButton")
- local back_3 = Instance.new("ImageLabel")
- local Cru = Instance.new("TextButton")
- local back_4 = Instance.new("ImageLabel")
- local Cross = Instance.new("TextButton")
- local back_5 = Instance.new("ImageLabel")
- local Target = Instance.new("TextButton")
- local back_6 = Instance.new("ImageLabel")
- local Sword = Instance.new("TextButton")
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- Main:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),'Out','Linear',0.08,true)
- end
- Bar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = Main.Position
- repeat wait() until input.UserInputState == Enum.UserInputState.End
- dragging = false
- end
- end)
- Bar.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- local newtween = function(obj,props,speed,...)
- local info = TweenInfo.new(speed,...);
- local tween = game:GetService("TweenService"):Create(obj,info,props);
- return tween:Play();
- end;
- LandArt.Name = "LandArt"
- LandArt.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = LandArt
- Main.BackgroundColor3 = Color3.new(1, 1, 1)
- Main.BackgroundTransparency = 1
- Main.BorderSizePixel = 0
- Main.ClipsDescendants = true
- Main.Position = UDim2.new(0.42480886, 0, 0.164619163, 0)
- Main.Size = UDim2.new(0, 176, 0, 201)
- Main.Image = "rbxassetid://3448254722"
- Main.ImageColor3 = Color3.new(0.937255, 0.937255, 0.937255)
- Main.ScaleType = Enum.ScaleType.Slice
- Main.SliceCenter = Rect.new(16, 16, 284, 284)
- Bar.Name = "Bar"
- Bar.Parent = Main
- Bar.BackgroundColor3 = Color3.new(0.341176, 0.294118, 1)
- Bar.BackgroundTransparency = 1
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(0, 0, 0, -1)
- Bar.Size = UDim2.new(1, 0, 0, 40)
- Bar.Image = "rbxassetid://3448498647"
- Bar.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- Bar.ScaleType = Enum.ScaleType.Slice
- Bar.SliceCenter = Rect.new(16, 16, 284, 284)
- Tab.Name = "Tab"
- Tab.Parent = Bar
- Tab.BackgroundColor3 = Color3.new(1, 1, 1)
- Tab.BackgroundTransparency = 1
- Tab.BorderSizePixel = 0
- Tab.Position = UDim2.new(0.781000018, 0, 0.170000002, 0)
- Tab.Size = UDim2.new(0, 30, 0, 30)
- Tab.Image = "rbxassetid://3443997946"
- Title.Name = "Title"
- Title.Parent = Bar
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0.0454545543, 0, 0, 0)
- Title.Size = UDim2.new(0.501231134, 0, 1, 0)
- Title.Font = Enum.Font.GothamSemibold
- Title.Text = "Preset Art"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 16
- Box.Name = "Box"
- Box.Parent = Main
- Box.BackgroundColor3 = Color3.new(1, 1, 1)
- Box.BackgroundTransparency = 0.99000000953674
- Box.BorderSizePixel = 0
- Box.Position = UDim2.new(0, 9,0, 42)
- Box.Selectable = false
- Box.Size = UDim2.new(0, 160,0, 153)
- Box.CanvasSize = UDim2.new(0, 0, 1.24000001, 0)
- Box.ScrollBarThickness = 0
- Box.ZIndex = 2
- Box.ClipsDescendants = true
- back.Name = "back"
- back.Parent = Box
- back.BackgroundColor3 = Color3.new(1, 1, 1)
- back.BackgroundTransparency = 1
- back.BorderSizePixel = 0
- back.Size = UDim2.new(0, 158, 0, 38)
- back.Image = "rbxassetid://3448875532"
- back.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- back.ScaleType = Enum.ScaleType.Slice
- back.SliceCenter = Rect.new(10, 10, 290, 290)
- Swastika.Name = "Swastika"
- Swastika.Parent = back
- Swastika.BackgroundColor3 = Color3.new(1, 1, 1)
- Swastika.BackgroundTransparency = 1
- Swastika.BorderSizePixel = 0
- Swastika.Size = UDim2.new(0, 158, 0, 38)
- Swastika.Font = Enum.Font.GothamSemibold
- Swastika.Text = "Swastika"
- Swastika.TextColor3 = Color3.new(1, 1, 1)
- Swastika.TextSize = 16
- back_2.Name = "back"
- back_2.Parent = Box
- back_2.BackgroundColor3 = Color3.new(1, 1, 1)
- back_2.BackgroundTransparency = 1
- back_2.BorderSizePixel = 0
- back_2.Position = UDim2.new(0, 0, 0, 42)
- back_2.Size = UDim2.new(0, 158, 0, 38)
- back_2.Image = "rbxassetid://3448875532"
- back_2.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- back_2.ScaleType = Enum.ScaleType.Slice
- back_2.SliceCenter = Rect.new(10, 10, 290, 290)
- Penis.Name = "Penis"
- Penis.Parent = back_2
- Penis.BackgroundColor3 = Color3.new(1, 1, 1)
- Penis.BackgroundTransparency = 1
- Penis.BorderSizePixel = 0
- Penis.Size = UDim2.new(0, 158, 0, 38)
- Penis.Font = Enum.Font.GothamSemibold
- Penis.Text = "Penis"
- Penis.TextColor3 = Color3.new(1, 1, 1)
- Penis.TextSize = 16
- back_3.Name = "back"
- back_3.Parent = Box
- back_3.BackgroundColor3 = Color3.new(1, 1, 1)
- back_3.BackgroundTransparency = 1
- back_3.BorderSizePixel = 0
- back_3.Position = UDim2.new(0, 0, 0, 84)
- back_3.Size = UDim2.new(0, 158, 0, 38)
- back_3.Image = "rbxassetid://3448875532"
- back_3.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- back_3.ScaleType = Enum.ScaleType.Slice
- back_3.SliceCenter = Rect.new(10, 10, 290, 290)
- Cru.Name = "Cru"
- Cru.Parent = back_3
- Cru.BackgroundColor3 = Color3.new(1, 1, 1)
- Cru.BackgroundTransparency = 1
- Cru.BorderSizePixel = 0
- Cru.Size = UDim2.new(0, 158, 0, 38)
- Cru.Font = Enum.Font.GothamSemibold
- Cru.Text = "Crucifix"
- Cru.TextColor3 = Color3.new(1, 1, 1)
- Cru.TextSize = 16
- back_4.Name = "back"
- back_4.Parent = Box
- back_4.BackgroundColor3 = Color3.new(1, 1, 1)
- back_4.BackgroundTransparency = 1
- back_4.BorderSizePixel = 0
- back_4.Position = UDim2.new(0, 0, 0, 126)
- back_4.Size = UDim2.new(0, 158, 0, 38)
- back_4.Image = "rbxassetid://3448875532"
- back_4.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- back_4.ScaleType = Enum.ScaleType.Slice
- back_4.SliceCenter = Rect.new(10, 10, 290, 290)
- Cross.Name = "Cross"
- Cross.Parent = back_4
- Cross.BackgroundColor3 = Color3.new(1, 1, 1)
- Cross.BackgroundTransparency = 1
- Cross.BorderSizePixel = 0
- Cross.Size = UDim2.new(0, 158, 0, 38)
- Cross.Font = Enum.Font.GothamSemibold
- Cross.Text = "Corss (X)"
- Cross.TextColor3 = Color3.new(1, 1, 1)
- Cross.TextSize = 16
- back_5.Name = "back"
- back_5.Parent = Box
- back_5.BackgroundColor3 = Color3.new(1, 1, 1)
- back_5.BackgroundTransparency = 1
- back_5.BorderSizePixel = 0
- back_5.Position = UDim2.new(0, 0, 0, 168)
- back_5.Size = UDim2.new(0, 158, 0, 38)
- back_5.Image = "rbxassetid://3448875532"
- back_5.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- back_5.ScaleType = Enum.ScaleType.Slice
- back_5.SliceCenter = Rect.new(10, 10, 290, 290)
- Target.Name = "Target"
- Target.Parent = back_5
- Target.BackgroundColor3 = Color3.new(1, 1, 1)
- Target.BackgroundTransparency = 1
- Target.BorderSizePixel = 0
- Target.Size = UDim2.new(0, 158, 0, 38)
- Target.Font = Enum.Font.GothamSemibold
- Target.Text = "Target"
- Target.TextColor3 = Color3.new(1, 1, 1)
- Target.TextSize = 16
- back_6.Name = "back"
- back_6.Parent = Box
- back_6.BackgroundColor3 = Color3.new(1, 1, 1)
- back_6.BackgroundTransparency = 1
- back_6.BorderSizePixel = 0
- back_6.Position = UDim2.new(0, 0, 0, 210)
- back_6.Size = UDim2.new(0, 158, 0, 38)
- back_6.Image = "rbxassetid://3448875532"
- back_6.ImageColor3 = Color3.new(1, 0.631373, 0.486275)
- back_6.ScaleType = Enum.ScaleType.Slice
- back_6.SliceCenter = Rect.new(10, 10, 290, 290)
- Sword.Name = "Sword"
- Sword.Parent = back_6
- Sword.BackgroundColor3 = Color3.new(1, 1, 1)
- Sword.BackgroundTransparency = 1
- Sword.BorderSizePixel = 0
- Sword.Size = UDim2.new(0, 158, 0, 38)
- Sword.Font = Enum.Font.GothamSemibold
- Sword.Text = "Sword"
- Sword.TextColor3 = Color3.new(1, 1, 1)
- Sword.TextSize = 16
- -- tab button
- local active = true
- Tab.MouseButton1Down:connect(function()
- if active then
- Main:TweenSize(UDim2.new(0,176,0,83), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true);
- Box.CanvasPosition = Vector2.new(0,0)
- for i = 1,6 do
- wait()
- Tab.Rotation = Tab.Rotation + 30
- end
- active = false
- else
- Main:TweenSize(UDim2.new(0,176,0,201), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true);
- for i = 1,6 do
- wait()
- Tab.Rotation = Tab.Rotation - 30
- end
- active = true
- end
- end)
- --fade buttons
- Swastika.MouseEnter:connect(function()
- newtween(back,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Swastika,{TextColor3 = Color3.fromRGB(255,164,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Swastika.MouseButton1Down:connect(function()
- newtween(back,{ImageColor3 = Color3.fromRGB(230,230,230)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Swastika,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- local Property;
- for _,UserProperty in pairs(workspace.Properties:GetChildren()) do
- if not UserProperty.Owner.Value then
- Property=UserProperty
- break
- end
- end
- game.Players.LocalPlayer.Character:MoveTo(Property.OriginSquare.Position)
- game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(Property,Property.OriginSquare.Position)
- wait(0.5)
- for __ba,a_ba in
- pairs(game:GetService("Workspace").Properties:GetChildren())do
- if a_ba:FindFirstChild("Owner")and
- a_ba.Owner.Value == game.Players.LocalPlayer then base=a_ba;square = a_ba.OriginSquare end end
- function makebase(__ba)
- local a_ba = game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty;a_ba:FireServer(base,__ba)end;spos=square.Position
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z+80))
- end)
- Swastika.MouseButton1Up:connect(function()
- newtween(back,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Swastika,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Swastika.MouseLeave:connect(function()
- newtween(back,{ImageColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Swastika,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- --
- Penis.MouseEnter:connect(function()
- newtween(back_2,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Penis,{TextColor3 = Color3.fromRGB(255,164,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Penis.MouseButton1Down:connect(function()
- newtween(back_2,{ImageColor3 = Color3.fromRGB(230,230,230)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Penis,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- local Property;
- for _,UserProperty in pairs(workspace.Properties:GetChildren()) do
- if not UserProperty.Owner.Value then
- Property=UserProperty
- break
- end
- end
- game.Players.LocalPlayer.Character:MoveTo(Property.OriginSquare.Position)
- game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(Property,Property.OriginSquare.Position)
- wait(0.5)
- for __ba,a_ba in
- pairs(game:GetService("Workspace").Properties:GetChildren())do
- if a_ba:FindFirstChild("Owner")and
- a_ba.Owner.Value==game.Players.LocalPlayer then base=a_ba;square=a_ba.OriginSquare end end
- function makebase(__ba)
- local a_ba=game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty;a_ba:FireServer(base,__ba)end;spos=square.Position
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+80))
- end)
- Penis.MouseButton1Up:connect(function()
- newtween(back_2,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Penis,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Penis.MouseLeave:connect(function()
- newtween(back_2,{ImageColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Penis,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- --
- Cru.MouseEnter:connect(function()
- newtween(back_3,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cru,{TextColor3 = Color3.fromRGB(255,164,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cru.MouseButton1Down:connect(function()
- newtween(back_3,{ImageColor3 = Color3.fromRGB(230,230,230)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cru,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- local Property;
- for _,UserProperty in pairs(workspace.Properties:GetChildren()) do
- if not UserProperty.Owner.Value then
- Property=UserProperty
- break
- end
- end
- game.Players.LocalPlayer.Character:MoveTo(Property.OriginSquare.Position)
- game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(Property,Property.OriginSquare.Position)
- wait(0.5)
- for __ba,a_ba in
- pairs(game:GetService("Workspace").Properties:GetChildren())do
- if a_ba:FindFirstChild("Owner")and
- a_ba.Owner.Value==game.Players.LocalPlayer then base=a_ba;square=a_ba.OriginSquare end end
- function makebase(__ba)
- local a_ba=game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty;a_ba:FireServer(base,__ba)end;spos=square.Position
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z+40))
- end)
- Cru.MouseButton1Up:connect(function()
- newtween(back_3,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cru,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cru.MouseLeave:connect(function()
- newtween(back_3,{ImageColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cru,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- --
- Cross.MouseEnter:connect(function()
- newtween(back_4,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cross,{TextColor3 = Color3.fromRGB(255,164,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cross.MouseButton1Down:connect(function()
- newtween(back_4,{ImageColor3 = Color3.fromRGB(230,230,230)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cross,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- local Property;
- for _,UserProperty in pairs(workspace.Properties:GetChildren()) do
- if not UserProperty.Owner.Value then
- Property=UserProperty
- break
- end
- end
- game.Players.LocalPlayer.Character:MoveTo(Property.OriginSquare.Position)
- game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(Property,Property.OriginSquare.Position)
- wait(0.5)
- for __ba,a_ba in
- pairs(game:GetService("Workspace").Properties:GetChildren())do
- if a_ba:FindFirstChild("Owner")and
- a_ba.Owner.Value==game.Players.LocalPlayer then base=a_ba;square=a_ba.OriginSquare end end
- function makebase(__ba)
- local a_ba=game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty;a_ba:FireServer(base,__ba)end;spos=square.Position
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-80))
- end)
- Cross.MouseButton1Up:connect(function()
- newtween(back_4,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cross,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cross.MouseLeave:connect(function()
- newtween(back_4,{ImageColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cross,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- --
- Target.MouseEnter:connect(function()
- newtween(back_5,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Target,{TextColor3 = Color3.fromRGB(255,164,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Target.MouseButton1Down:connect(function()
- newtween(back_5,{ImageColor3 = Color3.fromRGB(230,230,230)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Target,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- local Property;
- for _,UserProperty in pairs(workspace.Properties:GetChildren()) do
- if not UserProperty.Owner.Value then
- Property=UserProperty
- break
- end
- end
- game.Players.LocalPlayer.Character:MoveTo(Property.OriginSquare.Position)
- game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(Property,Property.OriginSquare.Position)
- wait(0.5)
- for __ba,a_ba in
- pairs(game:GetService("Workspace").Properties:GetChildren())do
- if a_ba:FindFirstChild("Owner")and
- a_ba.Owner.Value==game.Players.LocalPlayer then base=a_ba;square=a_ba.OriginSquare end end
- function makebase(__ba)
- local a_ba=game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty;a_ba:FireServer(base,__ba)end;spos=square.Position
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z-80))
- end)
- Target.MouseButton1Up:connect(function()
- newtween(back_5,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Target,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Target.MouseLeave:connect(function()
- newtween(back_5,{ImageColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Target,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- --
- Sword.MouseEnter:connect(function()
- newtween(back_6,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Sword,{TextColor3 = Color3.fromRGB(255,164,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Sword.MouseButton1Down:connect(function()
- newtween(back_6,{ImageColor3 = Color3.fromRGB(230,230,230)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Sword,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- local Property;
- for _,UserProperty in pairs(workspace.Properties:GetChildren()) do
- if not UserProperty.Owner.Value then
- Property=UserProperty
- break
- end
- end
- game.Players.LocalPlayer.Character:MoveTo(Property.OriginSquare.Position)
- game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(Property,Property.OriginSquare.Position)
- wait(0.5)
- for __ba,a_ba in
- pairs(game:GetService("Workspace").Properties:GetChildren())do
- if a_ba:FindFirstChild("Owner")and
- a_ba.Owner.Value==game.Players.LocalPlayer then base=a_ba;square=a_ba.OriginSquare end end
- function makebase(__ba)
- local a_ba=game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty;a_ba:FireServer(base,__ba)end;spos=square.Position
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+80))
- makebase(CFrame.new(spos.X+40,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z+40))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X,spos.Y,spos.Z-80))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z))
- makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-40))
- makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-80))
- end)
- Sword.MouseButton1Up:connect(function()
- newtween(back_6,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Sword,{TextColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Sword.MouseLeave:connect(function()
- newtween(back_6,{ImageColor3 = Color3.fromRGB(255,161,124)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Sword,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement