Advertisement
HenloMyDude

tentacles (unfinisheD)

Mar 1st, 2020
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.16 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 warn'by youngmacka123' if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then print("you're whitelisted") else print'bru' while wait() do error'stuP' end end
  5.  
  6. --tentacles by youngmacka123--
  7.  
  8. plr = owner
  9. char = plr.Character
  10. tors = char.Torso
  11. ra = char["Right Arm"]
  12. la = char["Left Arm"]
  13. rl = char["Right Leg"]
  14. ll = char["Left Leg"]
  15. hed = char.Head
  16. root = char.HumanoidRootPart
  17. hum = char.Humanoid
  18. if hum.RigType == Enum.HumanoidRigType.R6 then
  19. hum.HipHeight = 0
  20. elseif hum.RigType == Enum.HumanoidRigType.R15 then
  21. hum.HipHeight = 1.5
  22. end
  23.  
  24. ezweld = function(p, a, b, cf)
  25. local weld = Instance.new("Weld",p)
  26. weld.Part0 = a
  27. weld.Part1 = b
  28. weld.C0 = cf
  29. return weld
  30. end
  31.  
  32. function RayCast(Position, Direction, Range, Ignore)
  33. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  34. end
  35.  
  36. local TweenService = game:GetService("TweenService")
  37.  
  38. SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  39. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  40. local outorin = Enum.EasingDirection[outorin2]
  41.  
  42.  
  43. local dahspeed=1
  44.  
  45. if SPart.Name=="Bullet" then
  46. dahspeed=1
  47. end
  48.  
  49. local tweeningInformation = TweenInfo.new(
  50. AnimTime/dahspeed,
  51. MoveStyle,
  52. outorin,
  53. 0,
  54. false,
  55. 0
  56. )
  57. local MoveCF = CFr
  58. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  59. tweenanim:Play()
  60. end
  61.  
  62. clerp = function(toclerp, cf, number)
  63. local joint = toclerp
  64. joint.C0 = joint.C0:Lerp(cf, number)
  65. end
  66.  
  67. clerp2 = function(toclerp, cf)
  68. local joint = toclerp
  69. joint.C0 = cf
  70. end
  71.  
  72. clerp3 = function(toclerp, cf, number)
  73. local joint = toclerp
  74. joint.C1 = joint.C1:Lerp(cf, number)
  75. end
  76.  
  77. Swait,swait = function(number)
  78. if number == 0 or number == nil then
  79. game:GetService("RunService").Heartbeat:Wait()
  80. else
  81. for i = 1,number do
  82. game:GetService("RunService").Heartbeat:Wait()
  83. end
  84. end
  85. end
  86.  
  87. ezweld = function(p, a, b, cf)
  88. local weld = Instance.new("Weld",p)
  89. weld.Part0 = a
  90. weld.Part1 = b
  91. weld.C0 = cf
  92. return weld
  93. end
  94.  
  95. NewSound = function(p, id, pit, vol, loop)
  96. local Sound = Instance.new("Sound",p)
  97. Sound.Pitch = pit
  98. Sound.Volume = vol
  99. Sound.SoundId = "rbxassetid://" ..id
  100. Sound.Looped = loop
  101. Sound:Play()
  102. return Sound
  103. end
  104.  
  105. IT = Instance.new
  106. Rad = math.rad
  107. Cos = math.cos
  108. Sin = math.sin
  109. BrickC = BrickColor.new
  110. C3 = Color3.new
  111. VT = Vector3.new
  112.  
  113. anim = "Idle"
  114. attack = false
  115. local RS = char.Torso["Right Shoulder"]
  116. local LS = char.Torso["Left Shoulder"]
  117. local RH = char.Torso["Right Hip"]
  118. local LH = char.Torso["Left Hip"]
  119. local neck = char.Torso["Neck"]
  120. local root = char.HumanoidRootPart
  121. local rootj = root.RootJoint
  122. local sine = 0
  123. local RSnor = RS.C0
  124. local LSnor = LS.C0
  125. local RHnor = RH.C0
  126. local LHnor = LH.C0
  127. local RSnor2 = RS.C1
  128. local LSnor2 = LS.C1
  129. local RHnor2 = RH.C1
  130. local LHnor2 = LH.C1
  131. local rootjnor = rootj.C0
  132. local necknor = neck.C0
  133. local tors = char.Torso
  134. hum.Animator:remove()
  135. mouse = plr:GetMouse()
  136. hold = false
  137. Debris = game:GetService("Debris")
  138. sizo = 1
  139.  
  140. --tentacles
  141.  
  142. local part = Instance.new("Part",char)
  143. part.Size = Vector3.new(0.1, 0.1, 0.1)*1
  144. part.CanCollide = false
  145. part.Color = Color3.fromRGB(177, 167, 255)
  146. local mesh = Instance.new("SpecialMesh",part)
  147. mesh.MeshId = "rbxassetid://4745129704"
  148. mesh.TextureId = "rbxassetid://574498087"
  149. mesh.Scale = Vector3.new(1, 1, 1)*sizo
  150. mesh.Offset = Vector3.new(0, 0, 0)
  151. local weld = ezweld(char, part, tors, CFrame.new(0.25, 0, -0.75) * CFrame.Angles(0, Rad(-18), 0))
  152.  
  153. local part = Instance.new("Part",char)
  154. part.Size = Vector3.new(0.1, 0.1, 0.1)*1
  155. part.CanCollide = false
  156. part.Color = Color3.fromRGB(177, 167, 255)
  157. local mesh = Instance.new("SpecialMesh",part)
  158. mesh.MeshId = "rbxassetid://4745132055"
  159. mesh.TextureId = "rbxassetid://574498087"
  160. mesh.Scale = Vector3.new(1, 1, 1)*sizo
  161. mesh.Offset = Vector3.new(0, 0, 0)
  162. local weld = ezweld(char, part, tors, CFrame.new(1.625, -0.25, 0.7) * CFrame.Angles(Rad(0), Rad(150), Rad(0)))
  163.  
  164. local part = Instance.new("Part",char)
  165. part.Size = Vector3.new(0.1, 0.1, 0.1)*1
  166. part.CanCollide = false
  167. part.Color = Color3.fromRGB(177, 167, 255)
  168. local mesh = Instance.new("SpecialMesh",part)
  169. mesh.MeshId = "rbxassetid://4745130602"
  170. mesh.TextureId = "rbxassetid://574498087"
  171. mesh.Scale = Vector3.new(1, 1, 1)*sizo
  172. mesh.Offset = Vector3.new(0, 0, 0)
  173. local weld = ezweld(char, part, tors, CFrame.new(-1.6, -0.5, -0.225) * CFrame.Angles(Rad(0), Rad(181.5), Rad(0)))
  174.  
  175. local part = Instance.new("Part",char)
  176. part.Size = Vector3.new(0.1, 0.1, 0.1)*1
  177. part.CanCollide = false
  178. part.Color = Color3.fromRGB(177, 167, 255)
  179. local mesh = Instance.new("SpecialMesh",part)
  180. mesh.MeshId = "rbxassetid://4745133585"
  181. mesh.TextureId = "rbxassetid://574498087"
  182. mesh.Scale = Vector3.new(1, 1, 1)*sizo
  183. mesh.Offset = Vector3.new(0, 0, 0)
  184. local weld = ezweld(char, part, tors, CFrame.new(0.15, -1.55, -0.75) * CFrame.Angles(Rad(25), Rad(181.5)+Rad(-25), Rad(0)))
  185.  
  186. warn'by youngmacka123. Karl brown is a b̶o̶s̶s̶ noob. K Brown is a b̶o̶s̶s̶ noob. KBrown is a b̶o̶s̶s̶ noob.'
  187.  
  188. CF = CFrame.new
  189. ANGLES = CFrame.Angles
  190. RAD = Rad
  191. SIN = Sin
  192. COS = Cos
  193. SINE = 0
  194. bc = BrickColor.new
  195.  
  196. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  197. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  198. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  199. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  200. sped = 16
  201.  
  202. if plr:IsFriendsWith(204448429) or plr.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
  203.  
  204. while true do
  205. Swait()
  206. --if plr:IsFriendsWith(204448429) or plr.UserId == 204448429 then print("you're whitelisted") else print'bru' while wait() do error'stuP' end end
  207. SINE = SINE + (2 / 3)
  208. sine = sine + 1
  209. local sit = hum.Sit
  210. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  211. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  212. local WALKSPEEDVALUE = 8 / (sped / 16)
  213. torsverticalvel = root.Velocity.y
  214. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  215. if TORSOVELOCITY < 1 and sit == false then
  216. anim = "Idle"
  217. if attack == false then
  218. SetTween(rootj,{C0=rootjnor*CFrame.new(0, 0, 0.05 * Sin(sine / 26))*CFrame.Angles(0, 0, Rad(-3))},"Linear","Out",0.1)
  219. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-2*Sin(sine / 26)), 0, Rad(3))},"Linear","Out",0.1)
  220. SetTween(RS, {C0=RSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(-9-0.75*Sin(sine / 26)), Rad(-5))},"Linear","Out",0.1)
  221. SetTween(LS, {C0=LSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(9+0.75*Sin(sine / 26)), Rad(5))},"Linear","Out",0.1)
  222. SetTween(RH, {C0=RHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-3-0.2*Sin(sine / 26)), Rad(-11), Rad(0))},"Linear","Out",0.1)
  223. SetTween(LH, {C0=LHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-3-0.2*Sin(sine / 26)), Rad(11), Rad(0))},"Linear","Out",0.1)
  224. end
  225. elseif TORSOVELOCITY > 1 and sit == false then
  226. anim = "Walk"
  227. if attack == false and hum.WalkSpeed < 25 then
  228. sped = 9.75
  229. SetTween(rootj,{C0=ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(6.5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0))},"Linear","Out",0.1)
  230. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-6.5), 0, 0)},"Linear","Out",0.1)
  231. SetTween(RS, {C0=CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(55 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0},"Linear","Out",0.1)
  232. SetTween(LS, {C0=CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-55 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0},"Linear","Out",0.1)
  233. SetTween(RH, {C0=CF(1, -1 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-55 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  234. SetTween(LH, {C0=CF(-1, -1 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(55 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  235. end
  236. if attack == false and hum.WalkSpeed > 24 then
  237. sped = 7.1
  238. SetTween(rootj,{C0=ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0))},"Linear","Out",0.1)
  239. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-15), 0, 0)},"Linear","Out",0.1)
  240. SetTween(RS, {C0=CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(77 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0},"Linear","Out",0.1)
  241. SetTween(LS, {C0=CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-77 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0},"Linear","Out",0.1)
  242. SetTween(RH, {C0=CF(1, -1 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-77 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  243. SetTween(LH, {C0=CF(-1, -1 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(77 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))},"Linear","Out",0.1)
  244. end
  245. elseif sit == true then
  246. anim = "Sitting"
  247. if attack == false then
  248. SetTween(rootj,{C0=rootjnor*CFrame.new(0, 0, -0.15+0.05 * Sin(sine / 26))*CFrame.Angles(Rad(0), 0, 0)},"Linear","Out",0.1)
  249. SetTween(neck, {C0=necknor*CFrame.Angles(Rad(-2*Sin(sine / 26)), 0, Rad(0))},"Linear","Out",0.1)
  250. SetTween(RS, {C0=RSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(-9-0.75*Sin(sine / 26)), Rad(-5))},"Linear","Out",0.1)
  251. SetTween(LS, {C0=LSnor*CFrame.new(0, 0.025 * Sin(sine / 26), 0)*CFrame.Angles(Rad(-5.5-0.75*Sin(sine / 26)), Rad(9+0.75*Sin(sine / 26)), Rad(5))},"Linear","Out",0.1)
  252. SetTween(RH, {C0=RHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(1+0.2*Sin(sine / 26)), Rad(-17), Rad(90))},"Linear","Out",0.1)
  253. SetTween(LH, {C0=LHnor*CFrame.new(0, -0.05 * Sin(sine / 26), 0)*CFrame.Angles(Rad(1+0.2*Sin(sine / 26)), Rad(17), Rad(-90))},"Linear","Out",0.1)
  254. end
  255. end
  256. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement