Advertisement
JOJOJOJOJOJO1234

Untitled

Aug 5th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("This Script Was Filted By Oreo : COMMANDCODES1234")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. MIDI = Instance.new("ScreenGui")
  83. Frame = Instance.new("Frame")
  84. ID = Instance.new("TextBox")
  85. Play = Instance.new("TextButton")
  86. Dark = Instance.new("TextButton")
  87. Bright = Instance.new("TextButton")
  88. Stop = Instance.new("TextButton")
  89. Hide = Instance.new("TextButton")
  90. Set = Instance.new("TextButton")
  91. BColor = Instance.new("TextBox")
  92. Random = Instance.new("TextButton")
  93. Material = Instance.new("TextBox")
  94. Trans = Instance.new("TextBox")
  95. sound = Instance.new("Sound",owner.Character.Torso)
  96. sound.Volume = 4
  97. sound.Looped = true
  98. BVal = "Deep orange"
  99. MVal = "Neon"
  100. TVal = 0
  101. Active = false
  102.  
  103. -- Properties
  104.  
  105. MIDI.Name = "MIDI"
  106. MIDI.Parent = owner.PlayerGui
  107.  
  108. Frame.Parent = MIDI
  109. Frame.Active = true
  110. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  111. Frame.BackgroundTransparency = 0.5799999833107
  112. Frame.BorderSizePixel = 0
  113. Frame.Draggable = true
  114. Frame.Position = UDim2.new(0, 300, 0, 50)
  115. Frame.Size = UDim2.new(0, 310, 0, 200)
  116.  
  117. ID.Name = "ID"
  118. ID.Parent = Frame
  119. ID.BackgroundColor3 = Color3.new(1, 1, 1)
  120. ID.BorderSizePixel = 0
  121. ID.Position = UDim2.new(0, 100, 0, 10)
  122. ID.Size = UDim2.new(0, 120, 0, 30)
  123. ID.Font = Enum.Font.Arcade
  124. ID.FontSize = Enum.FontSize.Size18
  125. ID.Text = "639837244"
  126. ID.TextColor3 = Color3.new(0, 0, 0)
  127. ID.TextSize = 18
  128.  
  129. Material.Name = "Material"
  130. Material.Parent = Frame
  131. Material.BackgroundColor3 = Color3.new(1, 1, 1)
  132. Material.BorderSizePixel = 0
  133. Material.Position = UDim2.new(0, 210, 0, 95)
  134. Material.Size = UDim2.new(0, 90, 0, 15)
  135. Material.Font = Enum.Font.Arcade
  136. Material.FontSize = Enum.FontSize.Size14
  137. Material.Text = "Neon"
  138. Material.TextSize = 14
  139.  
  140. Trans.Name = "Trans"
  141. Trans.Parent = Frame
  142. Trans.BackgroundColor3 = Color3.new(1, 1, 1)
  143. Trans.BorderSizePixel = 0
  144. Trans.Position = UDim2.new(0, 210, 0, 75)
  145. Trans.Size = UDim2.new(0, 90, 0, 15)
  146. Trans.Font = Enum.Font.Arcade
  147. Trans.FontSize = Enum.FontSize.Size14
  148. Trans.Text = "Transparency"
  149. Trans.TextSize = 14
  150.  
  151. Set.Name = "Set"
  152. Set.Parent = Frame
  153. Set.BackgroundColor3 = Color3.new(1, 1, 1)
  154. Set.BorderSizePixel = 0
  155. Set.Position = UDim2.new(0, 210, 0, 135)
  156. Set.Size = UDim2.new(0, 90, 0, 15)
  157. Set.Font = Enum.Font.Arcade
  158. Set.FontSize = Enum.FontSize.Size14
  159. Set.Text = "Set"
  160. Set.TextSize = 14
  161. Set.MouseButton1Down:connect(function()
  162. if Active == true then
  163. Active = false
  164. end
  165. BVal = tostring(BColor.Text)
  166. TVal = tonumber(Trans.Text)
  167. MVal = tostring(Material.Text)
  168. end)
  169.  
  170. BColor.Name = "BColor"
  171. BColor.Parent = Frame
  172. BColor.BackgroundColor3 = Color3.new(1, 1, 1)
  173. BColor.BorderSizePixel = 0
  174. BColor.Position = UDim2.new(0, 210, 0, 115)
  175. BColor.Size = UDim2.new(0, 90, 0, 15)
  176. BColor.Font = Enum.Font.Arcade
  177. BColor.FontSize = Enum.FontSize.Size14
  178. BColor.Text = "Lime Green"
  179. BColor.TextSize = 14
  180.  
  181. Random.Name = "Random"
  182. Random.Parent = Frame
  183. Random.BackgroundColor3 = Color3.new(1, 1, 1)
  184. Random.BorderSizePixel = 0
  185. Random.Position = UDim2.new(0, 10, 0, 80)
  186. Random.Size = UDim2.new(0, 90, 0, 30)
  187. Random.Font = Enum.Font.Arcade
  188. Random.FontSize = Enum.FontSize.Size14
  189. Random.Text = "Random"
  190. Random.TextSize = 14
  191. Random.MouseButton1Down:connect(function()
  192. if Active == false then
  193. Active = true
  194. end
  195. end)
  196.  
  197. Play.Name = "Play"
  198. Play.Parent = Frame
  199. Play.BackgroundColor3 = Color3.new(1, 1, 1)
  200. Play.BorderSizePixel = 0
  201. Play.Position = UDim2.new(0, 10, 0, 160)
  202. Play.Size = UDim2.new(0, 90, 0, 30)
  203. Play.Font = Enum.Font.Arcade
  204. Play.FontSize = Enum.FontSize.Size14
  205. Play.Text = "Play"
  206. Play.TextSize = 14
  207. Play.MouseButton1Down:connect(function()
  208. sound.TimePosition = 0
  209. sound.Playing = true
  210. sound.SoundId = "rbxassetid://"..tonumber(ID.Text)
  211. end)
  212.  
  213. Dark.Name = "Dark"
  214. Dark.Parent = Frame
  215. Dark.BackgroundColor3 = Color3.new(1, 1, 1)
  216. Dark.BorderSizePixel = 0
  217. Dark.Position = UDim2.new(0, 10, 0, 120)
  218. Dark.Size = UDim2.new(0, 90, 0, 30)
  219. Dark.Font = Enum.Font.Arcade
  220. Dark.FontSize = Enum.FontSize.Size14
  221. Dark.Text = "Dark"
  222. Dark.TextSize = 14
  223. Dark.MouseButton1Down:connect(function()
  224. game.Lighting.TimeOfDay = 0
  225. game.Lighting.GlobalShadows = false
  226. game.Lighting.Ambient = Color3.new(0,0,0)
  227. game.Lighting.Brightness = 0
  228. end)
  229.  
  230. Bright.Name = "Bright"
  231. Bright.Parent = Frame
  232. Bright.BackgroundColor3 = Color3.new(1, 1, 1)
  233. Bright.BorderSizePixel = 0
  234. Bright.Position = UDim2.new(0, 110, 0, 120)
  235. Bright.Size = UDim2.new(0, 90, 0, 30)
  236. Bright.Font = Enum.Font.Arcade
  237. Bright.FontSize = Enum.FontSize.Size14
  238. Bright.Text = "Bright"
  239. Bright.TextSize = 14
  240. Bright.MouseButton1Down:connect(function()
  241. game.Lighting.TimeOfDay = 12
  242. game.Lighting.GlobalShadows = true
  243. game.Lighting.Ambient = Color3.fromRGB(10,10,10)
  244. game.Lighting.Brightness = 1
  245. end)
  246.  
  247. Stop.Name = "Stop"
  248. Stop.Parent = Frame
  249. Stop.BackgroundColor3 = Color3.new(1, 1, 1)
  250. Stop.BorderSizePixel = 0
  251. Stop.Position = UDim2.new(0, 110, 0, 160)
  252. Stop.Size = UDim2.new(0, 90, 0, 30)
  253. Stop.Font = Enum.Font.Arcade
  254. Stop.FontSize = Enum.FontSize.Size14
  255. Stop.Text = "Stop"
  256. Stop.TextSize = 14
  257. Stop.MouseButton1Down:connect(function()
  258. sound.Playing = false
  259. end)
  260.  
  261. Hide.Name = "Hide"
  262. Hide.Parent = Frame
  263. Hide.BackgroundColor3 = Color3.new(1, 1, 1)
  264. Hide.BorderSizePixel = 0
  265. Hide.Position = UDim2.new(0, 210, 0, 160)
  266. Hide.Size = UDim2.new(0, 90, 0, 30)
  267. Hide.Font = Enum.Font.Arcade
  268. Hide.FontSize = Enum.FontSize.Size14
  269. Hide.Text = "Clear"
  270. Hide.TextSize = 14
  271. Hide.MouseButton1Down:connect(function()
  272. for i,v in pairs(owner.Character:GetChildren()) do
  273. if v.Name == "location" then
  274. v:Remove()
  275. end
  276. end
  277. end)
  278.  
  279. --- Made By Pugz AKA (PugLover77)
  280. plyr = owner
  281. c = plyr.Character
  282. RunService = game:service'RunService'
  283.  
  284. local draw2 = false
  285. local colorA = 1
  286. local lastPos
  287.  
  288. tool = Instance.new("HopperBin", plyr.Backpack)
  289. tool.Name = "Draw"
  290.  
  291.  
  292.  
  293.  
  294.  
  295. function draw(obj) --
  296. local lastPos = obj.CFrame.p
  297. coroutine.wrap(function()
  298. while wait() do
  299. if draw2 then
  300. while draw2 do
  301. wait()
  302. objC = obj:Clone()
  303. objC.Parent = c
  304. objC.Anchored = true
  305. local distance = (lastPos- obj.CFrame.p).magnitude
  306. objC.Size = Vector3.new(.1,.1,distance)
  307. objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
  308. lastPos = obj.CFrame.p
  309. end
  310. else
  311. break
  312. end
  313. end
  314. end)()
  315. end
  316.  
  317. tool.Selected:connect(function(mouse)
  318.  
  319. mouse.Button1Down:connect(function(mouse)
  320. draw2 = true
  321. part = Instance.new("Part", c)
  322. mesh = Instance.new("BlockMesh",part)
  323. Li = Instance.new("PointLight",part)
  324. Li.Range = 8
  325. Li.Color = part.Color
  326. part.Name = "location"
  327.  
  328. part.BottomSurface = 0
  329. part.Material = MVal
  330. part.TopSurface = 0
  331. part.Size = Vector3.new()
  332. part.Transparency = TVal
  333. if Active == true then
  334. part.Color = Color3.new(math.random(), math.random(), math.random())
  335. elseif Active == false then
  336. part.BrickColor = BrickColor.new(BVal)
  337. end
  338. Li.Color = part.Color
  339. part.FormFactor = "Custom"
  340. part.Size = Vector3.new(0.01, 0.01, 0.01)
  341. part.Anchored = true
  342. part.Locked = true
  343. coroutine.wrap(function()
  344. while part ~= nil do
  345. part.CFrame = CFrame.new(plyr:GetMouse().Hit.p.x,plyr:GetMouse().Hit.p.y,plyr:GetMouse().Hit.p.z)
  346. wait()
  347. end
  348. end)()
  349. wait()
  350. draw(part)
  351. wait()
  352. end)
  353. mouse.Button1Up:connect(function(mouse)
  354. draw2 = false
  355.  
  356. end)
  357.  
  358. end)
  359. x = 60
  360. game:GetService("RunService").Stepped:connect(function()
  361. n = sound.PlaybackLoudness
  362. if n > 500 then
  363. x = 100
  364. elseif n < 500 then
  365. x = 110
  366. end
  367. for i,v in pairs(owner.Character:GetChildren()) do
  368. if v.Name == "location" then
  369. v.Mesh.Scale = Vector3.new(n / x, n / x, n / x)
  370. v.PointLight.Range = n / 50
  371. end
  372. end
  373. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement