Advertisement
yoyo74456

Untitled

Sep 11th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.04 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. InternalData = {}
  3. do
  4. script.Parent = owner.Character
  5. local Event = Instance.new("RemoteEvent")
  6. Event.Name = "UserInput"
  7. local function NewFakeEvent()
  8. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  9. return Fake
  10. end
  11. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  12. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  13. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  14. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  15. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  16. local function TriggerEvent(self,Event,...)
  17. local Trigger = Mouse[Event]
  18. if Trigger and Trigger.fakeEvent and Trigger.Function then
  19. Trigger.Function(...)
  20. end
  21. end
  22. Mouse.TrigEvent = TriggerEvent
  23. UserInputService.TrigEvent = TriggerEvent
  24. Event.OnServerEvent:Connect(function(FiredBy,Input)
  25. if FiredBy.Name ~= owner.Name then end
  26. if Input.MouseEvent then
  27. Mouse.Target = Input.Target
  28. Mouse.Hit = Input.Hit
  29. else
  30. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  31. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  32. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  33. end
  34. for _,Action in pairs(ContextActionService.Actions) do
  35. for _,Key in pairs(Action.Keys) do
  36. if Key==Input.KeyCode then
  37. Action.Function(Action.Name,Input.UserInputState,Input)
  38. end
  39. end
  40. end
  41. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  42. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  43. end
  44. end)
  45. InternalData["Mouse"] = Mouse
  46. InternalData["ContextActionService"] = ContextActionService
  47. InternalData["UserInputService"] = UserInputService
  48. Event.Parent = NLS([[
  49. local Player = owner
  50. local Event = script:WaitForChild("UserInput")
  51. local UserInputService = game:GetService("UserInputService")
  52. local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input)
  58. UserInputService.InputEnded:Connect(Input)
  59. local Hit,Target
  60. while wait(1/30) do
  61. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  62. Hit,Target = Mouse.Hit,Mouse.Target
  63. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64. end
  65. end
  66. ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69. __index = function (self,Index)
  70. local Sandbox = function (Thing)
  71. if Thing:IsA("Player") then
  72. local RealPlayer = Thing
  73. return setmetatable({},{
  74. __index = function (self,Index)
  75. local Type = type(RealPlayer[Index])
  76. if Type == "function" then
  77. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78. return function (self)
  79. return InternalData["Mouse"]
  80. end
  81. end
  82. return function (self,...)
  83. return RealPlayer[Index](RealPlayer,...)
  84. end
  85. else
  86. if Index == "PlrObj" then
  87. return RealPlayer
  88. end
  89. return RealPlayer[Index]
  90. end
  91. end;
  92. __tostring = function(self)
  93. return RealPlayer.Name
  94. end
  95. })
  96. end
  97. end
  98. if RealGame[Index] then
  99. local Type = type(RealGame[Index])
  100. if Type == "function" then
  101. if Index:lower() == "getservice" or Index:lower() == "service" then
  102. return function (self,Service)
  103. if Service:lower() == "players" then
  104. return setmetatable({},{
  105. __index = function (self2,Index2)
  106. local RealService = RealGame:GetService(Service)
  107. local Type2 = type(Index2)
  108. if Type2 == "function" then
  109. return function (self,...)
  110. return RealService[Index2](RealService,...)
  111. end
  112. else
  113. if Index2:lower() == "localplayer" then
  114. return Sandbox(owner)
  115. end
  116. return RealService[Index2]
  117. end
  118. end;
  119. __tostring = function(self)
  120. return RealGame:GetService(Service).Name
  121. end
  122. })
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["ContextActionService"]
  125. elseif Service:lower() == "contextactionservice" then
  126. return InternalData["UserInputService"]
  127. elseif Service:lower() == "runservice" then
  128. return setmetatable({},{
  129. __index = function(self2,Index2)
  130. local RealService = RealGame:GetService(Service)
  131. local Type2 = type(Index2)
  132. if Type2 == "function" then
  133. return function (self,...)
  134. return RealService[Index2](RealService,...)
  135. end
  136. else
  137. if Index2:lower() == "bindtorenderstep" then
  138. return function (self,Name,Priority,Function)
  139. return RealGame:GetService("RunService").Stepped:Connect(Function)
  140. end
  141. end
  142. if Index2:lower() == "renderstepped" then
  143. return RealService["Stepped"]
  144. end
  145. return RealService[Index2]
  146. end
  147. end
  148. })
  149. else
  150. return RealGame:GetService(Service)
  151. end
  152. end
  153. end
  154. return function (self,...)
  155. return RealGame[Index](RealGame,...)
  156. end
  157. else
  158. if game:GetService(Index) then
  159. return game:GetService(Index)
  160. end
  161. return RealGame[Index]
  162. end
  163. else
  164. return nil
  165. end
  166. end
  167. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  168. --
  169. Player = game:GetService("Players").LocalPlayer
  170. Char = Player.Character
  171. --
  172. local ShockWave = Instance.new("Part", Char)
  173. local Wave = Instance.new("SpecialMesh", ShockWave)
  174. Wave.MeshId = "http://www.roblox.com/asset/?id=20329976"
  175. ShockWave.Transparency = 1
  176. ShockWave.CanCollide = false
  177. ShockWave.Anchored = true
  178. Floating = true
  179. Attacking = false
  180. Char.Humanoid.HipHeight = 1
  181. --
  182. local root = Char.HumanoidRootPart
  183. local larm = Char["Left Arm"]
  184. local rarm = Char["Right Arm"]
  185. local lleg = Char["Left Leg"]
  186. local rleg = Char["Right Leg"]
  187. local hed = Char.Head
  188. local torso = Char.Torso
  189.  
  190. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  191. local wld = Instance.new("Weld", wp1)
  192. wld.Part0 = wp0
  193. wld.Part1 = wp1
  194. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  195. end
  196.  
  197. newWeld(torso, larm, -1.5, 0.5, 0)
  198. larm.Weld.C1 = CFrame.new(0.1, 0.6, 0.2) * CFrame.Angles(math.rad(-17,97), math.rad(168.77), math.rad(-11.14))
  199. newWeld(torso, rarm, 1.5, 0.5, 0)
  200. rarm.Weld.C1 = CFrame.new(-0.1, 0.6, 0.2) * CFrame.Angles(math.rad(-17.97), math.rad(191.23), math.rad(11.32))
  201. newWeld(torso, hed, 0, 1.5, 0)
  202. newWeld(torso, lleg, -0.5, -1, 0)
  203. lleg.Weld.C1 = CFrame.new(0, 0.9, 0) * CFrame.Angles(math.rad(-15),math.rad(180),math.rad(0.09))
  204. newWeld(torso, rleg, 0.5, -1, 0)
  205. rleg.Weld.C1 = CFrame.new(0, 0.9, 0) * CFrame.Angles(math.rad(-15),math.rad(180),math.rad(0.09))
  206. newWeld(root, torso, 0, -1, 0)
  207. torso.Weld.C1 = CFrame.new(0, -1, 0)
  208.  
  209. Mouse = Player:GetMouse()
  210. Mouse.KeyDown:connect(function(key)
  211. if key:lower() == 'e' and Attacking == false then
  212. Attacking = true
  213. hed.Anchored = true
  214. larm.Weld.C1 = CFrame.new(0, 0.9, 0.2) * CFrame.Angles(math.rad(28.24), math.rad(-171.2), math.rad(171.24))
  215. local Part1 = Instance.new("Part", larm)
  216. Part1.Anchored = true
  217. Part1.Size = Vector3.new(1,1,1)
  218. Part1.Color = Color3.fromRGB(91, 93, 105)
  219. Part1.Material = "Neon"
  220. Part1.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(0,math.rad(-130),0)
  221. local Part2 = Instance.new("Part", larm)
  222. Part2.Anchored = true
  223. Part2.Size = Vector3.new(1,1,1)
  224. Part2.Color = Color3.fromRGB(163, 162, 165)
  225. Part2.Transparency = 0.7
  226. Part2.Material = "Neon"
  227. Part2.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(math.rad(55.63),math.rad(-40),math.rad(-30))
  228. local Part3 = Instance.new("Part", larm)
  229. Part3.Anchored = true
  230. Part3.Size = Vector3.new(1,1,1)
  231. Part3.Color = Color3.fromRGB(99, 95, 98)
  232. Part3.Material = "Neon"
  233. Part3.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(math.rad(-14),math.rad(63),math.rad(-27))
  234. wait(0.2)
  235. local Model = Instance.new("Model", game.workspace)
  236. local Cloud1 = Instance.new("Part", Model)
  237. Cloud1.Position = Mouse.Hit.p
  238. Cloud1.CFrame = Cloud1.CFrame * CFrame.new(0,22.2,-1)
  239. Cloud1.Size = Vector3.new(8.5,2,5)
  240. Cloud1.Color = Color3.fromRGB(88,88,91)
  241. Cloud1.Anchored = true
  242. Cloud1.Material = "Glass"
  243. local Cloud2 = Instance.new("Part", Model)
  244. Cloud2.CFrame = Cloud1.CFrame * CFrame.new(-0.8,-0.5,2.7)
  245. Cloud2.Size = Vector3.new(5.6,1.5,3.5)
  246. Cloud2.Color = Color3.fromRGB(88,88,91)
  247. Cloud2.Anchored = true
  248. Cloud2.Material = "Glass"
  249. local Cloud3 = Instance.new("Part", Model)
  250. Cloud3.CFrame = Cloud1.CFrame * CFrame.new(0.5,-0.4,-3)
  251. Cloud3.Size = Vector3.new(6,2,2)
  252. Cloud3.Color = Color3.fromRGB(88,88,91)
  253. Cloud3.Anchored = true
  254. Cloud3.Material = "Glass"
  255. local Lightning1 = Instance.new("Part", Model)
  256. Lightning1.Position = Mouse.Hit.p
  257. Lightning1.CFrame = Lightning1.CFrame * CFrame.new(0,2.25,0) * CFrame.Angles(0,0,0)
  258. Lightning1.Size = Vector3.new(1,5.5,1)
  259. Lightning1.Color = Color3.fromRGB(84, 77, 0)
  260. Lightning1.Anchored = true
  261. Lightning1.Material = "Neon"
  262. local Lightning2 = Instance.new("Part", Model)
  263. Lightning2.Position = Mouse.Hit.p
  264. Lightning2.CFrame = Lightning1.CFrame * CFrame.new(-1.2,4.1,-1) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(30))
  265. Lightning2.Size = Vector3.new(1,5.5,1)
  266. Lightning2.Color = Color3.fromRGB(84, 77, 0)
  267. Lightning2.Anchored = true
  268. Lightning2.Material = "Neon"
  269. local Lightning3 = Instance.new("Part", Model)
  270. Lightning3.Position = Mouse.Hit.p
  271. Lightning3.CFrame = Lightning2.CFrame * CFrame.new(2,3,1) * CFrame.Angles(math.rad(60),math.rad(0),math.rad(-60))
  272. Lightning3.Size = Vector3.new(1,5.5,1)
  273. Lightning3.Color = Color3.fromRGB(84, 77, 0)
  274. Lightning3.Anchored = true
  275. Lightning3.Material = "Neon"
  276. local Lightning4 = Instance.new("Part", Model)
  277. Lightning4.Position = Mouse.Hit.p
  278. Lightning4.CFrame = Lightning3.CFrame * CFrame.new(-2.2,4.4,-1.7) * CFrame.Angles(math.rad(-30),math.rad(-15),math.rad(45))
  279. Lightning4.Size = Vector3.new(1,8,1)
  280. Lightning4.Color = Color3.fromRGB(84, 77, 0)
  281. Lightning4.Anchored = true
  282. Lightning4.Material = "Neon"
  283. local Lightning5 = Instance.new("Part", Model)
  284. Lightning5.Position = Mouse.Hit.p
  285. Lightning5.CFrame = Lightning4.CFrame * CFrame.new(1,5,0.1) * CFrame.Angles(math.rad(30),math.rad(15),math.rad(-45))
  286. Lightning5.Size = Vector3.new(1,4,1)
  287. Lightning5.Color = Color3.fromRGB(84, 77, 0)
  288. Lightning5.Anchored = true
  289. Lightning5.Material = "Neon"
  290. local Lightning6 = Instance.new("Part", Model)
  291. Lightning6.Position = Mouse.Hit.p
  292. Lightning6.CFrame = Lightning5.CFrame * CFrame.new(-1,0,1) * CFrame.Angles(math.rad(0),math.rad(20),math.rad(40))
  293. Lightning6.Size = Vector3.new(1,4,1)
  294. Lightning6.Color = Color3.fromRGB(84, 77, 0)
  295. Lightning6.Anchored = true
  296. Lightning6.Material = "Neon"
  297. Mouse.TargetFilter = workspace.Model
  298. local Hit = Instance.new("Part", Model)
  299. Hit.Transparency = 0
  300. Hit.Position = Mouse.Hit.p
  301. Hit.CFrame = Lightning1.CFrame * CFrame.new(0,-2,0)
  302. Hit.CanCollide = false
  303. Hit.Anchored = true
  304. Hit.Size = Vector3.new(4,4,4)
  305. Hit.Color = Color3.fromRGB(84, 77, 0)
  306. Hit.Material = "Neon"
  307. local tweenService = game:GetService("TweenService")
  308. local tweenInformation = TweenInfo.new (
  309. 1,
  310. Enum.EasingStyle.Quad,
  311. Enum.EasingDirection.Out,
  312. 0,
  313. false,
  314. 0
  315. )
  316.  
  317. local partProperties = {
  318. CFrame = Hit.CFrame * CFrame.Angles(math.rad(-45),math.rad(-80),math.rad(5.5));
  319. Size = Vector3.new(6,6,6);
  320. }
  321.  
  322. local Open = tweenService:Create(Hit,tweenInformation,partProperties)
  323. Open:Play()
  324. wait(1)
  325. local tweenService = game:GetService("TweenService")
  326. local tweenInformation = TweenInfo.new (
  327. 0.2,
  328. Enum.EasingStyle.Quad,
  329. Enum.EasingDirection.Out,
  330. 0,
  331. false,
  332. 0
  333. )
  334.  
  335. local partProperties = {
  336. CFrame = Hit.CFrame * CFrame.Angles(math.rad(65),math.rad(286),math.rad(19));
  337. Size = Vector3.new(0,0,0);
  338. Transparency = 1
  339. }
  340.  
  341. local Close = tweenService:Create(Hit,tweenInformation,partProperties)
  342. Close:Play()
  343. wait(0.2)
  344. local Circle = Instance.new("Part", Model)
  345. Circle.Shape = "Ball"
  346. Circle.Size = Vector3.new(0,0,0)
  347. Circle.Color = Color3.fromRGB(84, 77, 0)
  348. Circle.Material = "Neon"
  349. Circle.CFrame = Hit.CFrame
  350. Circle.Anchored = true
  351. Circle.CanCollide = false
  352. local tweenService = game:GetService("TweenService")
  353. local tweenInformation = TweenInfo.new (
  354. 0.3,
  355. Enum.EasingStyle.Quad,
  356. Enum.EasingDirection.Out,
  357. 0,
  358. false,
  359. 0
  360. )
  361.  
  362. local partProperties = {
  363. Size = Vector3.new(15,15,15);
  364. }
  365.  
  366. local CircleOpen = tweenService:Create(Circle,tweenInformation,partProperties)
  367. CircleOpen:Play()
  368. Circle.Touched:connect(function(plr)
  369. if plr.Parent:FindFirstChildOfClass("Humanoid") then
  370. if plr.Parent:FindFirstChildOfClass("Humanoid").MaxHealth <= 100000 then
  371. plr.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(100000)
  372. else
  373. plr.Parent:BreakJoints()
  374. end
  375. end
  376. end)
  377. wait(0.1)
  378. local tweenService = game:GetService("TweenService")
  379. local tweenInformation = TweenInfo.new (
  380. 0.2,
  381. Enum.EasingStyle.Quad,
  382. Enum.EasingDirection.Out,
  383. 0,
  384. false,
  385. 0
  386. )
  387.  
  388. local partProperties = {
  389. Transparency = 1
  390. }
  391.  
  392. local CircleTransparency = tweenService:Create(Circle,tweenInformation,partProperties)
  393. CircleTransparency:Play()
  394. wait(0.5)
  395. Model:Destroy()
  396. wait(0.5)
  397. hed.Anchored = false
  398. Part1:Destroy()
  399. Part2:Destroy()
  400. Part3:Destroy()
  401. Attacking = false
  402. larm.Weld.C1 = CFrame.new(0.1, 0.6, 0.2) * CFrame.Angles(math.rad(-17,97), math.rad(168.77), math.rad(-11.14))
  403. end
  404. end)
  405.  
  406. repeat
  407. local tweenService = game:GetService("TweenService")
  408.  
  409. local tweenInformation = TweenInfo.new (
  410. 1.5,
  411. Enum.EasingStyle.Linear,
  412. Enum.EasingDirection.In,
  413. 0,
  414. false,
  415. 0
  416. )
  417.  
  418. local partProperties = {
  419. HipHeight = 1.5
  420. }
  421.  
  422. local Up = tweenService:Create(Char.Humanoid,tweenInformation,partProperties)
  423. Up:Play()
  424. wait(1.5)
  425.  
  426. local tweenService = game:GetService("TweenService")
  427.  
  428. local tweenInformation = TweenInfo.new (
  429. 1.5,
  430. Enum.EasingStyle.Linear,
  431. Enum.EasingDirection.In,
  432. 0,
  433. false,
  434. 0
  435. )
  436.  
  437. local partProperties = {
  438. HipHeight = 1
  439. }
  440.  
  441. local Down = tweenService:Create(Char.Humanoid,tweenInformation,partProperties)
  442. Down:Play()
  443. wait(1.5)
  444.  
  445. if SW then
  446. SW:Destroy()
  447. end
  448. SW = ShockWave:Clone()
  449. SW.CanCollide = false
  450. SW.Anchored = true
  451. SW.CFrame = torso.CFrame * CFrame.new(0,-4,0)
  452. SW.Material = "Grass"
  453. SW.Color = Color3.fromRGB(44, 101, 29)
  454. SW.Parent = Char
  455. SW.Transparency = 0
  456. local tweenService = game:GetService("TweenService")
  457.  
  458. local tweenInformation = TweenInfo.new (
  459. 3,
  460. Enum.EasingStyle.Quad,
  461. Enum.EasingDirection.In,
  462. 0,
  463. false,
  464. 0
  465. )
  466.  
  467. local partProperties = {
  468. Scale = Vector3.new(2.5,2.5,2.5)
  469. }
  470.  
  471. local Waveout = tweenService:Create(SW.Mesh,tweenInformation,partProperties)
  472. Waveout:Play()
  473. local tweenService = game:GetService("TweenService")
  474.  
  475. local tweenInformation = TweenInfo.new (
  476. 3,
  477. Enum.EasingStyle.Quad,
  478. Enum.EasingDirection.In,
  479. 0,
  480. false,
  481. 0
  482. )
  483.  
  484. local partProperties = {
  485. Transparency = 1
  486. }
  487.  
  488. local WaveFade = tweenService:Create(SW,tweenInformation,partProperties)
  489. WaveFade:Play()
  490. until
  491. Floating == false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement