Advertisement
yoyo74456

Untitled

Sep 11th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.16 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' 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 Part1 = Instance.new("Part", larm)
  229. Part1.Anchored = true
  230. Part1.Size = Vector3.new(1,1,1)
  231. Part1.Color = Color3.fromRGB(99, 95, 98)
  232. Part1.Material = "Neon"
  233. Part1.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(math.rad(-14),math.rad(63),math.rad(-27))
  234. local Cloud1 = Instance.new("Part", game.workspace)
  235. Cloud1.Position = Mouse.Hit.p
  236. Cloud1.CFrame = Cloud1.CFrame * CFrame.new(0,22.2,0)
  237. Cloud1.Size = Vector3.new(8.5,2,5)
  238. Cloud1.Color = Color3.fromRGB(88,88,91)
  239. Cloud1.Anchored = true
  240. Cloud1.Material = "Glass"
  241. local Cloud2 = Instance.new("Part", game.workspace)
  242. Cloud2.CFrame = Cloud1.CFrame * CFrame.new(-0.8,-0.5,2.7)
  243. Cloud2.Size = Vector3.new(5.6,1.5,3.5)
  244. Cloud2.Color = Color3.fromRGB(88,88,91)
  245. Cloud2.Anchored = true
  246. Cloud2.Material = "Glass"
  247. local Cloud3 = Instance.new("Part", game.workspace)
  248. Cloud3.CFrame = Cloud1.CFrame * CFrame.new(0.5,-0.4,-3)
  249. Cloud3.Size = Vector3.new(6,2,2)
  250. Cloud3.Color = Color3.fromRGB(88,88,91)
  251. Cloud3.Anchored = true
  252. Cloud3.Material = "Glass"
  253. local Lightning1 = Instance.new("Part", game.workspace)
  254. Lightning1.Position = Mouse.Hit.p
  255. Lightning1.CFrame = Lightning1.CFrame * CFrame.new(0,2.25,0) * CFrame.Angles(0,0,0)
  256. Lightning1.Size = Vector3.new(1,5.5,1)
  257. Lightning1.Color = Color3.fromRGB(84, 77, 0)
  258. Lightning1.Anchored = true
  259. Lightning1.Material = "Neon"
  260. local Lightning2 = Instance.new("Part", game.workspace)
  261. Lightning2.Position = Mouse.Hit.p
  262. Lightning2.CFrame = Lightning1.CFrame * CFrame.new(-1.2,4.1,-1) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(30))
  263. Lightning2.Size = Vector3.new(1,5.5,1)
  264. Lightning2.Color = Color3.fromRGB(84, 77, 0)
  265. Lightning2.Anchored = true
  266. Lightning2.Material = "Neon"
  267. local Lightning3 = Instance.new("Part", game.workspace)
  268. Lightning3.Position = Mouse.Hit.p
  269. Lightning3.CFrame = Lightning2.CFrame * CFrame.new(-1.2,2.6,-1.2) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(-30))
  270. Lightning3.Size = Vector3.new(1,5.5,1)
  271. Lightning3.Color = Color3.fromRGB(84, 77, 0)
  272. Lightning3.Anchored = true
  273. Lightning3.Material = "Neon"
  274. end
  275. end)
  276.  
  277. repeat
  278. local tweenService = game:GetService("TweenService")
  279.  
  280. local tweenInformation = TweenInfo.new (
  281. 1.5,
  282. Enum.EasingStyle.Linear,
  283. Enum.EasingDirection.In,
  284. 0,
  285. false,
  286. 0
  287. )
  288.  
  289. local partProperties = {
  290. HipHeight = 1.5
  291. }
  292.  
  293. local Up = tweenService:Create(Char.Humanoid,tweenInformation,partProperties)
  294. Up:Play()
  295. wait(1.5)
  296.  
  297. local tweenService = game:GetService("TweenService")
  298.  
  299. local tweenInformation = TweenInfo.new (
  300. 1.5,
  301. Enum.EasingStyle.Linear,
  302. Enum.EasingDirection.In,
  303. 0,
  304. false,
  305. 0
  306. )
  307.  
  308. local partProperties = {
  309. HipHeight = 1
  310. }
  311.  
  312. local Down = tweenService:Create(Char.Humanoid,tweenInformation,partProperties)
  313. Down:Play()
  314. wait(1.5)
  315.  
  316. if SW then
  317. SW:Destroy()
  318. end
  319. SW = ShockWave:Clone()
  320. SW.CanCollide = false
  321. SW.Anchored = true
  322. SW.CFrame = torso.CFrame * CFrame.new(0,-4,0)
  323. SW.Material = "Grass"
  324. SW.Color = Color3.fromRGB(44, 101, 29)
  325. SW.Parent = Char
  326. SW.Transparency = 0
  327. local tweenService = game:GetService("TweenService")
  328.  
  329. local tweenInformation = TweenInfo.new (
  330. 3,
  331. Enum.EasingStyle.Quad,
  332. Enum.EasingDirection.In,
  333. 0,
  334. false,
  335. 0
  336. )
  337.  
  338. local partProperties = {
  339. Scale = Vector3.new(2.5,2.5,2.5)
  340. }
  341.  
  342. local Waveout = tweenService:Create(SW.Mesh,tweenInformation,partProperties)
  343. Waveout:Play()
  344. local tweenService = game:GetService("TweenService")
  345.  
  346. local tweenInformation = TweenInfo.new (
  347. 3,
  348. Enum.EasingStyle.Quad,
  349. Enum.EasingDirection.In,
  350. 0,
  351. false,
  352. 0
  353. )
  354.  
  355. local partProperties = {
  356. Transparency = 1
  357. }
  358.  
  359. local WaveFade = tweenService:Create(SW,tweenInformation,partProperties)
  360. WaveFade:Play()
  361. until
  362. Floating == false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement