Advertisement
ghostteen14

Untitled

May 13th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.52 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  171. if v:IsA("BasePart") then
  172. Instance.new("Fire", v)
  173. v.BrickColor = BrickColor.new("Really black")
  174. v.Material = Enum.Material.Granite
  175. end
  176. end
  177. local Heads = {}
  178. local hells = Instance.new("Sound", workspace)
  179. hells.Looped = true
  180. hells.Volume = 10
  181. local TS = game:GetService("TweenService")
  182. local Mouse = game.Players.LocalPlayer:GetMouse()
  183. local Shoot = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  184. Shoot.RequiresHandle = false
  185. local FireEnabled = false
  186. hells.SoundId = "rbxassetid://718185960"
  187. hells.TimePosition = 10
  188. hells.Playing = true
  189. Instance.new("ColorCorrectionEffect", game.Lighting).TintColor = Color3.new(1,0,0)
  190. Instance.new("PointLight", game.Players.LocalPlayer.Character.Torso).Brightness = 234234
  191. local x = Instance.new("BloomEffect", game.Lighting)
  192. x.Intensity = 1
  193. x.Threshold = 0.8
  194. x.Size = 56
  195.  
  196. function CreateRay(Point_A, Point_B)
  197. local Ray = Ray.new(Point_A, (Point_B - Point_A).Unit * (2 ^ 31 - 1))
  198. local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
  199. local Dist = (Point_A - Pos).Magnitude
  200. local CFrame = CFrame.new(Point_A, Pos) * CFrame.new(0, 0, -Dist / 2)
  201.  
  202. return CFrame, Dist, Part
  203. end
  204.  
  205. game.Lighting.Brightness = 0
  206. game.Lighting.GlobalShadows = false
  207. game.Players.LocalPlayer.Character.Shirt:Remove()
  208. game.Players.LocalPlayer.Character.Pants:Remove()
  209. local player = game:GetService("Players").LocalPlayer
  210. repeat
  211. wait()
  212. until player.Character
  213. local char = player.Character
  214. local torso = char:WaitForChild("Torso")
  215. local mouse = player:GetMouse()
  216. local color = BrickColor.new("Really black")
  217. local material = "Neon"
  218. local trans = 0.5
  219. local debounce = false
  220. for u,c in pairs(player.Character:GetChildren()) do
  221. if c.className == "Hat" and c.Name ~= "Hybrid Goggles" then
  222. c.Handle.BrickColor = BrickColor.new("Really black")
  223. c.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  224. end
  225. end
  226. blast = function()
  227.  
  228. local b = Instance.new("Part", workspace)
  229. game.Debris:AddItem(b, 2)
  230. b.Size = Vector3.new(5, 5, 5)
  231. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  232. b.TopSurface = "Smooth"
  233. b.BottomSurface = "Smooth"
  234. b.CanCollide = false
  235. b.BrickColor = color
  236. b.Transparency = trans
  237. b.Material = material
  238. local v = Instance.new("BodyVelocity", b)
  239. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  240. v.Velocity = torso.CFrame.lookVector * 50
  241. r = Instance.new("BodyAngularVelocity", b)
  242. r.AngularVelocity = Vector3.new(25, 25, 25)
  243. b.Touched:connect(function(hit)
  244.  
  245. p = hit.Parent
  246. if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
  247. b:Remove()
  248. p.Humanoid:TakeDamage(35)
  249. end
  250. end)
  251. end
  252.  
  253. death = function()
  254.  
  255. local b = Instance.new("Part", workspace)
  256. game.Debris:AddItem(b, 2)
  257. b.Size = Vector3.new(5, 5, 5)
  258. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  259. b.TopSurface = "Smooth"
  260. b.BottomSurface = "Smooth"
  261. b.CanCollide = false
  262. b.BrickColor = color
  263. b.Transparency = trans
  264. b.Material = material
  265. local v = Instance.new("BodyVelocity", b)
  266. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  267. v.Velocity = torso.CFrame.lookVector * 50
  268. r = Instance.new("BodyAngularVelocity", b)
  269. r.AngularVelocity = Vector3.new(25, 25, 25)
  270. b.Touched:connect(function(hit)
  271.  
  272. p = hit
  273. if p and p.Name ~= "Base" and p.Name ~= player.Name then
  274. p:Remove()
  275. end
  276. end
  277. )
  278. end
  279.  
  280. wall = function()
  281.  
  282. local b = Instance.new("Part", workspace)
  283. game.Debris:AddItem(b, 5)
  284. b.Size = Vector3.new(1, 1, 1)
  285. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  286. b.TopSurface = "Smooth"
  287. b.BottomSurface = "Smooth"
  288. b.CanCollide = false
  289. b.Anchored = true
  290. b.BrickColor = color
  291. b.Transparency = trans
  292. b.Material = material
  293. for i = 1, 50 do
  294. wait()
  295. b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
  296. b.Size = b.Size + Vector3.new(0.5, 0.5, 0)
  297. end
  298. b.CanCollide = true
  299. b.Touched:connect(function(hit)
  300.  
  301. p = hit.Parent
  302. if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
  303. p.Humanoid:TakeDamage(5)
  304. end
  305. end
  306. )
  307. end
  308.  
  309. fade = function()
  310.  
  311. for i,v in pairs(char:GetChildren()) do
  312. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  313. v.Transparency = 0.5
  314. end
  315. end
  316. for i,v in pairs(char:GetChildren()) do
  317. if v.className == "Hat" then
  318. v.Handle.Transparency = 0.5
  319. end
  320. end
  321. end
  322.  
  323. unfade = function()
  324.  
  325. for i,v in pairs(char:GetChildren()) do
  326. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  327. v.Transparency = 0
  328. end
  329. end
  330. for i,v in pairs(char:GetChildren()) do
  331. if v.className == "Hat" then
  332. v.Handle.Transparency = 0
  333. end
  334. end
  335. end
  336.  
  337. dash = function(x)
  338.  
  339. b = Instance.new("Part", workspace)
  340. game.Debris:AddItem(b, 0.7)
  341. b.Size = Vector3.new(3, 3, 3)
  342. b.BrickColor = color
  343. b.Material = material
  344. b.CanCollide = false
  345. b.CFrame = torso.CFrame * x
  346. t = Instance.new("BodyVelocity", b)
  347. r = Instance.new("BodyAngularVelocity", b)
  348. r.AngularVelocity = Vector3.new(15, 15, 15)
  349. for i = 1, 5 do
  350. wait()
  351. b.Transparency = b.Transparency + 0.1
  352. torso.CFrame = torso.CFrame * CFrame.new(0, 0, -1)
  353. end
  354. end
  355.  
  356. mouse.KeyDown:connect(function(key)
  357.  
  358. if key == "v" then
  359. holding = true
  360. fade()
  361. while holding and wait(0.01) do
  362. dash(CFrame.new(2, 1, 0))
  363. dash(CFrame.new(-2, -1, 1))
  364. dash(CFrame.new(0, 1, 3))
  365. end
  366. end
  367. end
  368. )
  369. mouse.KeyUp:connect(function(key)
  370.  
  371. if key == "v" then
  372. unfade()
  373. holding = false
  374. end
  375. end
  376. )
  377. mouse.KeyDown:connect(function(key)
  378.  
  379. if key == "e" and debounce == false then
  380. debounce = true
  381. blast()
  382. wait(0.5)
  383. debounce = false
  384. end
  385. end
  386. )
  387. mouse.KeyDown:connect(function(key)
  388.  
  389. if key == "q" and debounce == false then
  390. debounce = true
  391. wall()
  392. wait(0.5)
  393. debounce = false
  394. end
  395. end
  396. )
  397. mouse.KeyDown:connect(function(key)
  398.  
  399. if key == "t" and debounce == false then
  400. debounce = true
  401. death()
  402. wait(0.5)
  403. debounce = false
  404. end
  405. end
  406. )
  407.  
  408. local player = game.Players.LocalPlayer
  409. repeat wait() until player.Character;
  410. local rs = game:GetService("RunService").RenderStepped
  411. local char = player.Character
  412. local HRP = char.HumanoidRootPart
  413. local Head = char.Head
  414. local tents = {}
  415. function getValue(p, x)
  416. return p[2] + 0.5 * x*(p[3] - p[1] + x*(2.0*p[1] - 5.0*p[2] + 4.0*p[3] - p[4] + x*(3.0*(p[2] - p[3]) + p[4] - p[1])))
  417. end
  418. function getV3Cubic(tabl,perc)
  419. local x,y,z = {},{},{}
  420. if perc >= 2 then
  421. perc = perc %1
  422. for i = 3, 6 do
  423. table.insert(x,tabl[i].x)
  424. table.insert(y,tabl[i].y)
  425. table.insert(z,tabl[i].z)
  426. end
  427. elseif perc >= 1 then
  428. perc = perc %1
  429. for i = 2, 5 do
  430. table.insert(x,tabl[i].x)
  431. table.insert(y,tabl[i].y)
  432. table.insert(z,tabl[i].z)
  433. end
  434. else
  435. for i = 1, 4 do
  436. table.insert(x,tabl[i].x)
  437. table.insert(y,tabl[i].y)
  438. table.insert(z,tabl[i].z)
  439. end
  440. end
  441. local X,Y,Z = getValue(x,perc),getValue(y,perc),getValue(z,perc)
  442. return Vector3.new(X,Y,Z)
  443. end
  444. local rainbow = {"Really red","Really red","Really red","Really red","Really red","Really red","Really red","Really red","Really red"}
  445. local rainbowCount = 1
  446. local isRainbow = true
  447. for i = 0, 8 do
  448. local m = Instance.new("Model",char)
  449. m.Name = "Tentac00l"
  450. local parts = {}
  451. local lastpart = Head
  452. local defC0
  453. rainbowCount = 1
  454. for j = 0, 8 do
  455. local sizex = 0.25 - 0.2 * (j/8)
  456. local sizey = (15/8) - (9/8) * (j/8)
  457. local p = Instance.new("Part")
  458. p.Size = Vector3.new(0.2,0.2,0.2)
  459. p.BrickColor = BrickColor.new("Really black")
  460. p.TopSurface = 0
  461. p.Locked = true
  462. p.BottomSurface = 0
  463. p.CanCollide = false
  464. p.Material = "SmoothPlastic"
  465. p.TopSurface = 0
  466. p.BottomSurface = 0
  467. local mesh = Instance.new("CylinderMesh",p)
  468. mesh.Name = "CyMesh"
  469. mesh.Scale = Vector3.new(sizex,sizey,sizex) *5
  470. p.Parent = m
  471. local p2 = p:Clone()
  472. p2.Parent = m
  473. p2.CyMesh.Scale = p2.CyMesh.Scale + Vector3.new(0.075,0.001,0.075) * 5
  474. p2.Material = "Neon"
  475. p2.Locked = true
  476. if isRainbow then
  477. p2.BrickColor = BrickColor.new(tostring(rainbow[rainbowCount]))
  478. else
  479. p2.BrickColor = BrickColor.new(j%2 == 1 and "Toothpaste" or "Electric blue")
  480. end
  481. rainbowCount = rainbowCount + 1
  482. p2.Transparency = 0.35
  483. local w2 = Instance.new("Weld",p)
  484. w2.Parent = p2
  485. w2.Part0 = p
  486. w2.Part1 = p2
  487. local w = Instance.new("Weld",p)
  488. w.Parent = p
  489. w.Part0 = lastpart
  490. w.Part1 = p
  491. if j == 0 then
  492. w.C0 = CFrame.Angles(0,math.rad(-10 + 200 * i/4),math.rad(-30 + (i%2==0 and 96 or 70))) * CFrame.new(0,0.6,0)
  493. w.C1 = CFrame.new(0,-0.125,0)
  494. defC0 = w.C0
  495. else
  496. w.C0 = CFrame.new(0,lastpart.CyMesh.Scale.y/10,0)
  497. w.C1 = CFrame.new(0,-sizey/2,0)
  498. if mesh.Scale == Vector3.new(0.25, 3.75, 0.25) then
  499. mesh:Remove()
  500. local mesh2 = Instance.new("SpecialMesh",p2)
  501. mesh2.Scale = Vector3.new(1,1,1)
  502. mesh2.MeshType = Enum.MeshType.FileMesh
  503. mesh2.MeshId = "rbxassetid://36869983"
  504. p2.Name = "Last"
  505. table.insert(Heads, p2)
  506. end
  507. end
  508. table.insert(parts,{p,w,p2})
  509. lastpart = p
  510. rs:wait()
  511. end
  512. local randoms = {Vector3.new(0,0,0),
  513. Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
  514. Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
  515. Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
  516. Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
  517. Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
  518. }
  519. table.insert(tents,{0,randoms,parts,defC0})
  520. end
  521. player.Chatted:connect(function(msg)
  522. if string.sub(msg:lower(),1,4) == "col/" then
  523. for i, v in pairs(tents) do
  524. for j, o in pairs(v[3]) do
  525. o[3].BrickColor = BrickColor.new(string.sub(msg,5))
  526. end
  527. end
  528. elseif string.sub(msg:lower(),1,7) == "/e col/" then
  529. for i, v in pairs(tents) do
  530. for j, o in pairs(v[3]) do
  531. o[3].BrickColor = BrickColor.new(string.sub(msg,8))
  532. end
  533. end
  534. end
  535. end)
  536. rs:connect(function()
  537. for i, v in pairs(tents) do
  538. v[1] = v[1] %200 + 1
  539. if v[1] == 1 then
  540. v[2][1] = v[2][2]
  541. v[2][2] = v[2][3]
  542. v[2][3] = v[2][4]
  543. v[2][4] = v[2][5]
  544. v[2][5] = v[2][6]
  545. v[2][6] = Vector3.new(math.random(-28,28)/100,math.random(-42,42)/100,math.random(-28,28)/100);
  546. end
  547. local p0 = v[2][1]
  548. local p1 = v[2][2]
  549. local p2 = v[2][3]
  550. local p3 = v[2][4]
  551. local p4 = v[2][5]
  552. local p5 = v[2][6]
  553. local arr = {p0,p1,p2,p3,p4,p5}
  554. local dir = i%2 == 0 and 1 or -1
  555. for j, V in pairs(v[3]) do
  556. local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100))
  557. local off = getV3Cubic(arr,(v[1] + 340*(j/#v[3]))/200)
  558. V[3].Transparency = 0.12 + val * 0.65
  559. if j == 1 then
  560. V[2].C0 = v[4] * CFrame.Angles(off.x*2,off.y*2,off.z*2)
  561. else
  562. 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])))
  563. end
  564. end
  565. end
  566. end)
  567.  
  568. -- params : ...
  569.  
  570. Model = Instance.new("Model", game.Workspace)
  571. Model.Name = "ShadowFigs"
  572. Model.ChildAdded:connect(function(Child)
  573.  
  574. wait(0.2)
  575. if Child.Name == "ShadowClone" and Child.Name ~= "HoverBlocks" then
  576. local Light = Instance.new("PointLight", workspace)
  577. Light.Color = Color3.new(1, 1, 1)
  578. Light.Range = 10
  579. Light.Brightness = 2
  580. Light.Shadows = true
  581. Light:Remove()
  582. for t = 1, 5 do
  583. wait(0.1)
  584. for i = 1, #Child:GetChildren() do
  585. Child:GetChildren()[i].Transparency = t / 10 + 0.5
  586. end
  587. end
  588. Child:remove()
  589. end
  590. end
  591. )
  592. Parts = {"Head", "Torso", "Left Arm", "Left Leg", "Right Arm", "Right Leg"}
  593. repeat
  594. wait()
  595. until game.Players.LocalPlayer
  596. Plr = game.Players.LocalPlayer
  597. PlrChildren = Plr:GetChildren()
  598. Plr.Character.Humanoid.WalkSpeed = 16
  599. for i = 1, #PlrChildren do
  600. print(PlrChildren[i])
  601. end
  602.  
  603. Mouse.Button1Down:Connect(function()
  604. FireEnabled = true
  605. end)
  606.  
  607. Mouse.Button1Up:Connect(function()
  608. FireEnabled = false
  609. end)
  610.  
  611. while wait() do
  612. if FireEnabled == true then
  613. for i, v in pairs(Heads) do
  614. rs:wait()
  615. coroutine.resume(coroutine.create(function()
  616. local CF, D, Hit = CreateRay(v.CFrame.p, Mouse.Hit.p)
  617. if Hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  618. Hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  619. end
  620. local Fire = Instance.new("Part", workspace)
  621. local Laser = Instance.new("Part", workspace)
  622. Laser.Anchored = true
  623. Laser.CanCollide = false
  624. Laser.Locked = true
  625. Instance.new("PointLight", Laser).Brightness = 23423
  626. Laser.BrickColor = BrickColor.new("Really red")
  627. Laser.Material = "Neon"
  628. Laser.Size = Vector3.new(0.2, 0.2, D)
  629. Laser.CFrame = CF
  630. wait()
  631. Laser:Remove()
  632. end))
  633. coroutine.resume(coroutine.create(function()
  634. local Fire = Instance.new("Part", workspace)
  635. Fire.Size = Vector3.new(0.05, 0.05, 0.05)
  636. Fire.Transparency = 0
  637. Fire.Anchored = true
  638. Fire.CanCollide = false
  639. Fire.CFrame = Mouse.Hit
  640. Instance.new("PointLight", Fire)
  641. Instance.new("Fire", Fire)
  642. wait(1)
  643. Fire:Remove()
  644. end))
  645. end
  646. end
  647. end
  648.  
  649. do
  650. while 1 do
  651. Posit = Plr.Character.HumanoidRootPart.Position
  652. wait(0.1)
  653. if Plr.Character.HumanoidRootPart.Position == Posit or Plr.Character.Humanoid.WalkSpeed == 32 then
  654. Set = Instance.new("Model", game.Workspace.ShadowFigs)
  655. Set.Name = "ShadowClone"
  656. for i = 1, #Parts do
  657. PartClone = Plr.Character[Parts[i]]:Clone()
  658. RotationX = math.rad(Plr.Character[Parts[i]].Rotation.X)
  659. RotationY = math.rad(Plr.Character[Parts[i]].Rotation.Y)
  660. RotationZ = math.rad(Plr.Character[Parts[i]].Rotation.Z)
  661. PartClone.CFrame = CFrame.new(Plr.Character[Parts[i]].Position) * CFrame.Angles(RotationX, RotationY, RotationZ)
  662. PartClone.Parent = Set
  663. PartClone.Size = Vector3.new(PartClone.Size.X - 0.2,PartClone.Size.Y - 0.2,PartClone.Size.Z - 0.2)
  664. PartClone.Anchored = true
  665. PartClone.CanCollide = false
  666. PartClone.Transparency = 0.7
  667. PartClone.Material = "Neon"
  668. PartClone.BrickColor = BrickColor.new("White")
  669. Delete = Instance.new("BlockMesh",PartClone)
  670. Delete.Scale = Vector3.new(0,0,0)
  671. if PartClone.Name == "Head" or PartClone.Name == "Torso" then
  672. PartClone:Remove()
  673. Children = PartClone:GetChildren()
  674. for i = 1, #Children do
  675. if Children[i].ClassName ~= "Mesh" and Children[i].ClassName ~= "SpecialMesh" then
  676. Children[i]:remove()
  677. end
  678. end
  679. end
  680. end
  681. end
  682. end
  683. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement