Advertisement
HenloMyDude

venom

Mar 21st, 2020
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.93 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"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("E")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
  5.  
  6. plr = owner
  7. char = plr.Character
  8. ra = char["Right Arm"]
  9. la = char["Left Arm"]
  10. hed = char.Head
  11. root = char.HumanoidRootPart
  12. hum = char.Humanoid
  13. dancin = false
  14.  
  15. clerp = function(toclerp, cf, number)
  16. local joint = toclerp
  17. joint.C0 = joint.C0:Lerp(cf, number)
  18. end
  19.  
  20. clerp2 = function(toclerp, cf)
  21. local joint = toclerp
  22. joint.C0 = cf
  23. end
  24.  
  25. clerp3 = function(toclerp, cf, number)
  26. local joint = toclerp
  27. joint.C1 = joint.C1:Lerp(cf, number)
  28. end
  29.  
  30. Swait,swait = function(number)
  31. if number == 0 or number == nil then
  32. game:GetService("RunService").Heartbeat:Wait()
  33. else
  34. for i = 1,number do
  35. game:GetService("RunService").Heartbeat:Wait()
  36. end
  37. end
  38. end
  39.  
  40. ezweld = function(p, a, b, cf)
  41. local weld = Instance.new("Weld",p)
  42. weld.Part0 = a
  43. weld.Part1 = b
  44. weld.C0 = cf
  45. return weld
  46. end
  47.  
  48. ezmot = function(p, a, b, cf)
  49. local weld = Instance.new("Motor",p)
  50. weld.Part0 = a
  51. weld.Part1 = b
  52. weld.C0 = cf
  53. return weld
  54. end
  55.  
  56.  
  57. NewSound = function(p, id, pit, vol, loop)
  58. local Sound = Instance.new("Sound",p)
  59. Sound.Pitch = pit
  60. Sound.Volume = vol
  61. Sound.SoundId = "rbxassetid://" ..id
  62. Sound.Looped = loop
  63. Sound:Play()
  64. return Sound
  65. end
  66.  
  67. IT = Instance.new
  68. Rad = math.rad
  69. Cos = math.cos
  70. Sin = math.sin
  71. BrickC = BrickColor.new
  72. C3 = Color3.new
  73. VT = Vector3.new
  74.  
  75. anim = "Idle"
  76. attack = false
  77. local RS = char.Torso["Right Shoulder"]
  78. local LS = char.Torso["Left Shoulder"]
  79. local RH = char.Torso["Right Hip"]
  80. local LH = char.Torso["Left Hip"]
  81. local neck = char.Torso["Neck"]
  82. local root = char.HumanoidRootPart
  83. local rootj = root.RootJoint
  84. local sine = 0
  85. local RSnor = RS.C0
  86. local LSnor = LS.C0
  87. local RHnor = RH.C0
  88. local LHnor = LH.C0
  89. local RSnor2 = RS.C1
  90. local LSnor2 = LS.C1
  91. local RHnor2 = RH.C1
  92. local LHnor2 = LH.C1
  93. local rootjnor = rootj.C0
  94. local necknor = neck.C0
  95. local tors = char.Torso
  96. mouse = plr:GetMouse()
  97. hold = false
  98. Debris = game:GetService("Debris")
  99.  
  100. function RayCast(Position, Direction, Range, Ignore)
  101. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  102. end
  103.  
  104. local TweenService = game:GetService("TweenService")
  105.  
  106. SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  107. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  108. local outorin = Enum.EasingDirection[outorin2]
  109.  
  110.  
  111. local dahspeed=1
  112.  
  113. if SPart.Name=="Bullet" then
  114. dahspeed=1
  115. end
  116.  
  117. local tweeningInformation = TweenInfo.new(
  118. AnimTime/dahspeed,
  119. MoveStyle,
  120. outorin,
  121. 0,
  122. false,
  123. 0
  124. )
  125. local MoveCF = CFr
  126. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  127. tweenanim:Play()
  128. end
  129.  
  130. function effect(p, scf, ecf, srt, ert, ssize, esize, str, etr, scol, ecol, mtype, spd, m)
  131. local part = Instance.new("Part", char)
  132. part.CanCollide = false
  133. part.Size = Vector3.new(1, 1, 1)
  134. part.CFrame = scf
  135. part.Transparency = str
  136. part.Color = scol
  137. part.Orientation = srt
  138. part.Anchored = true
  139. part.Material = m
  140. local mesh = Instance.new("SpecialMesh", part)
  141. mesh.Scale = ssize
  142. if mtype == "Wave" then
  143. mesh.MeshId = "rbxassetid://489415572"
  144. elseif mtype == "Sphere" then
  145. mesh.MeshType = "Sphere"
  146. elseif mtype == "Block" then
  147. mesh.MeshType = "Brick"
  148. end
  149. SetTween(part,{Transparency=etr,Color=ecol,CFrame=ecf, Orientation=ert},"Linear","Out",spd)
  150. SetTween(mesh,{Scale=esize},"Linear","Out",spd)
  151. game.Debris:AddItem(part, 25)
  152. end
  153.  
  154. body = false
  155. ocf = nil
  156. cb = nil
  157.  
  158. local view = Instance.new("Part", char)
  159. view.CanCollide = false
  160. view.Size = Vector3.new(1, 1, 1)
  161. view.Transparency = 1
  162. view.CFrame = root.CFrame
  163. view.Anchored = true
  164. view.Name = "view"
  165. local val = Instance.new("ObjectValue", char)
  166. val.Value = nil
  167. val.Name = "valuet"
  168.  
  169. function enter(t)
  170. if t then
  171. local man = t.Parent
  172. if man then
  173. body = true
  174. cb = man
  175. val.Value = man
  176. local a = NLS([[
  177.  
  178. workspace.CurrentCamera.CameraSubject = game:service("Players").LocalPlayer.Character.valuet.Value:FindFirstChildOfClass("Humanoid")
  179.  
  180. ]], char)
  181. end
  182. end
  183. end
  184.  
  185. function exit()
  186. body = false
  187. cb = nil
  188. if val.Value:FindFirstChild("HumanoidRootPart").CFrame then
  189. root.CFrame = val.Value:FindFirstChild("HumanoidRootPart").CFrame
  190. end
  191. local a = NLS([[
  192.  
  193. workspace.CurrentCamera.CameraSubject = game:service("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  194.  
  195. ]], char)
  196. end
  197.  
  198. mouse.KeyDown:connect(function(key)
  199. if key == "e" then
  200. enter(mouse.Target)
  201. end
  202. if key == "n" then
  203. exit()
  204. end
  205. end)
  206.  
  207. while true do
  208. Swait()
  209. if body == false then
  210. ocf = root.CFrame
  211. rootj.C0 = rootjnor * CFrame.new(0, 0, -400)
  212. local b = effect(char, root.CFrame*CFrame.new(0, -3, 0),root.CFrame*CFrame.new(0, -3, 0), Vector3.new(0, 0, 0), Vector3.new(0, 0, 0), Vector3.new(1, 0.65, 1), Vector3.new(14, 0.65, 14), 0, 2, Color3.new(0, 0, 0), Color3.new(0, 0, 0), "Sphere", 0.25, "Neon")
  213. end
  214. if cb ~= nil then
  215. if cb:FindFirstChild("HumanoidRootPart") then
  216. view.CFrame = cb:FindFirstChild("HumanoidRootPart").CFrame
  217. end
  218. end
  219. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement