Advertisement
AuvroGaming

Spiderman Gui

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