Advertisement
Guest User

SPARKLESGUI

a guest
Feb 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. --made by pex#1607
  2.  
  3. local SparklesGUI = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local credit = Instance.new("TextLabel")
  6. local MAIN = Instance.new("Frame")
  7. local PLAYERN = Instance.new("TextBox")
  8. local ONB = Instance.new("TextButton")
  9. local OFFB = Instance.new("TextButton")
  10.  
  11.  
  12.  
  13. SparklesGUI.Name = "SparklesGUI"
  14. SparklesGUI.Parent = game.CoreGui
  15.  
  16. Frame.Parent = SparklesGUI
  17. Frame.Active = true
  18. Frame.Draggable = true
  19. Frame.BackgroundColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  20. Frame.BorderColor3 = Color3.new(1, 0.411765, 0.411765)
  21. Frame.Position = UDim2.new(0.5, -103, 0.5, -10)
  22. Frame.Size = UDim2.new(0, 206, 0, 20)
  23.  
  24. credit.Name = "credit"
  25. credit.Parent = Frame
  26. credit.BackgroundColor3 = Color3.new(1, 1, 1)
  27. credit.BackgroundTransparency = 1
  28. credit.Size = UDim2.new(0, 206, 0, 20)
  29. credit.Font = Enum.Font.Highway
  30. credit.Text = "made by pex#1607"
  31. credit.TextColor3 = Color3.new(1, 0.411765, 0.411765)
  32. credit.TextScaled = true
  33. credit.TextSize = 14
  34. credit.TextWrapped = true
  35.  
  36. MAIN.Name = "MAIN"
  37. MAIN.Parent = Frame
  38. MAIN.BackgroundColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  39. MAIN.BorderColor3 = Color3.new(1, 0.411765, 0.411765)
  40. MAIN.Position = UDim2.new(0, 0, 0, 25)
  41. MAIN.Size = UDim2.new(0, 206, 0, 175)
  42.  
  43. PLAYERN.Name = "PLAYERN"
  44. PLAYERN.Parent = MAIN
  45. PLAYERN.BackgroundColor3 = Color3.new(1, 0.411765, 0.411765)
  46. PLAYERN.BorderColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  47. PLAYERN.Position = UDim2.new(0, 5, 0, 5)
  48. PLAYERN.Size = UDim2.new(0, 196, 0, 50)
  49. PLAYERN.Font = Enum.Font.Highway
  50. PLAYERN.Text = "PLAYERNAME"
  51. PLAYERN.TextColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  52. PLAYERN.TextScaled = true
  53. PLAYERN.TextSize = 14
  54. PLAYERN.TextWrapped = true
  55.  
  56. ONB.Name = "ONB"
  57. ONB.Parent = MAIN
  58. ONB.BackgroundColor3 = Color3.new(1, 0.411765, 0.411765)
  59. ONB.BorderColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  60. ONB.Position = UDim2.new(0, 55, 0, 65)
  61. ONB.Size = UDim2.new(0, 100, 0, 40)
  62. ONB.Font = Enum.Font.SourceSans
  63. ONB.Text = "ON"
  64. ONB.TextColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  65. ONB.TextScaled = true
  66. ONB.TextSize = 14
  67. ONB.TextWrapped = true
  68.  
  69. OFFB.Name = "OFFB"
  70. OFFB.Parent = MAIN
  71. OFFB.BackgroundColor3 = Color3.new(1, 0.411765, 0.411765)
  72. OFFB.BorderColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  73. OFFB.Position = UDim2.new(0, 55, 0, 115)
  74. OFFB.Size = UDim2.new(0, 100, 0, 40)
  75. OFFB.Font = Enum.Font.SourceSans
  76. OFFB.Text = "OFF"
  77. OFFB.TextColor3 = Color3.new(0.54902, 0.137255, 0.137255)
  78. OFFB.TextScaled = true
  79. OFFB.TextSize = 14
  80. OFFB.TextWrapped = true
  81.  
  82. --FUNCTIONS
  83.  
  84. rem = workspace.Remote.GrabItem
  85. rem1 = workspace.Remote.PlaceMaterial
  86.  
  87. function clearflares()
  88. for i,v in pairs(workspace:GetChildren()) do
  89. if v.Name == "RoadFlareLit" then
  90. rem:FireServer(nil, nil, v)
  91. end
  92. end
  93. end
  94.  
  95. ONB.MouseButton1Down:connect(function()
  96. clearflares()
  97. if workspace[PLAYERN.Text].Torso:FindFirstChild("Sparkles") == nil then
  98. rem1:FireServer(game.Lighting.Materials.RoadFlareLit, workspace[PLAYERN.Text].Torso.Position)
  99. wait(.5)
  100. rem:FireServer(workspace[PLAYERN.Text].Torso, nil, game.Workspace.RoadFlareLit.Tip.Sparkles)
  101. wait(.5)
  102. clearflares()
  103. end
  104. end)
  105.  
  106. OFFB.MouseButton1Down:connect(function()
  107. if workspace[PLAYERN.Text].Torso:FindFirstChild("Sparkles") then
  108. rem:FireServer(nil, nil, workspace[PLAYERN.Text].Torso.Sparkles)
  109. end
  110. end)
  111.  
  112. --made by pex#1607
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement