Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PartZone = workspace:WaitForChild("DoorZones"):WaitForChild("ZoneA")
- local Price = 5
- local player = script.Parent.Parent.Parent.Parent.Parent.Parent
- script.Parent.MouseButton1Click:Connect(function()
- if player.leaderstats.Money.Value >= Price then
- player.leaderstats.Money.Value = player.leaderstats.Money.Value - Price
- PartZone:Destroy()
- player.Zone.Zones.Value = player.Zone.Zones.Value + 1
- script.Parent.Parent:TweenPosition(UDim2.new(0.5,0,1.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,1,true)
- wait(1)
- script.Parent.Parent.Parent:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement