Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().ev = ev or {}
- ev.Do = false
- wait(.000000001)
- ev.Do = true
- function getPlayerTycoon()
- for _,obj in pairs(workspace.Tycoons:GetChildren()) do
- if obj.Factory.Player.Value == game.Players.LocalPlayer then return obj.Factory end
- end
- end
- local tyc = getPlayerTycoon()
- function makePurchaseandSell()
- workspace.Events.ItemPurchase:InvokeServer(0,'cgz',0)
- workspace.Events.Building.PlaceObject:FireServer({workspace.Furniture.Counter5, "Normal", Vector3.new(-76, 3.4, 216), 270, "cgz"}, true)
- workspace.Events.Building.RemoveFurniture:InvokeServer(tyc.PlacedItems.Finished.Counter5, 3, true)
- end
- while ev.Do and wait() do makePurchaseandSell() end
Add Comment
Please, Sign In to add comment