Advertisement
RobloxPlayerBeta

[Void SB] FE Wubstep

Aug 19th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.52 KB | None | 0 0
  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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then
  97. return typeof(s[k])=="function"
  98. and function(_,...)return s[k](s,...)end or s[k]
  99. end
  100. end,
  101. __newindex = function(self,k,v)
  102. local s = rawget(self,"_RealService")
  103. if s then s[k]=v end
  104. end
  105. }
  106. local function FakeService(t,RealService)
  107. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  108. return setmetatable(t,fsmt)
  109. end
  110.  
  111. --Fake game object
  112. local g = {
  113. GetService = function(self,s)
  114. return self[s]
  115. end,
  116. Players = FakeService({
  117. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  118. },"Players"),
  119. UserInputService = FakeService(UIS,"UserInputService"),
  120. ContextActionService = FakeService(CAS,"ContextActionService"),
  121. }
  122. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  123. g.service = g.GetService
  124.  
  125. g.RunService = FakeService({
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134.  
  135. setmetatable(g,fsmt)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140.  
  141. function clerp(c1,c2,al)
  142. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  143. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  144. for i,v in pairs(com1) do
  145. com1[i] = v+(com2[i]-v)*al
  146. end
  147. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  148. end
  149.  
  150.  
  151. plr = owner
  152. char = plr.Character
  153. humanoid = char:findFirstChild("Humanoid")
  154. torso = char:findFirstChild("Torso")
  155. head = char.Head
  156. ra = char:findFirstChild("Right Arm")
  157. la = char:findFirstChild("Left Arm")
  158. rl = char:findFirstChild("Right Leg")
  159. ll = char:findFirstChild("Left Leg")
  160. rs = torso:findFirstChild("Right Shoulder")
  161. ls = torso:findFirstChild("Left Shoulder")
  162. rh = torso:findFirstChild("Right Hip")
  163. lh = torso:findFirstChild("Left Hip")
  164. neck = torso:findFirstChild("Neck")
  165. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  166. rootpart = char:findFirstChild("HumanoidRootPart")
  167. camera = workspace.CurrentCamera
  168. anim = char:findFirstChild("Animate")
  169.  
  170. humanoid.Animator:Destroy()
  171.  
  172. local rm = Instance.new("Weld", torso)
  173. rm.C0 = CFrame.new(1.5, 0.5, 0)
  174. rm.C1 = CFrame.new(0, 0.5, 0)
  175. rm.Part0 = torso
  176. rm.Part1 = ra
  177.  
  178. local lm = Instance.new("Weld", torso)
  179. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  180. lm.C1 = CFrame.new(0, 0.5, 0)
  181. lm.Part0 = torso
  182. lm.Part1 = la
  183.  
  184. local rlegm = Instance.new("Weld", torso)
  185. rlegm.C0 = CFrame.new(0.5, -1, 0)
  186. rlegm.C1 = CFrame.new(0, 1, 0)
  187. rlegm.Part0 = torso
  188. rlegm.Part1 = rl
  189. local llegm = Instance.new("Weld", torso)
  190. llegm.C0 = CFrame.new(-0.5, -1, 0)
  191. llegm.C1 = CFrame.new(0, 1, 0)
  192. llegm.Part0 = torso
  193. llegm.Part1 = ll
  194.  
  195. neck.C0 = CFrame.new(0, 1, 0)
  196. neck.C1 = CFrame.new(0, -.5, 0)
  197.  
  198. rj.C0 = CFrame.new()
  199. rj.C1 = CFrame.new()
  200.  
  201. local s = Instance.new('Sound', head)
  202. s.Volume = 2
  203. s.SoundId = "rbxassetid://1857780792"
  204. s.Looped = true
  205. s.Pitch = 1.05
  206. s:play()
  207.  
  208. humanoid.WalkSpeed = 7
  209.  
  210. rsc0 = rm.C0
  211. lsc0 = lm.C0
  212. neckc0 = neck.C0
  213. rootc0 = rj.C0
  214. llc0 = llegm.C0
  215. rlc0 = rlegm.C0
  216. speed = 0.25
  217. angle = 0
  218. anglespeed = 1
  219.  
  220. local Hat = Instance.new('Part', char)
  221. Hat.FormFactor = 'Custom'
  222. Hat.Size = Vector3.new(1,1,1)
  223. Hat.CanCollide = false
  224. Hat.Locked = true
  225. Hat.Name = 'Headphones'
  226. Hat:breakJoints()
  227. Hat.TopSurface = 0
  228. Hat.BottomSurface = 0
  229. local Mesh = Instance.new('SpecialMesh', Hat)
  230. Mesh.MeshId = "http://www.roblox.com/asset/?id=1051545"
  231. Mesh.TextureId = "rbxassetid://186142634"
  232.  
  233. local Weld = Instance.new('Weld', Hat)
  234. Weld.Part0 = Hat
  235. Weld.Part1 = head
  236. Weld.C1 = CFrame.new(0, .2, 0)
  237.  
  238.  
  239. local SplashEffect = Instance.new('Part')
  240. Instance.new("CylinderMesh", SplashEffect);
  241. SplashEffect.Size = Vector3.new(.2,.2,.2)
  242. SplashEffect.Anchored = true
  243. SplashEffect.Transparency = 1
  244. SplashEffect.CanCollide = false
  245. SplashEffect.Locked = true
  246. SplashEffect.Material = "Neon"
  247. local surfacegui = Instance.new('SurfaceGui', SplashEffect)
  248. surfacegui.Face = 'Top'
  249. surfacegui.CanvasSize = Vector2.new(800,800)
  250. local SplashEffectImage = Instance.new('ImageLabel', surfacegui)
  251. SplashEffectImage.Size = UDim2.new(1,0,1,0)
  252. SplashEffectImage.Image = "rbxassetid://166139049"
  253. SplashEffectImage.BackgroundTransparency = 1
  254. SplashEffectImage.Name = 'Effect'
  255. SplashEffectImage.ImageColor3 = Color3.new(223/255, 0, 255/255)
  256. local light = Instance.new('PointLight', SplashEffect)
  257.  
  258. local SplashEffect2 = SplashEffect:clone()
  259. SplashEffect2:ClearAllChildren()
  260. Instance.new("CylinderMesh", SplashEffect2);
  261. local surfacegui2 = Instance.new('SurfaceGui', SplashEffect2)
  262. surfacegui2.Face = 'Top'
  263. surfacegui2.CanvasSize = Vector2.new(800,800)
  264. local SplashEffect2Image = Instance.new('ImageLabel', surfacegui2)
  265. SplashEffect2Image.Size = UDim2.new(1,0,1,0)
  266. SplashEffect2Image.Image = "rbxassetid://166139049"
  267. SplashEffect2Image.BackgroundTransparency = 1
  268. SplashEffect2Image.Name = 'Effect'
  269. SplashEffect2Image.ImageColor3 = Color3.new(223/255, 0, 255/255)
  270. local light2 = Instance.new('PointLight', SplashEffect2)
  271.  
  272. local Crack = Instance.new('Part')
  273. Crack.Size = Vector3.new(12, .2, 12)
  274. Crack.Anchored = true
  275. Crack.Transparency = 1
  276. Crack.CanCollide = false
  277.  
  278. Images = {"rbxassetid://109516732", "rbxassetid://185526499"}
  279. local Image = Instance.new('Decal', Crack)
  280. Image.Face = 'Top'
  281.  
  282.  
  283. local SplashColors = {Color3.new(223/255, 0, 255/255), Color3.new(223/255, 0, 255/255), Color3.new(226/255, 156/255, 210/255), Color3.new(120/255, 91/255, 169/255), Color3.new(8/255, 146/255, 208/255), Color3.new(0,0,1), Color3.new(127/255, 255/255, 212/255)}
  284. local Splash1cframe
  285. local Splash2cframe
  286.  
  287. function math_pos(float)
  288. if float < 0 then float = 0 end
  289. return float
  290. end
  291. function math_neg(float)
  292. if float > 0 then float = 0 end
  293. return float
  294. end
  295. function math_max(float, max)
  296. if float > max then float = max end
  297. return float
  298. end
  299. function math_min(float, min)
  300. if float > min then float = min end
  301. return float
  302. end
  303.  
  304. plr.Chatted:connect(function(msg)
  305. if msg == "/e dance" or msg == "/emote dance" then
  306. Action = 'Dancing'
  307. end
  308. if msg == "/e dance2" or msg == "/emote dance2" then
  309. Action = 'Dancing2'
  310. end
  311. if msg == "/e dance3" or msg == "/emote dance3" then
  312. Action = 'Dancing3'
  313. end
  314. end)
  315.  
  316. local screengui = Instance.new('ScreenGui', plr.PlayerGui)
  317. screengui.Name = "Vinyl's Effect"
  318. local frame = Instance.new('ImageLabel', screengui)
  319. frame.Size = UDim2.new(1,250,1,250)
  320. frame.Position = UDim2.new(0,-125,0,-125)
  321. frame.Image = "rbxassetid://186263828"
  322. frame.BackgroundTransparency = 1
  323.  
  324. local parts = Instance.new('Model', char)
  325.  
  326. local Notes = {}
  327. game:service'RunService'.RenderStepped:connect(function()
  328. angle = (angle % 100) + anglespeed/10
  329. local rscf = rsc0
  330. local lscf = lsc0
  331. local rjcf = rootc0
  332. local ncf = neckc0
  333. local rlcf = rlc0
  334. local llcf = llc0
  335. local jumpray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  336. local jumphit, jumppos = workspace:FindPartOnRayWithIgnoreList(jumpray, {char, parts, Crack, SplashEffect, SplashEffect2})
  337. do --Right leg effect
  338. local ray = Ray.new(rl.CFrame.p, ((rl.CFrame*CFrame.new(0,-1,0)).p - rl.Position).unit*1)
  339. local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
  340. if hit and hit:IsA'BasePart' and hitz then
  341. if SplashEffect.Parent == nil then
  342. local COLOR = SplashColors[math.random(1,#SplashColors)];
  343. SplashEffect.Parent = parts
  344. SplashEffect.Transparency = 0.2
  345. SplashEffect.BrickColor = BrickColor.new(COLOR)
  346. SplashEffect.Size = Vector3.new(.2,.2,.2)
  347. SplashEffectImage.ImageColor3 = COLOR;
  348. SplashEffectImage.ImageTransparency = 0
  349. SplashEffect.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.575, 0)
  350. Splash1cframe = SplashEffect.CFrame
  351. light.Color = SplashEffectImage.ImageColor3
  352. light.Brightness = 1
  353. light.Range = 8
  354. for i = 1, math.random(6,10) do
  355. local Note = Instance.new('Part', parts)
  356. Note.CanCollide = false
  357. Note.Material = "Neon"
  358. Note.Anchored = true
  359. Note.CFrame = SplashEffect.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
  360. Note.Color = SplashEffectImage.ImageColor3
  361. Note.Size = Vector3.new(1,1,1)
  362. local mesh = Instance.new('SpecialMesh', Note)
  363. mesh.MeshId = "rbxassetid://1088207"
  364. mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
  365. table.insert(Notes,Note)
  366. end
  367. wait(1)
  368. SplashEffect.Parent = nil
  369. Splash1cframe = nil
  370. end
  371. end
  372. end
  373. do --Left leg effect
  374. local ray = Ray.new(ll.CFrame.p, ((ll.CFrame*CFrame.new(0,-1,0)).p - ll.Position).unit*1)
  375. local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
  376. if hit and hit:IsA'BasePart' and hitz then
  377. if SplashEffect2.Parent == nil then
  378. local COLOR = SplashColors[math.random(1,#SplashColors)];
  379. SplashEffect2.Parent = parts
  380. SplashEffect2.Transparency = 0.2
  381.  
  382. SplashEffect2.BrickColor = BrickColor.new(COLOR)
  383. SplashEffect2.Size = Vector3.new(.2,.2,.2)
  384. SplashEffect2Image.ImageColor3 = COLOR;
  385. SplashEffect2Image.ImageTransparency = 0
  386. SplashEffect2.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.575, 0)
  387. Splash2cframe = SplashEffect2.CFrame
  388. light2.Color = SplashEffect2Image.ImageColor3
  389. light2.Brightness = 1
  390. light2.Range = 8
  391. for i = 1, math.random(6,10) do
  392. local Note = Instance.new('Part', parts)
  393. Note.CanCollide = false
  394. Note.Material = "Neon"
  395. Note.Anchored = true
  396. Note.CFrame = SplashEffect2.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
  397. Note.Color = SplashEffect2Image.ImageColor3
  398. Note.Size = Vector3.new(1,1,1)
  399. local mesh = Instance.new('SpecialMesh', Note)
  400. mesh.MeshId = "rbxassetid://1088207"
  401. mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
  402. table.insert(Notes,Note)
  403. end
  404. wait(1)
  405. SplashEffect2.Parent = nil
  406. Splash2cframe = nil
  407. end
  408. end
  409. end
  410. if Action == 'Dancing' then
  411. anglespeed = .95
  412. llcf = llc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2)-.12, 0, -.02)
  413. rlcf = rlc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2), 0, .02)
  414. rscf = rsc0 * CFrame.Angles(math.rad(70) - math.asin(math.sin(angle))*1.5, 0, 0)
  415. lscf = lsc0 * CFrame.Angles(math.rad(10) - math.asin(math.sin(angle))*.45, 0, -.1)
  416. rjcf = rootc0 * CFrame.new(0, -.2 + -math_neg(math.asin(math.sin(angle))*2), 0) * CFrame.Angles(-math_pos(math.asin(math.sin(angle))*.2), 0, 0)
  417. ncf = neckc0 * CFrame.Angles(-math_neg(math.asin(math.sin(angle))*.2), 0, 0)
  418. elseif Action == 'Dancing2' then
  419. anglespeed = 1.15
  420. llcf = llc0 * CFrame.new(0, -math_neg(math.sin((angle+2)*2))*.2, math_neg(math.sin((angle+4)*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, -.02)
  421. rlcf = rlc0 * CFrame.new(0, -math_neg(math.sin(angle*2))*.2, math_neg(math.sin(angle*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, .02)
  422. rscf = rsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, -.2 + math.abs(math.asin(math.sin(angle)))*.35)
  423. lscf = lsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, .2 - math.abs(math.asin(math.sin(angle)))*.35)
  424. rjcf = rootc0 * CFrame.new(0, -.1 + -math_neg(math.sin(angle*2)*.8), 0) * CFrame.Angles(0, 0, 0)
  425. ncf = neckc0 * CFrame.Angles(-math_neg(math.sin(angle/2)*.2), 0, math.asin(math.sin(angle))*.2)
  426. elseif Action == 'Dancing3' then
  427. anglespeed = .95
  428. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) * CFrame.Angles(0,math.asin(math.sin(angle))*.05,0)
  429. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.5, -math_pos(-math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.4,0,.075 + -math.asin(math.sin(angle))*.05)
  430. llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.5, -math_pos(math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.4,0,-.075 + -math.asin(math.sin(angle))*.05)
  431. rscf = rsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
  432. lscf = lsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
  433. ncf = neckc0 * CFrame.Angles(0,-math.asin(math.sin(angle))*.5,0)
  434. elseif Action == false then
  435. if not jumphit then
  436. anglespeed = 2
  437. rlcf = rlc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 - math.asin(math.sin(angle))*.05, 0, 0)
  438. llcf = llc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 + math.asin(math.sin(angle))*.05, 0, 0)
  439. lscf = lsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) - math.asin(math.sin(angle))*.05, 0, 0)
  440. rscf = rsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) + math.asin(math.sin(angle))*.05, 0, 0)
  441. elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude < 2 then
  442. anglespeed = .75
  443. ncf = neckc0 * CFrame.Angles(math.abs(math.asin(math.sin(angle))*.15), math.asin(math.sin(angle))*.15, 0)
  444. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0)
  445. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.25, -math_pos(-math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.24,0,.075 + -math.asin(math.sin(angle))*.05)
  446. llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.25, -math_pos(math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.24,0,-.075 + -math.asin(math.sin(angle))*.05)
  447. rscf = rsc0 * CFrame.Angles(-math.asin(math.sin(angle))*.25, 0, .015)
  448. lscf = lsc0 * CFrame.Angles(math.asin(math.sin(angle))*.25, 0, -.015)
  449. elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude > 2 then
  450. anglespeed = 1
  451. rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.025, .05 - math.cos(angle*2)*.025, 0) * CFrame.Angles(-.15 + -math.abs(math.cos(angle)*.025),math.asin(math.sin(angle))*.025,0)
  452. rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(math.cos(angle - 0.25)*.3), math_neg(-math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 + math.asin(math.sin(angle))*.4,0,.025 + -math.asin(math.sin(angle))*.025)
  453. llcf = llc0 * CFrame.new(0, -.05 + math_pos(-math.cos(angle - 0.25)*.3), math_neg(math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 - math.asin(math.sin(angle))*.4,0,-.025 + -math.asin(math.sin(angle))*.025)
  454. rscf = rsc0 * CFrame.Angles(.5 - math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
  455. lscf = lsc0 * CFrame.Angles(.5 + math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
  456. end
  457. end
  458. if SplashEffect.Parent ~= nil then
  459. if light then
  460. light.Range = light.Range + 1
  461. light.Brightness = light.Brightness - .045
  462. end
  463. SplashEffect.Size = SplashEffect.Size + Vector3.new(1.25,0,1.25)
  464. SplashEffectImage.ImageTransparency = SplashEffectImage.ImageTransparency + .045
  465. SplashEffect.Transparency = SplashEffect.Transparency + .025
  466. SplashEffect.CFrame = Splash1cframe
  467. end
  468.  
  469. if Crack.Parent ~= nil then
  470. if Image.Transparency > 1 then Crack.Parent = nil end
  471. Image.Transparency = Image.Transparency + .045
  472. end
  473.  
  474. if SplashEffect2.Parent ~= nil then
  475. if light2 then
  476. light2.Range = light2.Range + 1
  477. light2.Brightness = light2.Brightness - .045
  478. end
  479. SplashEffect2.Size = SplashEffect2.Size + Vector3.new(1.25,0,1.25)
  480. SplashEffect2Image.ImageTransparency = SplashEffect2Image.ImageTransparency + .045
  481. SplashEffect2.Transparency = SplashEffect2.Transparency + .025
  482. SplashEffect2.CFrame = Splash2cframe
  483. end
  484.  
  485. for i,v in pairs(Notes) do
  486. if v and v:IsA'BasePart' then
  487. if v.Transparency > 1 then
  488. v:Destroy()
  489. table.remove(Notes, i)
  490. end
  491. v.CFrame = v.CFrame * CFrame.new(0,0,-.285)
  492. v.Transparency = v.Transparency + .025
  493. end
  494. end
  495.  
  496. if Action ~= false then
  497. if torso.Velocity.magnitude > 2 then
  498. Action = false
  499. end
  500. end
  501.  
  502. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  503. llegm.C0 = clerp(llegm.C0,llcf,speed)
  504. rj.C0 = clerp(rj.C0,rjcf,speed)
  505. rm.C0 = clerp(rm.C0,rscf,speed)
  506. lm.C0 = clerp(lm.C0,lscf,speed)
  507. rj.C0 = clerp(rj.C0,rjcf,speed)
  508. neck.C0 = clerp(neck.C0,ncf,speed)
  509. end)
  510.  
  511. plr.Chatted:connect(function(msg)
  512. if (msg:sub(1,4) == "snd;") then
  513. s:stop();
  514. s.SoundId = "rbxassetid://"..msg:sub(5);
  515. s:play();
  516. end
  517. end)
  518.  
  519.  
  520. while true do
  521. for i = 0,140,15 do
  522. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  523. frame.Rotation = 0+math.random()
  524. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  525. game:service'RunService'.RenderStepped:wait()
  526. end
  527. for i = 140,5, -15 do
  528. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  529. frame.Rotation = 0+math.random(-10,10)/10
  530. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  531. game:service'RunService'.RenderStepped:wait()
  532. end
  533. for i = 5,25,15 do
  534. frame.Rotation = 0-math.random()
  535. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  536. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  537. game:service'RunService'.RenderStepped:wait()
  538. end
  539. for i = 25,0,-15 do
  540. frame.Rotation = 0+math.random()
  541. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  542. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  543. game:service'RunService'.RenderStepped:wait()
  544. end
  545. for i = 0,75,-15 do
  546. frame.Rotation = 0-math.random()
  547. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  548. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  549. game:service'RunService'.RenderStepped:wait()
  550. end
  551. for i = 75,0,-15 do
  552. frame.Rotation = 0
  553. frame.Size = UDim2.new(1,350 - i,1,350 - i)
  554. frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
  555. game:service'RunService'.RenderStepped:wait()
  556. end
  557. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement