Advertisement
13242

Untitled

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