Namoo546

The Hand

Apr 28th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.39 KB | None | 0 0
  1. local p = owner
  2. local c = p.Character
  3.  
  4. local tws = game:GetService("TweenService")
  5.  
  6. local hum = c:WaitForChild("Humanoid")
  7. local deb = true
  8. local actv = false
  9. local actv2 = false
  10.  
  11. if hum.RigType==Enum.HumanoidRigType.R15 then
  12. warn("u have to be r6 dummy !!")
  13. wait(1)
  14. script:Destroy()
  15. end
  16.  
  17. function joint(p0,p1,x0,y0,z0,rx,ry,rz,name) -- part0, part1, x-axis, y-axis, z-axis, x rotation, y rotation, z rotation, name
  18. local weld = Instance.new("Weld",p0)
  19. weld.Part0 = p0
  20. weld.Part1 = p1
  21. weld.Name = name
  22. weld.C0 = CFrame.new(x0,y0,z0)
  23. weld.C0 = weld.C0*CFrame.Angles(rx,ry,rz)
  24. return weld
  25. end
  26.  
  27. trails = {}
  28. function createTrail(part, trailAmt, color1, color2, lifetime, dly)
  29. for i = -trailAmt, trailAmt do
  30. leftcorner = Instance.new("Attachment", part)
  31. leftcorner.Position = Vector3.new(-part.Size.x/2*1.01, part.Size.y/2*1.01, part.Size.z/2*(i/trailAmt)*1.01)
  32. bleftcorner = Instance.new("Attachment", part)
  33. bleftcorner.Position = Vector3.new(-part.Size.x/2*1.01, -part.Size.y/2*1.01, part.Size.z/2*(i/trailAmt)*1.01)
  34.  
  35. rightcorner = Instance.new("Attachment", part)
  36. rightcorner.Position = Vector3.new(part.Size.x/2*1.01, part.Size.y/2*1.01, part.Size.z/2*(i/trailAmt)*1.01)
  37. brightcorner = Instance.new("Attachment", part)
  38. brightcorner.Position = Vector3.new(part.Size.x/2*1.01, -part.Size.y/2*1.01, part.Size.z/2*(i/trailAmt)*1.01)
  39.  
  40. trail = Instance.new("Trail", part)
  41. trail.Attachment0 = leftcorner
  42. trail.Attachment1 = bleftcorner
  43. trail.MaxLength = 50
  44. trail.LightEmission = .8
  45. trail.Transparency = NumberSequence.new(0.2)
  46. trail.Color = ColorSequence.new(color1,color2)
  47. trail.Lifetime = lifetime
  48. table.insert(trails, trail)
  49. trail2 = Instance.new("Trail", part)
  50. trail2.Attachment0 = bleftcorner
  51. trail2.Attachment1 = brightcorner
  52. trail2.MaxLength = 50
  53. trail2.Lifetime = lifetime
  54. trail2.Color = ColorSequence.new(color1,color2)
  55. trail2.LightEmission = .8
  56. trail2.Transparency = NumberSequence.new(0.2)
  57. table.insert(trails, trail2)
  58. trail3 = Instance.new("Trail", part)
  59. trail3.Attachment0 = brightcorner
  60. trail3.Attachment1 = rightcorner
  61. trail3.MaxLength = 50
  62. trail3.Lifetime = lifetime
  63. trail3.Color = ColorSequence.new(color1,color2)
  64. trail3.LightEmission = .8
  65. trail3.Transparency = NumberSequence.new(0.2)
  66. table.insert(trails, trail3)
  67. trail4 = Instance.new("Trail", part)
  68. trail4.Attachment0 = rightcorner
  69. trail4.Attachment1 = leftcorner
  70. trail4.MaxLength = 50
  71. trail4.Lifetime = lifetime
  72. trail4.Color = ColorSequence.new(color1,color2)
  73. trail4.LightEmission = .8
  74. trail4.Transparency = NumberSequence.new(0.2)
  75. table.insert(trails, trail4)
  76.  
  77. game.Debris:AddItem(trail,dly)
  78. game.Debris:AddItem(trail2,dly)
  79. game.Debris:AddItem(trail3,dly)
  80. game.Debris:AddItem(trail4,dly)
  81. end
  82. end
  83.  
  84. function tween(part,size,time)
  85. local goals = {}
  86. goals.Size = size
  87. local tinf = TweenInfo.new(time)
  88. local tween = tws:Create(part,tinf,goals)
  89. tween:Play()
  90. end
  91.  
  92. local HANDO = Instance.new("Sound",c["Head"])
  93. HANDO.SoundId = "rbxassetid://1228181736"
  94. HANDO.Volume = 3
  95.  
  96. local smack = Instance.new("Sound",c["Head"])
  97. smack.SoundId = "rbxassetid://367499850"
  98. smack.Volume = 3
  99.  
  100. local touch = Instance.new("Part",c)
  101. touch.Size = Vector3.new(.5,1,.5)
  102. touch.Massless = true
  103. touch.CanCollide = false
  104. touch.Locked = true
  105. touch.Transparency = 1
  106. touch.Name = "Touched"
  107.  
  108. local touch2 = Instance.new("Part",c)
  109. touch2.Size = Vector3.new(.5,1,.5)
  110. touch2.Massless = true
  111. touch2.CanCollide = false
  112. touch2.Locked = true
  113. touch2.Transparency = 1
  114. touch2.Name = "Touched"
  115.  
  116. local tj = joint(c["Right Arm"],touch,0,-.75,0,0,0,0,"Hitbox")
  117. local tj2 = joint(c["Left Leg"],touch2,0,-.75,0,0,0,0,"Hitbox2")
  118.  
  119. touch.Touched:Connect(function(hit)
  120. if not actv then return else
  121. if hit.Parent~=c and hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  122. for i = 1,10 do
  123. hit.Transparency = hit.Transparency+.1
  124. wait()
  125. end
  126. hit:Destroy()
  127. end
  128. end
  129. end)
  130.  
  131. touch2.Touched:Connect(function(hit)
  132. if not actv2 then return else
  133. if hit.Parent~=c and hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  134. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  135. hum.PlatformStand = true
  136. hum:TakeDamage(2)
  137. smack:Play()
  138. wait(2)
  139. hum.PlatformStand = false
  140. end
  141. end
  142. end)
  143.  
  144. function nopedotavi()
  145. if not deb then return else
  146. deb = false
  147. local rarm = joint(c.Torso,c["Right Arm"],1.5,0,0,0,0,0,"Right Shoulder")
  148. local torso = joint(c.HumanoidRootPart,c.Torso,0,0,0,0,0,0,"Root Joint")
  149. local trc0 = torso.C0
  150. local rsc0 = rarm.C0
  151. hum.WalkSpeed = 13
  152. createTrail(c["Right Arm"],3,Color3.fromRGB(50,255,255),Color3.fromRGB(50,255,0),.5,2)
  153. for i = 0,1,.03 do
  154. torso.C0 = torso.C0:lerp(trc0 * CFrame.Angles(0,math.rad(-45),0),i)
  155. rarm.C0 = rarm.C0:lerp(rsc0 * CFrame.new(0,1,-.5) * CFrame.Angles(math.rad(145),math.rad(20),math.rad(20)),i)
  156. wait()
  157. end
  158. HANDO:Play()
  159. actv = true
  160. for i = 0,1,.06 do
  161. torso.C0 = torso.C0:lerp(trc0 * CFrame.Angles(0,math.rad(40),0),i)
  162. rarm.C0 = rarm.C0:lerp(rsc0 * CFrame.new(-.2,.15,-.5) * CFrame.Angles(math.rad(45),math.rad(-10),math.rad(-20)),i)
  163. wait()
  164. end
  165. wait(.1)
  166. for i = 0,1,.06 do
  167. torso.C0 = torso.C0:lerp(trc0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0),i)
  168. rarm.C0 = rarm.C0:lerp(rsc0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0),i)
  169. wait()
  170. end
  171. hum.WalkSpeed = 16
  172. rarm:Destroy()
  173. torso:Destroy()
  174. actv = false
  175. wait(2)
  176. deb = true
  177. end
  178. end
  179.  
  180. function stomp()
  181. if not deb then return else
  182. deb = false
  183. actv2 = true
  184. hum.WalkSpeed = 0
  185. hum.JumpPower = 0
  186. local lleg = joint(c["Torso"],c["Left Leg"],-.5,-2,0,0,0,0,"Left Hip")
  187. local lhc0 = lleg.C0
  188. for i = 0,1,.5 do
  189. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  190. wait()
  191. end
  192. for i = 0,1,.5 do
  193. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  194. wait()
  195. end
  196. for i = 0,1,.5 do
  197. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  198. wait()
  199. end
  200. for i = 0,1,.5 do
  201. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  202. wait()
  203. end
  204. for i = 0,1,.5 do
  205. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  206. wait()
  207. end
  208. for i = 0,1,.5 do
  209. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  210. wait()
  211. end
  212. for i = 0,1,.5 do
  213. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  214. wait()
  215. end
  216. for i = 0,1,.5 do
  217. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  218. wait()
  219. end
  220. for i = 0,1,.5 do
  221. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  222. wait()
  223. end
  224. for i = 0,1,.5 do
  225. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  226. wait()
  227. end
  228. for i = 0,1,.5 do
  229. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  230. wait()
  231. end
  232. for i = 0,1,.5 do
  233. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  234. wait()
  235. end
  236. for i = 0,1,.5 do
  237. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  238. wait()
  239. end
  240. for i = 0,1,.5 do
  241. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  242. wait()
  243. end
  244. for i = 0,1,.5 do
  245. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  246. wait()
  247. end
  248. for i = 0,1,.5 do
  249. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  250. wait()
  251. end
  252. for i = 0,1,.5 do
  253. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  254. wait()
  255. end
  256. for i = 0,1,.5 do
  257. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  258. wait()
  259. end
  260. for i = 0,1,.5 do
  261. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  262. wait()
  263. end
  264. for i = 0,1,.5 do
  265. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  266. wait()
  267. end
  268. for i = 0,1,.5 do
  269. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,.5,-.5),i)
  270. wait()
  271. end
  272. for i = 0,1,.5 do
  273. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,-.5),i)
  274. wait()
  275. end
  276. for i = 0,1,.06 do
  277. lleg.C0 = lleg.C0:lerp(lhc0 * CFrame.new(0,0,0),i)
  278. wait()
  279. end
  280. hum.WalkSpeed = 16
  281. hum.JumpPower = 50
  282. lleg:Destroy()
  283. actv2 = false
  284. wait(1)
  285. deb = true
  286. end
  287. end
  288.  
  289. function zoom(mse)
  290. if not deb then return else
  291. deb = false
  292. local rarm = joint(c.Torso,c["Right Arm"],1.5,0,0,0,0,0,"Right Shoulder")
  293. local torso = joint(c.HumanoidRootPart,c.Torso,0,0,0,0,0,0,"Root Joint")
  294. local trc0 = torso.C0
  295. local rsc0 = rarm.C0
  296. createTrail(c["Right Arm"],3,Color3.fromRGB(50,255,255),Color3.fromRGB(50,255,0),.5,.75)
  297. for i = 0,1,.2 do
  298. torso.C0 = torso.C0:lerp(trc0 * CFrame.Angles(0,math.rad(-45),0),i)
  299. rarm.C0 = rarm.C0:lerp(rsc0 * CFrame.new(0,1,-.5) * CFrame.Angles(math.rad(145),math.rad(20),math.rad(20)),i)
  300. wait()
  301. end
  302. wait(.2)
  303. HANDO:Play()
  304. for i = 0,1,.2 do
  305. torso.C0 = torso.C0:lerp(trc0 * CFrame.Angles(0,math.rad(40),0),i)
  306. rarm.C0 = rarm.C0:lerp(rsc0 * CFrame.new(-.2,.15,-.5) * CFrame.Angles(math.rad(45),math.rad(-10),math.rad(-20)),i)
  307. wait()
  308. end
  309. createTrail(c["Head"],3,Color3.fromRGB(50,255,255),Color3.fromRGB(50,255,255),1,.5)
  310. createTrail(c["Torso"],3,Color3.fromRGB(50,255,255),Color3.fromRGB(50,255,255),1,.5)
  311. createTrail(c["Left Leg"],3,Color3.fromRGB(50,255,255),Color3.fromRGB(50,255,255),1,.5)
  312. createTrail(c["Right Leg"],3,Color3.fromRGB(50,255,255),Color3.fromRGB(50,255,255),1,.5)
  313. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  314. vel.Velocity = c.HumanoidRootPart.CFrame.lookVector*150
  315. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  316. game.Debris:AddItem(vel,.5)
  317. wait(.1)
  318. for i = 0,1,.2 do
  319. torso.C0 = torso.C0:lerp(trc0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0),i)
  320. rarm.C0 = rarm.C0:lerp(rsc0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0),i)
  321. wait()
  322. end
  323. rarm:Destroy()
  324. torso:Destroy()
  325. wait(.5)
  326. deb = true
  327. end
  328. end
  329.  
  330. local thing = Instance.new("RemoteEvent",c)
  331. thing.OnServerEvent:Connect(nopedotavi)
  332. thing.Name = "YEET"
  333.  
  334. local thing2 = Instance.new("RemoteEvent",c)
  335. thing2.OnServerEvent:Connect(stomp)
  336. thing2.Name = "crush"
  337.  
  338. local thing3 = Instance.new("RemoteEvent",c)
  339. thing3.OnServerEvent:Connect(zoom)
  340. thing3.Name = "bmmm"
  341.  
  342. NLS([[
  343. local p = owner
  344. local c = p.Character
  345. local m = p:GetMouse()
  346.  
  347. local nope = c:WaitForChild("YEET")
  348. local YOULITTLEOOF = c:WaitForChild("crush")
  349. local oijosuke = c:WaitForChild("bmmm")
  350.  
  351. m.KeyDown:Connect(function(k)
  352. k=k:lower()
  353. if k=="e" then
  354. nope:FireServer()
  355. elseif k=="r" then
  356. YOULITTLEOOF:FireServer()
  357. elseif k=="f" then
  358. oijosuke:FireServer(m)
  359. end
  360. end)]],c)
  361.  
  362. print([[okuyasu remake by CBTestBot
  363. trail by EthanHong0407
  364.  
  365. E: za hando
  366. R: stomp
  367. F: zoom]])
Add Comment
Please, Sign In to add comment