Zappydev

Part Spawner simple script

Jan 23rd, 2025
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. local G2L = {};
  2.  
  3.  
  4. G2L["1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
  5. G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
  6.  
  7.  
  8.  
  9. G2L["2"] = Instance.new("Frame", G2L["1"]);
  10. G2L["2"]["BorderSizePixel"] = 0;
  11. G2L["2"]["BackgroundColor3"] = Color3.fromRGB(0, 0, 0);
  12. G2L["2"]["Size"] = UDim2.new(0, 262, 0, 74);
  13. G2L["2"]["Position"] = UDim2.new(0.01511, 0, 0.80087, 0);
  14. G2L["2"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  15. G2L["2"]["Name"] = [[SpawnBricksMenu]];
  16.  
  17.  
  18.  
  19. G2L["3"] = Instance.new("TextButton", G2L["2"]);
  20. G2L["3"]["TextWrapped"] = true;
  21. G2L["3"]["BorderSizePixel"] = 0;
  22. G2L["3"]["TextSize"] = 14;
  23. G2L["3"]["TextColor3"] = Color3.fromRGB(0, 0, 0);
  24. G2L["3"]["TextScaled"] = true;
  25. G2L["3"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  26. G2L["3"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  27. G2L["3"]["Size"] = UDim2.new(0, 200, 0, 50);
  28. G2L["3"]["Name"] = [[Spawn]];
  29. G2L["3"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  30. G2L["3"]["Text"] = [[Spawn Brick (Loops)]];
  31. G2L["3"]["Position"] = UDim2.new(0.11832, 0, 0.16216, 0);
  32.  
  33.  
  34.  
  35. G2L["4"] = Instance.new("LocalScript", G2L["3"]);
  36.  
  37.  
  38.  
  39. local function C_4()
  40. local script = G2L["4"];
  41. local button = script.Parent
  42. local TPartSp = false
  43.  
  44. local function SpawnPartSp()
  45. if TPartSp ~= true then
  46. TPartSp = true
  47. Instance.new("Part")
  48. else
  49. TPartSp = false
  50. end
  51. end
  52. button.MouseButton1Click:Connect(SpawnPartSp)
  53. end;
  54. task.spawn(C_4);
  55.  
  56. return G2L["1"], require;
Advertisement
Add Comment
Please, Sign In to add comment