Advertisement
voidman

Untitled

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