Advertisement
jayrock3401

Untitled

Dec 23rd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.36 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. -- params : ...
  87.  
  88. while not getmetatable(shared) do
  89. wait()
  90. end
  91. shared(script)
  92. local player = owner
  93. repeat
  94. wait()
  95. until player.Character
  96. local char = player.Character
  97. local torso = char:WaitForChild("Torso")
  98. local mouse = player:GetMouse()
  99. local color = BrickColor.new("Really black")
  100. local material = "Neon"
  101. local trans = 0.5
  102. local debounce = false
  103. for u,c in pairs(player.Character:GetChildren()) do
  104. if c.className == "Hat" and c.Name ~= "Hybrid Goggles" then
  105. c.Handle.BrickColor = BrickColor.new("Really black")
  106. c.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  107. end
  108. end
  109. blast = function()
  110.  
  111. local b = Instance.new("Part", workspace)
  112. game.Debris:AddItem(b, 2)
  113. b.Size = Vector3.new(5, 5, 5)
  114. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  115. b.TopSurface = "Smooth"
  116. b.BottomSurface = "Smooth"
  117. b.CanCollide = false
  118. b.BrickColor = color
  119. b.Transparency = trans
  120. b.Material = material
  121. local v = Instance.new("BodyVelocity", b)
  122. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  123. v.Velocity = torso.CFrame.lookVector * 50
  124. r = Instance.new("BodyAngularVelocity", b)
  125. r.AngularVelocity = Vector3.new(25, 25, 25)
  126. b.Touched:connect(function(hit)
  127.  
  128. p = hit.Parent
  129. if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
  130. b:Remove()
  131. p.Humanoid:TakeDamage(35)
  132. end
  133. end
  134. )
  135. end
  136.  
  137. death = function()
  138.  
  139. local b = Instance.new("Part", workspace)
  140. game.Debris:AddItem(b, 2)
  141. b.Size = Vector3.new(5, 5, 5)
  142. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  143. b.TopSurface = "Smooth"
  144. b.BottomSurface = "Smooth"
  145. b.CanCollide = false
  146. b.BrickColor = color
  147. b.Transparency = trans
  148. b.Material = material
  149. local v = Instance.new("BodyVelocity", b)
  150. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  151. v.Velocity = torso.CFrame.lookVector * 50
  152. r = Instance.new("BodyAngularVelocity", b)
  153. r.AngularVelocity = Vector3.new(25, 25, 25)
  154. b.Touched:connect(function(hit)
  155.  
  156. p = hit
  157. if p and p.Name ~= "Base" and p.Name ~= player.Name then
  158. p:Remove()
  159. end
  160. end
  161. )
  162. end
  163.  
  164. wall = function()
  165.  
  166. local b = Instance.new("Part", workspace)
  167. game.Debris:AddItem(b, 5)
  168. b.Size = Vector3.new(1, 1, 1)
  169. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  170. b.TopSurface = "Smooth"
  171. b.BottomSurface = "Smooth"
  172. b.CanCollide = false
  173. b.Anchored = true
  174. b.BrickColor = color
  175. b.Transparency = trans
  176. b.Material = material
  177. for i = 1, 50 do
  178. wait()
  179. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  180. b.Size = b.Size + Vector3.new(0.5, 0.5, 0)
  181. end
  182. b.CanCollide = true
  183. b.Touched:connect(function(hit)
  184.  
  185. p = hit.Parent
  186. if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
  187. p.Humanoid:TakeDamage(5)
  188. end
  189. end
  190. )
  191. end
  192.  
  193. fade = function()
  194.  
  195. for i,v in pairs(char:GetChildren()) do
  196. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  197. v.Transparency = 0.5
  198. end
  199. end
  200. for i,v in pairs(char:GetChildren()) do
  201. if v.className == "Hat" then
  202. v.Handle.Transparency = 0.5
  203. end
  204. end
  205. end
  206.  
  207. unfade = function()
  208.  
  209. for i,v in pairs(char:GetChildren()) do
  210. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  211. v.Transparency = 0
  212. end
  213. end
  214. for i,v in pairs(char:GetChildren()) do
  215. if v.className == "Hat" then
  216. v.Handle.Transparency = 0
  217. end
  218. end
  219. end
  220.  
  221. dash = function(x)
  222.  
  223. b = Instance.new("Part", workspace)
  224. game.Debris:AddItem(b, 0.7)
  225. b.Size = Vector3.new(3, 3, 3)
  226. b.BrickColor = color
  227. b.Material = material
  228. b.CanCollide = false
  229. b.CFrame = torso.CFrame * x
  230. t = Instance.new("BodyVelocity", b)
  231. r = Instance.new("BodyAngularVelocity", b)
  232. r.AngularVelocity = Vector3.new(15, 15, 15)
  233. for i = 1, 5 do
  234. wait()
  235. b.Transparency = b.Transparency + 0.1
  236. torso.CFrame = torso.CFrame * CFrame.new(0, 0, -1)
  237. end
  238. end
  239.  
  240. mouse.KeyDown:connect(function(key)
  241.  
  242. if key == "v" then
  243. holding = true
  244. fade()
  245. while holding and wait(0.01) do
  246. dash(CFrame.new(2, 1, 0))
  247. dash(CFrame.new(-2, -1, 1))
  248. dash(CFrame.new(0, 1, 3))
  249. end
  250. end
  251. end
  252. )
  253. mouse.KeyUp:connect(function(key)
  254.  
  255. if key == "v" then
  256. unfade()
  257. holding = false
  258. end
  259. end
  260. )
  261. mouse.KeyDown:connect(function(key)
  262.  
  263. if key == "e" and debounce == false then
  264. debounce = true
  265. blast()
  266. wait(0.5)
  267. debounce = false
  268. end
  269. end
  270. )
  271. mouse.KeyDown:connect(function(key)
  272.  
  273. if key == "q" and debounce == false then
  274. debounce = true
  275. wall()
  276. wait(0.5)
  277. debounce = false
  278. end
  279. end
  280. )
  281. mouse.KeyDown:connect(function(key)
  282.  
  283. if key == "t" and debounce == false then
  284. debounce = true
  285. death()
  286. wait(0.5)
  287. debounce = false
  288. end
  289. end
  290. )
  291. local player = owner
  292. repeat
  293. wait()
  294. until player.Character
  295. local rs = game:GetService("RunService").RenderStepped
  296. local char = player.Character
  297. local HRP = char.HumanoidRootPart
  298. local Head = char.Head
  299. local tents = {}
  300. getValue = function(p, x)
  301.  
  302. return p[2] + 0.5 * x * (p[3] - p[1] + x * (2 * p[1] - 5 * p[2] + 4 * p[3] - p[4] + x * (3 * (p[2] - p[3]) + p[4] - p[1])))
  303. end
  304.  
  305. getV3Cubic = function(tabl, perc)
  306.  
  307. local x, y, z = {}, {}, {}
  308. if perc >= 2 then
  309. perc = perc % 1
  310. for i = 3, 6 do
  311. table.insert(x, tabl[i].x)
  312. table.insert(y, tabl[i].y)
  313. table.insert(z, tabl[i].z)
  314. end
  315. else
  316. do
  317. if perc >= 1 then
  318. perc = perc % 1
  319. for i = 2, 5 do
  320. table.insert(x, tabl[i].x)
  321. table.insert(y, tabl[i].y)
  322. table.insert(z, tabl[i].z)
  323. end
  324. else
  325. do
  326. for i = 1, 4 do
  327. table.insert(x, tabl[i].x)
  328. table.insert(y, tabl[i].y)
  329. table.insert(z, tabl[i].z)
  330. end
  331. do
  332. local X, Y, Z = getValue(x, perc), getValue(y, perc), getValue(z, perc)
  333. return Vector3.new(X, Y, Z)
  334. end
  335. end
  336. end
  337. end
  338. end
  339. end
  340.  
  341. local rainbow = {"Institutional white", "Institutional white", "Institutional white", "Institutional white", "Institutional white", "Institutional white", "Institutional white", "Institutional white", "Institutional white"}
  342. local rainbowCount = 1
  343. local isRainbow = true
  344. for i = 0, 4 do
  345. local m = Instance.new("Model", char)
  346. m.Name = "Tentac00l"
  347. local parts = {}
  348. local lastpart = Head
  349. local defC0 = nil
  350. rainbowCount = 1
  351. for j = 0, 8 do
  352. local sizex = 0.25 - 0.2 * (j / 8)
  353. local sizey = 1.875 - 1.125 * (j / 8)
  354. local p = Instance.new("Part")
  355. p.Size = Vector3.new(0.2, 0.2, 0.2)
  356. p.BrickColor = BrickColor.new("Really black")
  357. p.TopSurface = 0
  358. p.BottomSurface = 0
  359. p.CanCollide = false
  360. p.Material = "SmoothPlastic"
  361. p.TopSurface = 0
  362. p.BottomSurface = 0
  363. local mesh = Instance.new("CylinderMesh", p)
  364. mesh.Name = "CyMesh"
  365. mesh.Scale = Vector3.new(sizex, sizey, sizex) * 5
  366. p.Parent = m
  367. local p2 = p:Clone()
  368. p2.Parent = m
  369. p2.CyMesh.Scale = p2.CyMesh.Scale + Vector3.new(0.075, 0.001, 0.075) * 5
  370. p2.Material = "Neon"
  371. if isRainbow then
  372. p2.BrickColor = BrickColor.new(tostring(rainbow[rainbowCount]))
  373. else
  374. p2.BrickColor = BrickColor.new(j % 2 == 1 and "Toothpaste" or "Electric blue")
  375. end
  376. rainbowCount = rainbowCount + 1
  377. p2.Transparency = 0.35
  378. local w2 = Instance.new("Weld", p)
  379. w2.Parent = p2
  380. w2.Part0 = p
  381. w2.Part1 = p2
  382. local w = Instance.new("Weld", p)
  383. w.Parent = p
  384. w.Part0 = lastpart
  385. w.Part1 = p
  386. if i % 2 ~= 0 or not 96 then
  387. do
  388. w.C0 = CFrame.Angles(0, math.rad(-10 + 200 * i / 4), math.rad(-30 + (j ~= 0 or 70))) * CFrame.new(0, 0.6, 0)
  389. w.C1 = CFrame.new(0, -0.125, 0)
  390. defC0 = w.C0
  391. w.C0 = CFrame.new(0, lastpart.CyMesh.Scale.y / 10, 0)
  392. w.C1 = CFrame.new(0, -sizey / 2, 0)
  393. table.insert(parts, {p, w, p2})
  394. lastpart = p
  395. rs:wait()
  396. -- DECOMPILER ERROR at PC332: LeaveBlock: unexpected jumping out IF_THEN_STMT
  397.  
  398. -- DECOMPILER ERROR at PC332: LeaveBlock: unexpected jumping out IF_STMT
  399.  
  400. end
  401. end
  402. end
  403. local randoms = {Vector3.new(0, 0, 0), Vector3.new(math.random(-28, 28) / 100, math.random(-42, 42) / 100, math.random(-28, 28) / 100), Vector3.new(math.random(-28, 28) / 100, math.random(-42, 42) / 100, math.random(-28, 28) / 100), Vector3.new(math.random(-28, 28) / 100, math.random(-42, 42) / 100, math.random(-28, 28) / 100), Vector3.new(math.random(-28, 28) / 100, math.random(-42, 42) / 100, math.random(-28, 28) / 100), Vector3.new(math.random(-28, 28) / 100, math.random(-42, 42) / 100, math.random(-28, 28) / 100)}
  404. table.insert(tents, {0, randoms, parts, defC0})
  405. end
  406. player.Chatted:connect(function(msg)
  407.  
  408. if string.sub(msg:lower(), 1, 4) == "col/" then
  409. for i,v in pairs(tents) do
  410. for j,o in pairs(v[3]) do
  411. o[3].BrickColor = BrickColor.new(string.sub(msg, 5))
  412. end
  413. end
  414. else
  415. do
  416. if string.sub(msg:lower(), 1, 7) == "/e col/" then
  417. for i,v in pairs(tents) do
  418. for j,o in pairs(v[3]) do
  419. o[3].BrickColor = BrickColor.new(string.sub(msg, 8))
  420. end
  421. end
  422. end
  423. end
  424. end
  425. end
  426. )
  427. rs:connect(function()
  428.  
  429. for i,v in pairs(tents) do
  430. v[1] = v[1] % 200 + 1
  431. if v[1] == 1 then
  432. v[2][1] = v[2][2]
  433. v[2][2] = v[2][3]
  434. v[2][3] = v[2][4]
  435. v[2][4] = v[2][5]
  436. v[2][5] = v[2][6]
  437. v[2][6] = Vector3.new(math.random(-28, 28) / 100, math.random(-42, 42) / 100, math.random(-28, 28) / 100)
  438. end
  439. local p0 = v[2][1]
  440. local p1 = v[2][2]
  441. local p2 = v[2][3]
  442. local p3 = v[2][4]
  443. local p4 = v[2][5]
  444. local p5 = v[2][6]
  445. local arr = {p0, p1, p2, p3, p4, p5}
  446. local dir = i % 2 == 0 and 1 or -1
  447. for j,V in pairs(v[3]) do
  448. local val = math.sin(math.pi / 2 * 2 * ((v[1] + 100 * j / #v[3] * dir) % 100 / 100))
  449. local off = getV3Cubic(arr, (v[1] + 340 * (j / #v[3])) / 200)
  450. V[3].Transparency = 0.12 + val * 0.65
  451. if j == 1 then
  452. V[2].C0 = v[4] * CFrame.Angles(off.x * 2, off.y * 2, off.z * 2)
  453. else
  454. V[2].C0 = CFrame.new(0, V[2].C0.y, 0) * CFrame.Angles(off.x * 2 * (1 + 0.75 * (j / #v[3])), off.y * 2 * (1 + 0.75 * (j / #v[3])), off.z * 2 * (1 + 0.75 * (j / #v[3])))
  455. end
  456. end
  457. end
  458. end
  459. )
  460. Model = Instance.new("Model", game.Workspace)
  461. Model.Name = "ShadowFigs"
  462. Model.ChildAdded:connect(function(Child)
  463.  
  464. wait(0.2)
  465. if Child.Name == "ShadowClone" and Child.Name ~= "HoverBlocks" then
  466. local Light = Instance.new("PointLight", Child.Torso)
  467. Light.Color = Color3.new(1, 1, 1)
  468. Light.Range = 10
  469. Light.Brightness = 2
  470. Light.Shadows = true
  471. for t = 1, 5 do
  472. wait(0.1)
  473. for i = 1, #Child:GetChildren() do
  474. Child:GetChildren()[i].Transparency = t / 10 + 0.5
  475. end
  476. end
  477. Child:remove()
  478. end
  479. end
  480. )
  481. Parts = {"Head", "Torso", "Left Arm", "Left Leg", "Right Arm", "Right Leg"}
  482. repeat
  483. wait()
  484. until game.Players.LocalPlayer
  485. Plr = owner
  486. PlrChildren = Plr:GetChildren()
  487. Plr.Character.Humanoid.WalkSpeed = 32
  488. for i = 1, #PlrChildren do
  489. print(PlrChildren[i])
  490. end
  491. do
  492. while 1 do
  493. Posit = Plr.Character.HumanoidRootPart.Position
  494. wait(0.1)
  495. if Plr.Character.HumanoidRootPart.Position == Posit or Plr.Character.Humanoid.WalkSpeed == 32 then
  496. Set = Instance.new("Model", game.Workspace.ShadowFigs)
  497. Set.Name = "ShadowClone"
  498. for i = 1, #Parts do
  499. PartClone = Plr.Character[Parts[i]]:Clone()
  500. RotationX = math.rad(Plr.Character[Parts[i]].Rotation.X)
  501. RotationY = math.rad(Plr.Character[Parts[i]].Rotation.Y)
  502. RotationZ = math.rad(Plr.Character[Parts[i]].Rotation.Z)
  503. PartClone.CFrame = CFrame.new(Plr.Character[Parts[i]].Position) * CFrame.Angles(RotationX, RotationY, RotationZ)
  504. PartClone.Parent = Set
  505. PartClone.Anchored = true
  506. PartClone.CanCollide = false
  507. PartClone.Transparency = 0.7
  508. PartClone.Material = "Neon"
  509. PartClone.BrickColor = BrickColor.new("White")
  510. if PartClone.Name == "Head" or PartClone.Name == "Torso" then
  511. Children = PartClone:GetChildren()
  512. for i = 1, #Children do
  513. if Children[i].ClassName ~= "Mesh" and Children[i].ClassName ~= "SpecialMesh" then
  514. Children[i]:remove()
  515. end
  516. end
  517. end
  518. end
  519. end
  520. end
  521. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement