Advertisement
HenloMyDude

beebo but no morph

Jul 9th, 2020
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.62 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;if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
  5.  
  6. plr = owner
  7. char = plr.Character
  8. ra = char["Right Arm"]
  9. la = char["Left Arm"]
  10. rl = char["Right Leg"]
  11. ll = char["Left Leg"]
  12. hed = char.Head
  13. root = char.HumanoidRootPart
  14. hum = char.Humanoid
  15. dancin = false
  16. local tors = char.Torso
  17.  
  18. clerp = function(toclerp, cf, number)
  19. local joint = toclerp
  20. joint.C0 = joint.C0:Lerp(cf, number)
  21. end
  22.  
  23. clerp2 = function(toclerp, cf)
  24. local joint = toclerp
  25. joint.C0 = cf
  26. end
  27.  
  28. clerp3 = function(toclerp, cf, number)
  29. local joint = toclerp
  30. joint.C1 = joint.C1:Lerp(cf, number)
  31. end
  32.  
  33. Swait,swait = function(number)
  34. if number == 0 or number == nil then
  35. game:GetService("RunService").Heartbeat:Wait()
  36. else
  37. for i = 1,number do
  38. game:GetService("RunService").Heartbeat:Wait()
  39. end
  40. end
  41. end
  42.  
  43. ezweld = function(p, a, b, cf)
  44. local weld = Instance.new("Weld",p)
  45. weld.Part0 = a
  46. weld.Part1 = b
  47. weld.C0 = cf
  48. return weld
  49. end
  50.  
  51. NewSound = function(p, id, pit, vol, loop)
  52. local Sound = Instance.new("Sound",p)
  53. Sound.Pitch = pit
  54. Sound.Volume = vol
  55. Sound.SoundId = "rbxassetid://" ..id
  56. Sound.Looped = loop
  57. Sound:Play()
  58. return Sound
  59. end
  60.  
  61. anim = "Idle"
  62. attack = false
  63. local RS = char.Torso["Right Shoulder"]
  64. local LS = char.Torso["Left Shoulder"]
  65. local RH = char.Torso["Right Hip"]
  66. local LH = char.Torso["Left Hip"]
  67. local neck = char.Torso["Neck"]
  68. local root = char.HumanoidRootPart
  69. local rootj = root.RootJoint
  70. local sine = 0
  71. local RSnor = RS.C0
  72. local LSnor = LS.C0
  73. local RHnor = RH.C0
  74. local LHnor = LH.C0
  75. local RSnor2 = RS.C1
  76. local LSnor2 = LS.C1
  77. local RHnor2 = RH.C1
  78. local LHnor2 = LH.C1
  79. local rootjnor = rootj.C0
  80. local necknor = neck.C0
  81. local tors = char.Torso
  82. mouse = plr:GetMouse()
  83. hum.Animator:Destroy()
  84. hold = false
  85. Debris = game:GetService("Debris")
  86.  
  87. IT = Instance.new
  88. Rad = math.rad
  89. Cos = math.cos
  90. Sin = math.sin
  91. BrickC = BrickColor.new
  92. C3 = Color3.new
  93. VT = Vector3.new
  94.  
  95. sped = 16
  96. keyhold = false
  97. spino = 0
  98. hito = true
  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. sizo = 1
  105.  
  106. hum.JumpHeight = 85
  107. hum.WalkSpeed = 20
  108.  
  109. local landed = true
  110.  
  111. vwall = false
  112.  
  113. function vrun()
  114. local ray = Ray.new(
  115. root.CFrame.p, root.CFrame.lookVector *2.5
  116. )
  117. local hit, position, normal = workspace:FindPartOnRay(ray, char)
  118. if ray and hit then
  119. vwall = true
  120. attack = true
  121. local bv = Instance.new("BodyVelocity",root)
  122. bv.MaxForce = Vector3.new(0, math.huge, 0)
  123. bv.Velocity = Vector3.new(0, 25, 0)
  124. for i = 1,10 do
  125. Swait()
  126. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  127. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  128. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  129. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  130. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  131. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  132. end
  133. hum.WalkSpeed = 0
  134. repeat
  135. Swait()
  136. ray = Ray.new(
  137. root.CFrame.p, root.CFrame.lookVector *9.5
  138. )
  139. hit, position, normal = workspace:FindPartOnRay(ray, char)
  140. if ray and hit then
  141. local WALKSPEEDVALUE = 5.65 / (sped / 16)
  142. local TiltVelocity = Vector3.new(0, 0, 0)
  143. clerp(rootj, rootjnor * CFrame.new(0, 1.85, 0 + 0.5 * Cos(sine / (WALKSPEEDVALUE / 2))) * CFrame.Angles(Rad(-90), root.RotVelocity.y / 45, Rad(0)), 0.2)
  144. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.Angles(Rad((TiltVelocity.z*1.5)), root.RotVelocity.y / 85, Rad(0)), 0.2)
  145. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  146. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  147. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  148. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(-11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  149. else
  150. hum.WalkSpeed = 20
  151. vwall = false
  152. end
  153. until vwall == false
  154. hum.WalkSpeed = 20
  155. bv:remove()
  156. attack = false
  157. vwall = false
  158. end
  159. end
  160.  
  161. mouse.KeyDown:connect(function(key)
  162. if key == "v" then
  163. vrun()
  164. end
  165. end)
  166.  
  167. mouse.KeyUp:connect(function(key)
  168. if key == "v" and vwall == true then
  169. vwall = false
  170. end
  171. end)
  172.  
  173. while true do
  174. Swait()
  175. sine = sine + 1
  176. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  177. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  178. local WALKSPEEDVALUE = 5.65 / (sped / 16)
  179. torsverticalvel = root.Velocity.y
  180. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  181. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  182. anim = "Idle"
  183. if attack == false then
  184. hum.AutoRotate = true
  185. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  186. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  187. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  188. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  189. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  190. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  191. end
  192. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  193. anim = "Walk"
  194. if attack == false then
  195. hum.AutoRotate = true
  196. if landed == false then
  197. landed = true
  198. for i = 1,10 do
  199. Swait()
  200. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  201. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  202. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  203. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  204. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  205. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  206. end
  207. end
  208. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.25 + 0.5 * Cos(sine / (WALKSPEEDVALUE / 2))) * CFrame.Angles(Rad(-(TiltVelocity.z*1.5) + (-root.Velocity.y*2.25)), root.RotVelocity.y / 45, Rad(0)), 0.2)
  209. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.Angles(Rad((TiltVelocity.z*1.5)), root.RotVelocity.y / 85, Rad(0)), 0.2)
  210. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  211. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  212. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  213. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(-11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
  214. end
  215. elseif torsverticalvel > 0.5 and hitfloor == nil then
  216. anim = "Jump"
  217. if attack == false then
  218. hum.AutoRotate = true
  219. landed = false
  220. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.045)
  221. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  222. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
  223. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
  224. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(165)), 0.075)
  225. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.2)
  226. end
  227. elseif torsverticalvel < 0.5 and hitfloor == nil then
  228. anim = "Fall"
  229. if attack == false then
  230. hum.AutoRotate = true
  231. landed = false
  232. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(25), Rad(0), Rad(0)), 0.045)
  233. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
  234. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
  235. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
  236. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(165)), 0.075)
  237. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.2)
  238. end
  239. end
  240. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement