Advertisement
SniperZazzy

Untitled

Jan 28th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.85 KB | None | 0 0
  1. --Draw something, put your sound id in, and watch the light show!--
  2. --Enjoy lads.--
  3. Player=Owner
  4. Character=Player.Character
  5. Character.Humanoid.Name = "noneofurbusiness"
  6. hum = Character.noneofurbusiness
  7. LeftArm=Character["Left Arm"]
  8. LeftLeg=Character["Left Leg"]
  9. RightArm=Character["Right Arm"]
  10. RightLeg=Character["Right Leg"]
  11. Root=Character["HumanoidRootPart"]
  12. Head=Character["Head"]
  13. Torso=Character["Torso"]
  14. Neck=Torso["Neck"]
  15. removeuseless = game:GetService("Debris")
  16. soundIsPlaying = false
  17. number = 0
  18. stop = false
  19. flatt = false
  20. standingg = true
  21. tf = 0
  22. idrewsomething = false
  23. tab2={}
  24. tab={}
  25. blue = false
  26. red = true
  27. green = false
  28. drawingallowed = true
  29. MseGuide = true
  30. RunSrv = game:GetService("RunService")
  31. RenderStepped = game:GetService("RunService").RenderStepped
  32.  
  33. local HEADLERP = Instance.new("ManualWeld")
  34. HEADLERP.Parent = Head
  35. HEADLERP.Part0 = Head
  36. HEADLERP.Part1 = Head
  37. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  38.  
  39. OrgnC0 = Neck.C0
  40. local movelimbs = coroutine.wrap(function()
  41. while RunSrv.RenderStepped:wait() do
  42. TrsoLV = Torso.CFrame.lookVector
  43. Dist = nil
  44. Diff = nil
  45. if not MseGuide then
  46. print("l")
  47. else
  48. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  49. Dist = (Head.CFrame.p-Point).magnitude
  50. Diff = Head.CFrame.Y-Point.Y
  51. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  52. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  53. Diff2 = LeftArm.CFrame.Y-Point.Y
  54. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  55. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  56. end
  57. end
  58. end)
  59. movelimbs()
  60.  
  61. godmode = coroutine.wrap(function()---- so you don't get killed by fucking random things
  62. while true do
  63. hum.MaxHealth = math.huge
  64. wait(0.0000001)
  65. hum.Health = math.huge
  66. wait()
  67. end
  68. end)
  69. godmode()
  70. ff = Instance.new("ForceField", Character)
  71. ff.Visible = false
  72.  
  73. coroutine.wrap(function()
  74. mouse.Button1Down:connect(function()
  75. if drawingallowed then
  76. fo = false
  77. while true do
  78. if fo then break end
  79. idrewsomething = true
  80. brick = Instance.new("Part",Character)
  81. brick.Anchored = true
  82. brick.Material = "Neon"
  83. brick.CanCollide = false
  84. brick.BrickColor = BrickColor.new("Really black")
  85. brick.Size = Vector3.new(1,1,1)
  86. brick.CFrame = CFrame.new(mouse.Hit.p)
  87. table.insert(tab2,brick)
  88. light = Instance.new("PointLight", brick)
  89. light.Color = brick.BrickColor.Color
  90. light.Range = 0
  91. light.Enabled = true
  92. light.Shadows = true
  93. light.Brightness = 0
  94. table.insert(tab,light)
  95. wait()
  96. end
  97. end
  98. end)
  99. end)()
  100.  
  101. coroutine.wrap(function()
  102. mouse.Button1Up:connect(function()
  103. if drawingallowed then
  104. fo = true
  105. end
  106. end)
  107. end)()
  108.  
  109. ---GUI---
  110.  
  111. screenGui = Instance.new("ScreenGui")
  112. screenGui.Parent = script.Parent
  113.  
  114. frame = Instance.new("Frame")
  115. frame.Parent = screenGui
  116. frame.Position = UDim2.new(0, 8, 0, 225)
  117. frame.Size = UDim2.new(0, 250, 0, 200)
  118. frame.BackgroundColor3 = BrickColor.new("White").Color
  119. frame.BackgroundTransparency = .5
  120.  
  121. textButton = Instance.new("TextButton")
  122. textButton.Parent = screenGui
  123. textButton.Position = UDim2.new(0, 12, 0, 400)
  124. textButton.Size = UDim2.new(0, 50, 0, 10)
  125. textButton.BackgroundColor3 = BrickColor.new("Really red").Color
  126. textButton.Text = "Red"
  127.  
  128. textButton.MouseButton1Down:connect(function()
  129. red = true
  130. green = false
  131. blue = false
  132. rainbow = false
  133. smooth = false
  134. end)
  135.  
  136. textButton2 = Instance.new("TextButton")
  137. textButton2.Parent = screenGui
  138. textButton2.Position = UDim2.new(0, 75, 0, 400)
  139. textButton2.Size = UDim2.new(0, 50, 0, 10)
  140. textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color
  141. textButton2.Text = "Blue"
  142.  
  143. textButton2.MouseButton1Down:connect(function()
  144. red = false
  145. green = false
  146. blue = true
  147. rainbow = false
  148. smooth = false
  149. end)
  150.  
  151. textButton3 = Instance.new("TextButton")
  152. textButton3.Parent = screenGui
  153. textButton3.Position = UDim2.new(0, 138, 0, 400)
  154. textButton3.Size = UDim2.new(0, 50, 0, 10)
  155. textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color
  156. textButton3.Text = "Green"
  157.  
  158. textButton3.MouseButton1Down:connect(function()
  159. red = false
  160. green = true
  161. blue = false
  162. rainbow = false
  163. smooth = false
  164. end)
  165.  
  166. textButton4 = Instance.new("TextButton")
  167. textButton4.Parent = screenGui
  168. textButton4.Position = UDim2.new(0, 201, 0, 400)
  169. textButton4.Size = UDim2.new(0, 50, 0, 10)
  170. coroutine.wrap(function()
  171. while true do
  172. textButton4.BackgroundColor3 = BrickColor.Random().Color
  173. wait(.05)
  174. end
  175. end)()
  176. textButton4.Text = "Rainbow"
  177.  
  178. textButton4.MouseButton1Down:connect(function()
  179. red = false
  180. green = false
  181. blue = false
  182. rainbow = true
  183. smooth = false
  184. end)
  185.  
  186. textBox = Instance.new("TextBox")
  187. textBox.Parent = screenGui
  188. textBox.Position = UDim2.new(0, 58, 0, 280)
  189. textBox.Size = UDim2.new(0, 150, 0, 20)
  190. textBox.BackgroundColor3 = BrickColor.new("White").Color
  191. textBox.Text = "Type Sound Id here"
  192.  
  193. form = Instance.new("TextButton")
  194. form.Parent = screenGui
  195. form.TextScaled = true
  196. form.Position = UDim2.new(0, 114, 0, 305)
  197. form.Size = UDim2.new(0, 40, 0, 20)
  198. form.BackgroundColor3 = BrickColor.new("White").Color
  199. form.Text = "Up"
  200.  
  201. form.MouseButton1Down:connect(function()
  202. if standingg then
  203. standingg = false
  204. flatt = true
  205. form.Text = "Flat"
  206. elseif flatt then
  207. flatt = false
  208. standingg = true
  209. form.Text = "Up"
  210. end
  211. end)
  212.  
  213. coroutine.wrap(function()
  214. while wait() do
  215. sid = textBox.Text
  216. end
  217. end)()
  218.  
  219. playbutton = Instance.new("TextButton")
  220. playbutton.Parent = screenGui
  221. playbutton.Position = UDim2.new(0, 58, 0, 305)
  222. playbutton.Size = UDim2.new(0, 50, 0, 20)
  223. playbutton.BackgroundColor3 = BrickColor.new("White").Color
  224. playbutton.Text = "Play"
  225.  
  226. playbutton.MouseButton1Down:connect(function()
  227. if not idrewsomething then return end
  228. if soundIsPlaying then
  229. sound1:Remove()
  230. sound1 = Instance.new("Sound", Character)
  231. sound1.Looped = true
  232. sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
  233. sound1:Play()
  234. else
  235. soundIsPlaying = true
  236. vol.Text = 1
  237. pitch.Text = 1
  238. sound1 = Instance.new("Sound", Character)
  239. coroutine.wrap(function()
  240. while soundIsPlaying do
  241. wait()
  242. sound1.Volume = svol
  243. end
  244. end)()
  245. sound1.Looped = true
  246. coroutine.wrap(function()
  247. while soundIsPlaying do
  248. sound1.Pitch = pitchh
  249. wait()
  250. end
  251. end)()
  252. sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
  253. sound1:Play()
  254. coroutine.wrap(function()
  255. while sound1.IsPlaying and soundIsPlaying do
  256. for i,v in pairs(tab) do
  257. v.Enabled = true
  258. v.Brightness = sound1.PlaybackLoudness/19
  259. v.Range = sound1.PlaybackLoudness/15
  260. if red then
  261. v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0)
  262. elseif blue then
  263. v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200)
  264. elseif green then
  265. v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0)
  266. elseif rainbow then
  267. v.Color = brick.BrickColor.Color
  268. end
  269. end
  270. wait()
  271. end
  272. end)()
  273. while sound1.IsPlaying and soundIsPlaying do
  274. workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100
  275. bcol = brick.BrickColor
  276. for _,v in pairs(tab2) do
  277. if standingg then
  278. v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1)
  279. elseif flatt then
  280. v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1)
  281. end
  282. if red then
  283. v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0))
  284. elseif blue then
  285. v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200))
  286. elseif green then
  287. v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0))
  288. elseif rainbow then
  289. v.BrickColor = BrickColor.Random()
  290. end
  291. end
  292. wait()
  293. end
  294. end
  295. end)
  296.  
  297. local stopbutton = Instance.new("TextButton")
  298. stopbutton.Parent = screenGui
  299. stopbutton.Position = UDim2.new(0, 158, 0, 305)
  300. stopbutton.Size = UDim2.new(0, 50, 0, 20)
  301. stopbutton.BackgroundColor3 = BrickColor.new("White").Color
  302. stopbutton.Text = "Stop"
  303.  
  304. vol = Instance.new("TextBox")
  305. vol.Parent = screenGui
  306. vol.Position = UDim2.new(0, 58, 0, 330)
  307. vol.Size = UDim2.new(0, 50, 0, 20)
  308. vol.BackgroundColor3 = BrickColor.new("White").Color
  309. vol.Text = "Volume"
  310.  
  311. coroutine.wrap(function()
  312. while wait() do
  313. svol = vol.Text
  314. end
  315. end)()
  316.  
  317. local remove = Instance.new("TextButton")
  318. remove.Parent = screenGui
  319. remove.Position = UDim2.new(0, 108, 0, 370)
  320. remove.Size = UDim2.new(0, 50, 0, 20)
  321. remove.BackgroundColor3 = BrickColor.new("White").Color
  322. remove.Text = "Clean"
  323.  
  324. pitch = Instance.new("TextBox")
  325. pitch.Parent = screenGui
  326. pitch.Position = UDim2.new(0, 158, 0, 330)
  327. pitch.Size = UDim2.new(0, 50, 0, 20)
  328. pitch.BackgroundColor3 = BrickColor.new("White").Color
  329. pitch.Text = "Pitch"
  330.  
  331. coroutine.wrap(function()
  332. while wait() do
  333. pitchh = pitch.Text
  334. end
  335. end)()
  336.  
  337. pitchup = Instance.new("ImageButton")
  338. pitchup.Parent = screenGui
  339. pitchup.Position = UDim2.new(0, 131, 0, 327)
  340. pitchup.BackgroundTransparency = 1
  341. pitchup.Size = UDim2.new(0, 25, 0, 25)
  342. pitchup.Image = "rbxassetid://29563813"
  343.  
  344. pitchup.MouseButton1Down:connect(function()
  345. if soundIsPlaying then
  346. pitch.Text = pitch.Text + .1
  347. end
  348. end)
  349.  
  350. pitchdown = Instance.new("ImageButton")
  351. pitchdown.Parent = screenGui
  352. pitchdown.Rotation = 180
  353. pitchdown.Position = UDim2.new(0, 211, 0, 327)
  354. pitchdown.BackgroundTransparency = 1
  355. pitchdown.Size = UDim2.new(0, 25, 0, 25)
  356. pitchdown.Image = "rbxassetid://29563813"
  357.  
  358. pitchdown.MouseButton1Down:connect(function()
  359. if soundIsPlaying then
  360. pitch.Text = pitch.Text - .1
  361. end
  362. end)
  363.  
  364. remove.MouseButton1Down:connect(function()
  365. if idrewsomething then
  366. if soundIsPlaying then
  367. soundIsPlaying = false
  368. workspace.CurrentCamera.FieldOfView = 70
  369. woosh = Instance.new("Sound",Character)
  370. woosh.Volume = 2
  371. woosh.SoundId = "rbxasstid://215402014"
  372. woosh:Play()
  373. sound1:Stop()
  374. pitch.Text = "Pitch"
  375. vol.Text = "Volume"
  376. removeuseless:AddItem(woosh,2)
  377. for _,v in pairs(tab2) do
  378. v:Remove()
  379. end
  380. idrewsomething = false
  381. elseif not soundIsPlaying then
  382. soundIsPlaying = false
  383. woosh = Instance.new("Sound",Character)
  384. woosh.Volume = 2
  385. woosh.SoundId = "rbxasstid://215402014"
  386. woosh:Play()
  387. for _,v in pairs(tab2) do
  388. v:Remove()
  389. end
  390. idrewsomething = false
  391. end
  392. end
  393. end)
  394.  
  395. local day = Instance.new("TextButton")
  396. day.Parent = screenGui
  397. day.Position = UDim2.new(0, 50, 0, 370)
  398. day.Size = UDim2.new(0, 50, 0, 20)
  399. day.BackgroundColor3 = BrickColor.new("Bright yellow").Color
  400. day.Text = "Day"
  401.  
  402. day.MouseButton1Down:connect(function()
  403. daytime = true
  404. nighttime = false
  405. turnon = Instance.new("Sound",Character)
  406. turnon.SoundId = "rbxassetid://858896518"
  407. turnon.Volume = 1
  408. turnon.Pitch = 1.05
  409. turnon:Play()
  410. removeuseless:AddItem(turnon,2)
  411. coroutine.wrap(function()
  412. while daytime do
  413. game.Lighting.TimeOfDay = 12
  414. game.Lighting.GlobalShadows = true
  415. game.Lighting.Ambient = Color3.fromRGB(10,10,10)
  416. game.Lighting.Brightness = 1
  417. wait()
  418. end
  419. end)()
  420. end)
  421.  
  422. local night = Instance.new("TextButton")
  423. night.Parent = screenGui
  424. night.Position = UDim2.new(0, 165, 0, 370)
  425. night.Size = UDim2.new(0, 50, 0, 20)
  426. night.BackgroundColor3 = BrickColor.new("Really black").Color
  427. night.TextColor = BrickColor.new("White")
  428. night.Text = "Night"
  429.  
  430. night.MouseButton1Down:connect(function()
  431. daytime = false
  432. nighttime = true
  433. turnoff = Instance.new("Sound",Character)
  434. turnoff.SoundId = "rbxassetid://858896518"
  435. turnoff.Volume = 1
  436. turnoff.Pitch = .9
  437. turnoff:Play()
  438. removeuseless:AddItem(turnoff,2)
  439. coroutine.wrap(function()
  440. while nighttime do
  441. game.Lighting.TimeOfDay = 0
  442. game.Lighting.GlobalShadows = false
  443. game.Lighting.Ambient = Color3.new(0,0,0)
  444. game.Lighting.Brightness = 0
  445. wait()
  446. end
  447. end)()
  448. end)
  449.  
  450. volumeup = Instance.new("ImageButton")
  451. volumeup.Parent = screenGui
  452. volumeup.Position = UDim2.new(0, 29, 0, 327)
  453. volumeup.BackgroundTransparency = 1
  454. volumeup.Size = UDim2.new(0, 25, 0, 25)
  455. volumeup.Image = "rbxassetid://29563813"
  456.  
  457. volumeup.MouseButton1Down:connect(function()
  458. if soundIsPlaying then
  459. vol.Text = vol.Text + 1
  460. end
  461. end)
  462.  
  463. volumedown = Instance.new("ImageButton")
  464. volumedown.Parent = screenGui
  465. volumedown.Rotation = 180
  466. volumedown.Position = UDim2.new(0, 111, 0, 327)
  467. volumedown.BackgroundTransparency = 1
  468. volumedown.Size = UDim2.new(0, 25, 0, 25)
  469. volumedown.Image = "rbxassetid://29563813"
  470.  
  471. Supr14 = Instance.new("ImageLabel")
  472. Supr14.Parent = screenGui
  473. Supr14.Rotation = 0
  474. Supr14.Position = UDim2.new(0, 13, 0, 222)
  475. Supr14.BackgroundTransparency = 1
  476. Supr14.Size = UDim2.new(0, 240, 0, 60)
  477. Supr14.Image = "rbxassetid://1815697653"
  478.  
  479. volumedown.MouseButton1Down:connect(function()
  480. if soundIsPlaying then
  481. vol.Text = vol.Text - 1
  482. end
  483. end)
  484.  
  485. stopbutton.MouseButton1Down:connect(function()
  486. if idrewsomething then
  487. if soundIsPlaying then
  488. sound1:Remove()
  489. soundIsPlaying = false
  490. workspace.CurrentCamera.FieldOfView = 70
  491. pitch.Text = "Pitch"
  492. vol.Text = "Volume"
  493. for i,v in pairs(tab) do
  494. v.Enabled = false
  495. end
  496. for i = 1, 10 do
  497. for _,v in pairs(tab2) do
  498. v.BrickColor = BrickColor.new("Really black")
  499. v.Size = v.Size - Vector3.new(0,15,0)
  500. end
  501. wait()
  502. end
  503. end
  504. end
  505. end)
  506.  
  507. print("Drawing visualiser!, Made by Supr14")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement