rrixh

test

Aug 5th, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.29 KB | None | 0 0
  1. local plr = game:GetService('Players').LocalPlayer
  2. local mouse = plr:GetMouse()
  3. local chr = plr.Character
  4. local rope = nil
  5. local working = false
  6. local working2 = false
  7. local forward = false
  8. local backward = false
  9. local shooting = false
  10. local left = false
  11. local right = false
  12. local crawling = false
  13. local active = true
  14. local wing1 = nil
  15. local wing2 = nil
  16. local hats = {}
  17. local gui = Instance.new('ScreenGui')
  18. gui.Parent = plr.PlayerGui
  19. gui.Name = "Spiderman"
  20. gui.ResetOnSpawn = false
  21. local frame = Instance.new('Frame',gui)
  22. frame.Size = UDim2.new(0.2,0,0.2,0)
  23. frame.Position = UDim2.new(0,0,0.9,0)
  24. frame.BackgroundColor3 = Color3.fromRGB(255, 66, 66)
  25. frame.BorderSizePixel = 4
  26. frame.BorderColor3 = Color3.fromRGB(66, 134, 244)
  27. frame.Active = true
  28. frame.Draggable = true
  29. local txt = Instance.new('TextLabel',frame)
  30. txt.Text = "Spiderman Gui"
  31. txt.TextColor3 = Color3.fromRGB(66, 134, 244)
  32. txt.Size = UDim2.new(1,0,0.3,0)
  33. txt.TextScaled = true
  34. txt.BackgroundTransparency = 1
  35. local but = Instance.new('TextButton',frame)
  36. but.Text = "Toggle Suit"
  37. but.TextColor3 = Color3.fromRGB(255, 66, 66)
  38. but.Size = UDim2.new(0.7,0,0.3,0)
  39. but.Position = UDim2.new(0.15,0,0.5,0)
  40. but.BorderSizePixel = 0
  41. but.TextScaled = true
  42. but.BackgroundColor3 = Color3.fromRGB(66, 134, 244)
  43. but.MouseButton1Down:connect(function()
  44. active = not active
  45. end)
  46. local txt2 = Instance.new('TextLabel',frame)
  47. txt2.Text = "Toggle wall climb on with C."
  48. txt2.TextColor3 = Color3.fromRGB(66, 134, 244)
  49. txt2.Size = UDim2.new(1,0,0.15,0)
  50. txt2.Position = UDim2.new(0,0,0.85,0)
  51. txt2.TextScaled = true
  52. txt2.BackgroundTransparency = 1
  53. function webshot(char)
  54. local haaaaaaaaa = coroutine.wrap(function()
  55. if char:FindFirstChildOfClass('Humanoid').Health > 0 then
  56. for i,v in pairs(char:GetChildren()) do
  57. local partz = {Enum.NormalId.Back,Enum.NormalId.Right,Enum.NormalId.Left,Enum.NormalId.Top,Enum.NormalId.Bottom,Enum.NormalId.Front}
  58. if v:IsA('Part') and v.Transparency ~= 1 and v.Name ~= "Head" then
  59. for a,c in pairs(partz) do
  60. local dec = Instance.new('Decal',v)
  61. dec.Texture = 'http://www.roblox.com/asset/?id=148633485'
  62. dec.Face = c
  63. end
  64. end
  65. end
  66. char:FindFirstChildOfClass('Humanoid').Health = char:FindFirstChildOfClass('Humanoid').Health - char:FindFirstChildOfClass('Humanoid').MaxHealth*0.3
  67. if char:FindFirstChild('HumanoidRootPart') then
  68. local heyyyy = nil
  69. if char:FindFirstChild('Animate') then
  70. heyyyy = char.Animate:Clone()
  71. char.Animate:Destroy()
  72. end
  73. char:FindFirstChildOfClass('Humanoid').PlatformStand = true
  74. local ahhhhhhh = true
  75. char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.pi/2)
  76. if char:FindFirstChildOfClass('Humanoid') then
  77. char:FindFirstChildOfClass('Humanoid').Changed:connect(function(change)
  78. if change == "PlatformStand" and ahhhhhhh then
  79. char:FindFirstChildOfClass('Humanoid').PlatformStand = true
  80. end
  81. end)
  82. end
  83. wait(15)
  84. ahhhhhhh = false
  85. if char:FindFirstChildOfClass('Humanoid') then
  86. char:FindFirstChildOfClass('Humanoid').PlatformStand = false
  87. end
  88. if force then
  89. force:Destroy()
  90. end
  91. if heyyyy then
  92. heyyyy.Parent = char
  93. end
  94. for i,v in pairs(char:GetChildren()) do
  95. if v.Name ~= "Head" then
  96. for a,c in pairs(v:GetChildren()) do
  97. if c:IsA('Decal') then
  98. c:Destroy()
  99. end
  100. end
  101. end
  102. end
  103. end
  104. end
  105. end)
  106. haaaaaaaaa()
  107. end
  108. mouse.KeyDown:connect(function(key)
  109. if key == "f" then
  110. if rope == nil then
  111. if plr.Character and mouse.Hit and mouse.Target and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Left Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Left Shoulder') then
  112. if game.CoreGui:FindFirstChild('hekking spiderman') then
  113. game.CoreGui:FindFirstChild('hekking spiderman'):Destroy()
  114. end
  115. local Head = plr.Character.Head
  116. local RightShoulder = plr.Character.Torso["Left Shoulder"]
  117. local RightArm = plr.Character["Left Arm"]
  118. local MousePosition = mouse.Hit.p
  119. local ToMouse = (MousePosition - Head.Position).unit
  120. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, -1, 0)))
  121. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  122. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(-1 ,0, -1)).unit
  123. local Look = (Head.CFrame.lookVector * Vector3.new(-1, 0, -1)).unit
  124. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  125. if tostring(LateralAngle) == "-1.#IND" then
  126. LateralAngle = 0
  127. end
  128. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  129. if LateralAngle < (-math.pi / 2) then
  130. LateralAngle = (-math.pi / 2)
  131. end
  132. if Cross.Y > 0 then
  133. LateralAngle = -LateralAngle
  134. end
  135. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((-math.pi / 2) + Angle), ((-math.pi / 2) - LateralAngle), -math.pi/2)
  136. wait()
  137. local pa = Instance.new('Part',workspace)
  138. pa.Name = "SPOODERMEN"
  139. pa.Size = Vector3.new(0.2,0.2,0.2)
  140. pa.Anchored = true
  141. pa.CFrame = CFrame.new(MousePosition)
  142. pa.Transparency = 1
  143. local att = Instance.new('Attachment',pa)
  144. local att2 = Instance.new('Attachment',RightArm)
  145. att2.CFrame = CFrame.new(0,-1,0)
  146. att2.Axis = Vector3.new(0,0,0)
  147. local ropez = Instance.new('RopeConstraint',RightArm)
  148. ropez.Color = BrickColor.new('Institutional white')
  149. ropez.Attachment0 = att
  150. ropez.Attachment1 = att2
  151. ropez.Length = ropez.CurrentDistance-5
  152. ropez.Visible = true
  153. rope = ropez
  154. crawling = false
  155. txt2.Text = "Toggle wall climb on with C."
  156. end
  157. else
  158. if plr.Character and plr.Character:FindFirstChildOfClass('Humanoid') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Left Shoulder') then
  159. local RightShoulder = plr.Character.Torso["Left Shoulder"]
  160. rope:Destroy()
  161. rope = nil
  162. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,-math.pi/2,0)
  163. working = false
  164. working2 = false
  165. forward = false
  166. backward = false
  167. right = false
  168. left = false
  169. -- Objects
  170.  
  171. local ScreenGui = Instance.new("ScreenGui")
  172. local Frame = Instance.new("Frame")
  173. local TextLabel = Instance.new("TextLabel")
  174.  
  175. -- Properties
  176. ScreenGui.Name = "hekking spiderman"
  177. ScreenGui.Parent = game.CoreGui
  178.  
  179. Frame.Parent = ScreenGui
  180. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  181. Frame.BorderSizePixel = 0
  182. Frame.Size = UDim2.new(1, 0, 0.0500000007, 0)
  183.  
  184. TextLabel.Parent = Frame
  185. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  186. TextLabel.BackgroundTransparency = 1
  187. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  188. TextLabel.Font = Enum.Font.SourceSans
  189. TextLabel.FontSize = Enum.FontSize.Size14
  190. TextLabel.Text = "!! PRESS BACKSPACE TO REGAIN BALANCE !!"
  191. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  192. TextLabel.TextScaled = true
  193. TextLabel.TextSize = 14
  194. TextLabel.TextWrapped = true
  195. end
  196. end
  197. elseif key == "q" and rope ~= nil then
  198. working = true
  199. working2 = false
  200. elseif key == "e" and rope ~= nil then
  201. working2 = true
  202. working = false
  203. elseif key == "w" and rope ~= nil then
  204. forward = true
  205. elseif key == "s" and rope ~= nil then
  206. backward = true
  207. elseif key == "a" and rope ~= nil then
  208. left = true
  209. elseif key == "d" and rope ~= nil then
  210. right = true
  211. elseif key == "x" and shooting == false then
  212. if plr.Character and mouse.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Right Shoulder') then
  213. shooting = true
  214. local Head = plr.Character.Head
  215. local RightShoulder = plr.Character.Torso["Right Shoulder"]
  216. local RightArm = plr.Character["Right Arm"]
  217. local MousePosition = mouse.Hit.p
  218. local ToMouse = (MousePosition - Head.Position).unit
  219. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  220. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  221. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  222. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  223. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  224. if tostring(LateralAngle) == "-1.#IND" then
  225. LateralAngle = 0
  226. end
  227. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  228. if LateralAngle > (math.pi / 2) then
  229. LateralAngle = (math.pi / 2)
  230. end
  231. if Cross.Y < 0 then
  232. LateralAngle = -LateralAngle
  233. end
  234. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  235. wait()
  236. local shot = Instance.new('Part',workspace)
  237. shot.Name = "AAAA"
  238. shot.CanCollide = false
  239. shot.BrickColor = BrickColor.new('Institutional white')
  240. shot.Size = Vector3.new(3,3,0.2)
  241. shot.Transparency = 1
  242. shot.CFrame = CFrame.new(chr['Right Arm'].CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,0)
  243. local dec = Instance.new('Decal',shot)
  244. dec.Texture = 'rbxassetid://148633485'
  245. local dec2 = Instance.new('Decal',shot)
  246. dec2.Texture = 'rbxassetid://148633485'
  247. dec2.Face = Enum.NormalId.Back
  248. local heck = Instance.new('BodyVelocity',shot)
  249. heck.Velocity = (shot.CFrame*CFrame.Angles(0,0,0)).lookVector*120
  250. shot.Touched:connect(function(hit)
  251. if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= chr then
  252. webshot(hit.Parent)
  253. shot:Destroy()
  254. elseif hit.Parent.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent.Parent ~= chr then
  255. webshot(hit.Parent.Parent)
  256. shot:Destroy()
  257. elseif hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent:FindFirstChildOfClass('Humanoid') == nil then
  258. shot:Destroy()
  259. end
  260. end)
  261. wait(1)
  262. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,math.pi/2,0)
  263. shooting = false
  264. end
  265. elseif key == "c" and rope == nil then
  266. if crawling then
  267. crawling = false
  268. txt2.Text = "Toggle wall climb on with C."
  269. else
  270. crawling = true
  271. txt2.Text = "Toggle wall climb off with C."
  272. end
  273. elseif key == "z" and rope == nil and wing1 == nil and wing2 == nil then
  274. local plr = game.Players.LocalPlayer
  275. if chr:FindFirstChild('HumanoidRootPart') and chr.HumanoidRootPart:FindFirstChild('RootJoint') then
  276. chr.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(180))
  277. end
  278. if chr.Torso:FindFirstChild('Right Shoulder') then
  279. chr.Torso["Right Shoulder"].C0 = CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))
  280. end
  281. if chr.Torso:FindFirstChild('Left Shoulder') then
  282. chr.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90))
  283. end
  284. if chr:FindFirstChildOfClass('Humanoid'):FindFirstChild('Animator') and chr:FindFirstChild('Animate') then
  285. animator = chr:FindFirstChildOfClass('Humanoid'):FindFirstChild('Animator')
  286. animator:remove()
  287. chr.Animate.Disabled = true
  288. end
  289. if chr:FindFirstChildOfClass('Humanoid') then
  290. chr:FindFirstChildOfClass('Humanoid').HipHeight = -3
  291. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 40
  292. end
  293. if chr:FindFirstChild('Torso') then
  294. wing1 = Instance.new('WedgePart',chr)
  295. wing1.Size = Vector3.new(0.2,1.5,3)
  296. wing1.Transparency = 1
  297. local dec = Instance.new('Decal',wing1)
  298. dec.Texture = 'http://www.roblox.com/asset/?id=148633485'
  299. dec.Face = Enum.NormalId.Right
  300. local dec2 = Instance.new('Decal',wing1)
  301. dec2.Texture = 'http://www.roblox.com/asset/?id=148633485'
  302. dec2.Face = Enum.NormalId.Left
  303. local dec3 = Instance.new('Decal',wing1)
  304. dec3.Texture = 'http://www.roblox.com/asset/?id=148633485'
  305. dec3.Face = Enum.NormalId.Front
  306. local weld = Instance.new('Weld',wing1)
  307. weld.Part0 = wing1
  308. weld.Part1 = chr.Torso
  309. weld.C0 = CFrame.new(0,-1.5,1)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  310. wing2 = Instance.new('WedgePart',chr)
  311. wing2.Size = Vector3.new(0.2,1.5,3)
  312. wing2.Transparency = 1
  313. local dec4 = Instance.new('Decal',wing2)
  314. dec4.Texture = 'http://www.roblox.com/asset/?id=148633485'
  315. dec4.Face = Enum.NormalId.Right
  316. local dec5 = Instance.new('Decal',wing2)
  317. dec5.Texture = 'http://www.roblox.com/asset/?id=148633485'
  318. dec5.Face = Enum.NormalId.Left
  319. local dec6 = Instance.new('Decal',wing2)
  320. dec6.Texture = 'http://www.roblox.com/asset/?id=148633485'
  321. dec6.Face = Enum.NormalId.Front
  322. local weld2 = Instance.new('Weld',wing2)
  323. weld2.Part0 = wing2
  324. weld2.Part1 = chr.Torso
  325. weld2.C0 = CFrame.new(0,-1.5,1)*CFrame.Angles(math.rad(180),math.rad(270),math.rad(90))
  326. for i,v in pairs(chr:GetChildren()) do
  327. if v:IsA('Part') then
  328. v.Velocity = Vector3.new(0,0,0)
  329. local BodyForce = Instance.new('BodyForce',v)
  330. local Part = v
  331. BodyForce.Name = "stop destroying me"
  332. BodyForce.Force = Vector3.new(0,Part.Size.X * Part.Size.Y * Part.Size.Z * (game.Workspace.Gravity-45),0)
  333. end
  334. end
  335. end
  336. elseif key == string.char(8) then
  337. if game.CoreGui:FindFirstChild('hekking spiderman') then
  338. game.CoreGui:FindFirstChild('hekking spiderman'):Destroy()
  339. end
  340. elseif key == string.char(47) or key == string.char(48) then
  341. if chr:FindFirstChildOfClass('Humanoid') then
  342. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 30
  343. end
  344. end
  345. end)
  346.  
  347. mouse.KeyUp:connect(function(key)
  348. if key == "q" and rope ~= nil then
  349. working = false
  350. elseif key == "e" and rope ~= nil then
  351. working2 = false
  352. elseif key == "w" and rope ~= nil then
  353. forward = false
  354. elseif key == "s" and rope ~= nil then
  355. backward = false
  356. elseif key == "a" and rope ~= nil then
  357. left = false
  358. elseif key == "d" and rope ~= nil then
  359. right = false
  360. elseif key == "z" and wing1 ~= nil and wing2 ~= nil then
  361. if animator and chr:FindFirstChildOfClass('Humanoid') and chr:FindFirstChild('Animate') then
  362. animator.Parent = chr:FindFirstChildOfClass('Humanoid')
  363. chr.Animate.Disabled = false
  364. end
  365. if chr.Torso:FindFirstChild('Right Shoulder') then
  366. chr.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.pi/2,0)
  367. end
  368. if chr.Torso:FindFirstChild('Left Shoulder') then
  369. chr.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0)*CFrame.Angles(0,-math.pi/2,0)
  370. end
  371. if chr:FindFirstChild('HumanoidRootPart') and chr.HumanoidRootPart:FindFirstChild('RootJoint') then
  372. chr.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-270),math.rad(180),math.rad(0))
  373. end
  374. if chr:FindFirstChildOfClass('Humanoid') then
  375. chr:FindFirstChildOfClass('Humanoid').HipHeight = 0
  376. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
  377. end
  378. if wing1 then
  379. wing1:Destroy()
  380. wing1 = nil
  381. end
  382. if wing2 then
  383. wing2:Destroy()
  384. wing2 = nil
  385. end
  386. for i,v in pairs(plr.Character:GetChildren()) do
  387. if v:IsA('Part') then
  388. for a,c in pairs(v:GetChildren()) do
  389. if c:IsA('BodyForce') then
  390. c:Destroy()
  391. end
  392. end
  393. end
  394. end
  395. elseif key == string.char(47) or key == string.char(48) then
  396. if chr:FindFirstChildOfClass('Humanoid') then
  397. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
  398. end
  399. end
  400. end)
  401.  
  402. plr.CharacterAppearanceLoaded:connect(function()
  403. wait()
  404. for i,v in pairs(hats) do
  405. table.remove(hats,i)
  406. end
  407. if plr.Character:FindFirstChild('Torso') then
  408. local chr = plr.Character
  409. chr.Torso.Touched:connect(function(hit)
  410. if hit:IsA('TrussPart') == false and rope == nil and crawling and hit.CanCollide then
  411. local c = Instance.new('TrussPart',workspace.CurrentCamera)
  412. c.Anchored = true
  413. c.Transparency = 1
  414. c.CFrame = CFrame.new(chr.Torso.Position + (chr.Torso.CFrame.lookVector * 1), chr.Torso.Position + (chr.Torso.CFrame.lookVector * 12))
  415. game:GetService('Debris'):AddItem(c,0.5)
  416. end
  417. end)
  418. end
  419. end)
  420.  
  421. if plr.Character:FindFirstChild('Torso') then
  422. local chr = plr.Character
  423. chr.Torso.Touched:connect(function(hit)
  424. if hit:IsA('TrussPart') == false and rope == nil and crawling and hit.CanCollide then
  425. local c = Instance.new('TrussPart',workspace.CurrentCamera)
  426. c.Anchored = true
  427. c.Transparency = 1
  428. c.CFrame = CFrame.new(chr.Torso.Position + (chr.Torso.CFrame.lookVector * 1), chr.Torso.Position + (chr.Torso.CFrame.lookVector * 12))
  429. game:GetService('Debris'):AddItem(c,0.5)
  430. end
  431. end)
  432. end
  433.  
  434. game:GetService('RunService').Stepped:connect(function()
  435. chr = plr.Character
  436. local cam = game.Workspace.CurrentCamera
  437. for i,v in pairs(plr.PlayerGui:GetChildren()) do
  438. if v.Name == "SPOOOODA" then
  439. v:Destroy()
  440. end
  441. end
  442. if chr:FindFirstChild('HumanoidRootPart') and (cam.CoordinateFrame.p - chr.HumanoidRootPart.Position).magnitude < 2 then
  443. local haay = Instance.new('ScreenGui',plr.PlayerGui)
  444. haay.Name = "SPOOOODA"
  445. local img = Instance.new('ImageLabel',haay)
  446. img.Image = 'rbxassetid://744896574'
  447. img.BackgroundTransparency = 1
  448. img.Size = UDim2.new(1,0,1,0)
  449. end
  450. if plr.Character:FindFirstChild('Torso') then
  451. for a,c in pairs(plr.Character:GetChildren()) do
  452. for i,v in pairs(c:GetChildren()) do
  453. if v:IsA('BodyForce') and v.Name ~= "stop destroying me" then
  454. v:Destroy()
  455. end
  456. end
  457. end
  458. end
  459. if rope ~= nil and plr.Character and plr.Character:FindFirstChildOfClass('Humanoid') then
  460. plr.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
  461. end
  462. if working then
  463. rope.Length = rope.Length-2
  464. if rope ~= nil and plr.Character and plr.Character:FindFirstChild('Torso') then
  465. for i,v in pairs(plr.Character:GetChildren()) do
  466. if v:IsA('Part') then
  467. local BodyForce = Instance.new('BodyForce',v)
  468. local Part = v
  469. BodyForce.Force = Vector3.new(0,Part.Size.X * Part.Size.Y * Part.Size.Z * 196.2,0)
  470. end
  471. end
  472. end
  473. end
  474. if working2 then
  475. rope.Length = rope.Length+1
  476. end
  477. if forward and plr.Character and plr.Character:FindFirstChild('Torso') then
  478. local force = Instance.new('BodyForce',plr.Character.Torso)
  479. force.Force = Vector3.new(cam.CFrame.lookVector.x*1000,0,cam.CFrame.lookVector.z*1000)
  480. end
  481. if right and plr.Character and plr.Character:FindFirstChild('Torso') then
  482. local force = Instance.new('BodyForce',plr.Character.Torso)
  483. force.Force = Vector3.new(cam.CFrame.rightVector.x*1000,0,cam.CFrame.rightVector.z*1000)
  484. end
  485. if left and plr.Character and plr.Character:FindFirstChild('Torso') then
  486. local force = Instance.new('BodyForce',plr.Character.Torso)
  487. force.Force = Vector3.new(-cam.CFrame.rightVector.x*1000,0,-cam.CFrame.rightVector.z*1000)
  488. end
  489. if backward and plr.Character and plr.Character:FindFirstChild('Torso') then
  490. local force = Instance.new('BodyForce',plr.Character.Torso)
  491. force.Force = Vector3.new(-cam.CFrame.lookVector.x*1000,0,-cam.CFrame.lookVector.z*1000)
  492. end
  493. for i,v in pairs(chr:GetChildren()) do
  494. if v:IsA('Part') and v.Anchored == true then
  495. v.Anchored = false
  496. end
  497. end
  498. if active then
  499. for i,v in pairs(plr.Character:GetChildren()) do
  500. if v:IsA('Accessory') then
  501. if v:FindFirstChildOfClass('Part') then
  502. if v:FindFirstChildOfClass('Part'):FindFirstChildOfClass('SpecialMesh') then
  503. if v:FindFirstChildOfClass('Part'):FindFirstChildOfClass('SpecialMesh').TextureId ~= "rbxassetid://454487924" then
  504. table.insert(hats,v:Clone())
  505. end
  506. end
  507. end
  508. v:Destroy()
  509. elseif v:IsA('Shirt') then
  510. if v.ShirtTemplate ~= 'rbxassetid://616223451' then
  511. table.insert(hats,v:Clone())
  512. end
  513. v:Destroy()
  514. elseif v:IsA('Pants') then
  515. if v.PantsTemplate ~= 'rbxassetid://616226602' then
  516. table.insert(hats,v:Clone())
  517. end
  518. v:Destroy()
  519. end
  520. end
  521. local shirt = Instance.new('Shirt',plr.Character)
  522. shirt.ShirtTemplate = 'rbxassetid://616223451'
  523. local pants = Instance.new('Pants',plr.Character)
  524. pants.PantsTemplate = 'rbxassetid://616226602'
  525. local ac = Instance.new('Accessory',plr.Character)
  526. local pa = Instance.new('Part',ac)
  527. pa.Size = Vector3.new(1,1,1)
  528. local me = Instance.new('SpecialMesh',pa)
  529. me.MeshType = Enum.MeshType.FileMesh
  530. me.MeshId = 'rbxassetid://151354047'
  531. me.TextureId = 'rbxassetid://454487924'
  532. me.Scale = Vector3.new(1.26,1.26,1.26)
  533. local weld = Instance.new('Weld',pa)
  534. weld.Part0 = pa
  535. weld.Part1 = plr.Character.Head
  536. else
  537. for i,v in pairs(plr.Character:GetChildren()) do
  538. if v:IsA('Accessory') or v:IsA('Shirt') or v:IsA('Pants') then
  539. v:Destroy()
  540. end
  541. end
  542. for i,v in pairs(hats) do
  543. v:Clone().Parent = chr
  544. end
  545. end
  546. end)
Add Comment
Please, Sign In to add comment