Upscalefanatic3

DAYZ Script GUI

Jun 30th, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. local ItemStorage = game:GetService('Lighting').assets.items
  2. local Items = workspace.targetFilter.ignore.items
  3. local Players = game:GetService('Players')
  4. local Player = Players.LocalPlayer
  5. local ScreenGui = Instance.new('ScreenGui',game.CoreGui)
  6. local Draggable = Instance.new('TextButton',ScreenGui)
  7. local Frame = Instance.new('Frame',Draggable)
  8. local Item = Instance.new('TextBox',Frame)
  9. local Amount = Instance.new('TextBox',Frame)
  10. local Spawn = Instance.new('TextButton',Frame)
  11. Draggable.Size = UDim2.new(0,300,0,13)
  12. Draggable.Position = UDim2.new(0,150,0,150)
  13. Draggable.BackgroundColor3 = Color3.new(0,0,0)
  14. Draggable.Text = 'Spawn Gui'
  15. Draggable.TextColor3 = Color3.new(1,1,1)
  16. Draggable.BorderColor3 = Color3.new(1,1,1)
  17. Draggable.Draggable = true
  18. Frame.Size = UDim2.new(1,0,0,30)
  19. Frame.BackgroundTransparency = 1
  20. Frame.Position = UDim2.new(0,0,0,14)
  21. Item.Text = 'Item'
  22. Item.Size = UDim2.new(0,100,0,30)
  23. Item.BorderColor3 = Color3.new(1,1,1)
  24. Item.BackgroundColor3 = Color3.new(0,0,0)
  25. Item.TextColor3 = Color3.new(1,1,1)
  26. Amount.Text = 'Amount'
  27. Amount.BorderColor3 = Color3.new(1,1,1)
  28. Amount.TextColor3 = Color3.new(1,1,1)
  29. Amount.BackgroundColor3 = Color3.new(0,0,0)
  30. Amount.Position = UDim2.new(0,100,0,0)
  31. Amount.Size = UDim2.new(0,100,0,30)
  32. Spawn.Text = 'Spawn'
  33. Spawn.BorderColor3 = Color3.new(1,1,1)
  34. Spawn.TextColor3 = Color3.new(1,1,1)
  35. Spawn.BackgroundColor3 = Color3.new(0,0,0)
  36. Spawn.Position = UDim2.new(0,200,0,0)
  37. Spawn.Size = UDim2.new(0,100,0,30)
  38. Spawn.MouseButton1Down:connect(function()
  39. for i,v in pairs(ItemStorage:GetChildren()) do
  40. if string.match(v.Name:lower(),'item'..Item.Text:lower()) then
  41. for i=1, tonumber(Amount.Text) do
  42. local x = v:Clone()
  43. x.Parent = Items
  44. x:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(math.random(-15,15),0,math.random(-15,15)))
  45. for _,part in pairs(x:GetChildren()) do
  46. if part:IsA'BasePart' then
  47. part.Anchored = true
  48. end
  49. end
  50. end
  51. end
  52. end
  53. end)
Add Comment
Please, Sign In to add comment