Advertisement
erfecdwxsthgevfcd

Untitled

Jan 20th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9. local TextButton_2 = Instance.new("TextButton")
  10.  
  11. --Properties:
  12.  
  13. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  17. Frame.Position = UDim2.new(0.213683218, 0, 0.258064508, 0)
  18. Frame.Size = UDim2.new(0, 325, 0, 239)
  19.  
  20. TextButton.Parent = Frame
  21. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  22. TextButton.Position = UDim2.new(0.0521606207, 0, 0.392845005, 0)
  23. TextButton.Size = UDim2.new(0, 104, 0, 67)
  24. TextButton.Font = Enum.Font.SourceSans
  25. TextButton.Text = "Brick"
  26. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  27. TextButton.TextSize = 14.000
  28.  
  29. TextButton_2.Parent = Frame
  30. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  31. TextButton_2.Position = UDim2.new(0.609230757, 0, 0.389121324, 0)
  32. TextButton_2.Size = UDim2.new(0, 104, 0, 64)
  33. TextButton_2.Font = Enum.Font.SourceSans
  34. TextButton_2.Text = "Ball"
  35. TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  36. TextButton_2.TextSize = 14.000
  37.  
  38. -- Scripts:
  39.  
  40. local function MZCSLQN_fake_script() -- TextButton.Script
  41. local script = Instance.new('Script', TextButton)
  42.  
  43. frame = script.Parent.Parent.Parent
  44. me = Frame.Parent.Parent
  45. button = script.Parent
  46. frame = button.Parent
  47.  
  48. function onClick(mouse)
  49. dellbrick = Instance.new("Part")
  50. dellbrick.Parent = game.Workspace
  51. dellbrick.Name = "ImaginaryBrick"
  52. dellbrick.Size = Vector3.new(2,1,4)
  53. dellbrick.Position = me.Character.Head.Position
  54. dellbrick.Anchored = true
  55. dellbrick.CanCollide = true
  56. dellbrick.Locked = false
  57. dellbrick.Transparency = 0
  58. dellbrick.Reflectance = 0
  59. dellbrick.BrickColor = BrickColor.Black()
  60. end
  61.  
  62.  
  63. script.Parent.MouseButton1Down:connect(onClick)
  64. end
  65. coroutine.wrap(MZCSLQN_fake_script)()
  66. local function GCZJYDB_fake_script() -- TextButton_2.Script
  67. local script = Instance.new('Script', TextButton_2)
  68.  
  69. frame = script.Parent.Parent.Parent
  70. me = frame.Parent.Parent
  71. button = script.Parent
  72. frame = button.Parent
  73.  
  74. function onClick(mouse)
  75. dellbrick = Instance.new("Part")
  76. dellbrick.Parent = game.Workspace
  77. dellbrick.Name = "ImaginaryBrick"
  78. dellbrick.Shape = "Ball"
  79. dellbrick.Size = Vector3.new(5,0.4,5)
  80. dellbrick.Position = me.Character.Head.Position
  81. dellbrick.Anchored = true
  82. dellbrick.CanCollide = true
  83. dellbrick.Locked = false
  84. dellbrick.Transparency = 0
  85. dellbrick.Reflectance = 0
  86. dellbrick.BrickColor = BrickColor.Black()
  87. end
  88.  
  89.  
  90.  
  91. script.Parent.MouseButton1Down:connect(onClick)
  92. end
  93. coroutine.wrap(GCZJYDB_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement