Advertisement
ItzInfern

holy god gear

Jan 6th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.50 KB | None | 0 0
  1.  
  2.  
  3. --https://github.com/Mokiros/roblox-FE-compatibility
  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. local RealPlayer = Player
  7. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  8.  
  9.  
  10. script.Parent = workspace.CurrentCamera
  11. local plr = game:GetService("Players").LocalPlayer
  12.  
  13. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  14. tool.Grip = CFrame.new(0,-0.8,-0.2) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  15. tool.Name = "bluE"
  16.  
  17. local part = Instance.new("Part",tool)
  18. part.Name = "Handle"
  19. part.Size = Vector3.new(4,6,4)
  20. part.TopSurface = "Smooth"
  21. part.BottomSurface = "Smooth"
  22. part.CanCollide = false
  23. part:BreakJoints()
  24.  
  25. local mesh = Instance.new("SpecialMesh",part)
  26. mesh.MeshId = "rbxassetid://431003868" --mesh.MeshId = "rbxassetid://132920499"
  27. mesh.TextureId = "rbxassetid://430627740" --"http://www.roblox.com/asset/?id=134479421"
  28. mesh.Scale = Vector3.new(2,2,2)
  29.  
  30. local sound = Instance.new("Sound",part)
  31. sound.SoundId = "rbxassetid://511340819"
  32. sound.Volume = 3
  33.  
  34. local sound2 = Instance.new("Sound",part)
  35. sound2.SoundId = "rbxassetid://280667448"
  36. sound2.Volume = 5
  37.  
  38. local sound3 = Instance.new("Sound",part)
  39. sound3.SoundId = "rbxassetid://139100774"
  40. sound3.Volume = 10
  41.  
  42. local sound4 = Instance.new("Sound",part)
  43. sound4.SoundId = "rbxassetid://258057783"
  44. sound4.Volume = 10
  45.  
  46. local sound5 = Instance.new("Sound",part)
  47. sound5.SoundId = "rbxassetid://130932305"
  48. sound5.Volume = 10
  49.  
  50. local sound6 = Instance.new("Sound",part)
  51. sound6.SoundId = "rbxassetid://906084456"
  52. sound6.Volume = 10
  53. sound6.TimePosition = 2
  54.  
  55. function firstHum(target)
  56. for i,v in pairs(target:GetChildren()) do
  57. if v:IsA("Humanoid") then
  58. return v
  59. end
  60. end
  61. return nil
  62. end
  63.  
  64. local slap = false
  65. local cd = false
  66.  
  67. plr:GetMouse().Button1Down:connect(function()
  68. if tool.Parent == plr.Character then
  69. if slap == false then
  70. slap = true
  71. sound2:Play()
  72. local str = Instance.new("StringValue")
  73. str.Name = "toolanim"
  74. str.Value = "Slash"
  75. str.Parent = tool
  76. wait(1)
  77. slap = false
  78. end
  79. end
  80. end)
  81.  
  82. part.Touched:connect(function(hit)
  83. if slap == true then
  84. if cd == false then
  85. if not hit:IsDescendantOf(plr.Character) then
  86. if hit.Parent:IsA("Model") then
  87. local fhum = firstHum(hit.Parent)
  88. if fhum then
  89. cd = true
  90. fhum.PlatformStand = true
  91. sound:Play()
  92. local con1
  93. con1 = game:GetService("RunService").Heartbeat:connect(function()
  94. fhum.PlatformStand = true
  95. end)
  96. wait(0.1)
  97. local vel = Instance.new("BodyVelocity",hit)
  98. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  99. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  100. wait(1)
  101. cd = false
  102. vel:Destroy()
  103. local vel2 = Instance.new("BodyVelocity",hit)
  104. vel2.Velocity = Vector3.new(0,12.5,0)
  105. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  106. local p2 = Instance.new("Part",hit)
  107. p2.Anchored = true
  108. p2.Transparency = 0.6
  109. p2.CanCollide = false
  110. p2.Size = Vector3.new(0.2,0.2,0.2)
  111. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  112. p2.BrickColor = BrickColor.new("New Yeller")
  113. p2.Material = "Neon"
  114. local m2 = Instance.new("CylinderMesh",p2)
  115. m2.Scale = Vector3.new(60,10000,60)
  116. local scln = sound3:Clone()
  117. scln.Parent = hit
  118. scln:Play()
  119. local con2
  120. con2 = game:GetService("RunService").Heartbeat:connect(function()
  121. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  122. end)
  123. wait(7)
  124. vel2.Velocity = Vector3.new(0,0,0)
  125. wait(0.5)
  126. scln:Stop()
  127. local scln3 = sound5:Clone()
  128. scln3.Parent = hit
  129. scln3:Play()
  130. wait(1)
  131. local bav = Instance.new("BodyAngularVelocity",hit)
  132. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  133. vel2.Velocity = Vector3.new(0,-250,0)
  134. p2.BrickColor = BrickColor.new("Really red")
  135. local scln6 = sound6:Clone()
  136. scln6.Parent = hit
  137. scln6:Play()
  138. local continue = false
  139. local htc
  140. htc = hit.Touched:connect(function(hitp)
  141. if not hitp:IsDescendantOf(hit.Parent) then
  142. continue = true
  143. scln6:Stop()
  144. vel2:Destroy()
  145. con2:Disconnect()
  146. con1:Disconnect()
  147. htc:Disconnect()
  148. p2:Destroy()
  149. end
  150. end)
  151. repeat wait() until continue == true
  152. local ctab = {}
  153. for i=1,4 do
  154. local p = Instance.new("Part",hit)
  155. p.Size = Vector3.new(30,30,30)
  156. p.Anchored = true
  157. p.CanCollide = false
  158. p.TopSurface = "Smooth"
  159. p.BottomSurface = "Smooth"
  160. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  161. p.CFrame = hit.CFrame
  162. local con
  163. con = game:GetService("RunService").Heartbeat:connect(function()
  164. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  165. p.Transparency = p.Transparency + 0.01
  166. if p.Transparency >= 1 then
  167. con:Disconnect()
  168. end
  169. end)
  170. table.insert(ctab,con)
  171. end
  172. Instance.new("Explosion",workspace).Position = hit.Position
  173. local scln2 = sound4:Clone()
  174. scln2.Parent = hit
  175. scln2:Play()
  176. vel2:Destroy()
  177. hit.Parent:BreakJoints()
  178. repeat wait() until not hit:IsDescendantOf(workspace)
  179. con2:Disconnect()
  180. end
  181. end
  182. end
  183. end
  184. end
  185. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement