hawoody

Perfecto!!!!!

Aug 18th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. messageDialog([[Godmode by Darealsupersweetuyz.
  2. -------------------------------
  3. wait(1)
  4. ---------------------------[[[ VARIABLES ]]]---------------------------
  5.  
  6. local plr = game.Players.LocalPlayer
  7. local chr = plr.Character
  8. local mou = plr:GetMouse()
  9. local leftarm = false
  10. local active = false
  11. local curkey = "f"
  12. local stunneds = {}
  13.  
  14. ---------------------------[[[ PARTS ]]]---------------------------
  15.  
  16. -- 1 - Glock
  17. obj1 = Instance.new("Model")
  18. obj1.Name = "Glock"
  19. obj1.Parent = chr
  20.  
  21. -- 2 - Part
  22. obj2 = Instance.new("Part")
  23. obj2.CFrame = CFrame.new(Vector3.new(14.25, 3.51428652, 46.8584824)) * CFrame.Angles(0.69812995195389, 0, -0)
  24. obj2.TopSurface = Enum.SurfaceType.Smooth
  25. obj2.BottomSurface = Enum.SurfaceType.Smooth
  26. obj2.Material = Enum.Material.Metal
  27. obj2.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
  28. obj2.Anchored = true
  29. obj2.BrickColor = BrickColor.new("Black")
  30. obj2.Friction = 0.30000001192093
  31. obj2.Shape = Enum.PartType.Block
  32. obj2.CanCollide = false
  33. obj2.Parent = obj1
  34.  
  35. -- 3 - Top
  36. obj3 = Instance.new("Part")
  37. obj3.CFrame = CFrame.new(Vector3.new(14.25, 3.8499999, 47.1499977)) * CFrame.Angles(-0, 0, -0)
  38. obj3.TopSurface = Enum.SurfaceType.Smooth
  39. obj3.BottomSurface = Enum.SurfaceType.Smooth
  40. obj3.Material = Enum.Material.Metal
  41. obj3.Size = Vector3.new(0.300000012, 0.300000012, 1.5)
  42. obj3.Anchored = true
  43. obj3.BrickColor = BrickColor.new("Crimson")
  44. obj3.Friction = 0.30000001192093
  45. obj3.Shape = Enum.PartType.Block
  46. obj3.CanCollide = false
  47. obj3.Name = "Top"
  48. obj3.Parent = obj1
  49.  
  50. -- 4 - Top
  51. obj4 = Instance.new("Part")
  52. obj4.CFrame = CFrame.new(Vector3.new(14.25, 3.8499999, 47.8999977)) * CFrame.Angles(0, 1.5707963705063, 0)
  53. obj4.TopSurface = Enum.SurfaceType.Smooth
  54. obj4.BottomSurface = Enum.SurfaceType.Smooth
  55. obj4.Material = Enum.Material.Metal
  56. obj4.Size = Vector3.new(0.200000003, 0.299999982, 0.300000012)
  57. obj4.Anchored = true
  58. obj4.BrickColor = BrickColor.new("Crimson")
  59. obj4.Friction = 0.30000001192093
  60. obj4.Shape = Enum.PartType.Cylinder
  61. obj4.Name = "Top"
  62. obj4.CanCollide = false
  63. obj4.Parent = obj1
  64.  
  65. -- 5 - Part
  66. obj5 = Instance.new("Part")
  67. obj5.CFrame = CFrame.new(Vector3.new(14.25, 3.35359001, 47.1499939)) * CFrame.Angles(-1.5707978010178, 0, -0)
  68. obj5.TopSurface = Enum.SurfaceType.Smooth
  69. obj5.BottomSurface = Enum.SurfaceType.Smooth
  70. obj5.Material = Enum.Material.Metal
  71. obj5.Size = Vector3.new(0.300000012, 0.200000003, 0.299999982)
  72. obj5.Anchored = true
  73. obj5.BrickColor = BrickColor.new("Black")
  74. obj5.Friction = 0.30000001192093
  75. obj5.Shape = Enum.PartType.Block
  76. obj5.CanCollide = false
  77. obj5.Parent = obj1
  78.  
  79. -- 6 - Part
  80. obj6 = Instance.new("Part")
  81. obj6.CFrame = CFrame.new(Vector3.new(14.25, 3.5999999, 47.1499977)) * CFrame.Angles(-0, 0, -0)
  82. obj6.TopSurface = Enum.SurfaceType.Smooth
  83. obj6.BottomSurface = Enum.SurfaceType.Smooth
  84. obj6.Material = Enum.Material.Metal
  85. obj6.Size = Vector3.new(0.300000012, 0.200000003, 1.5)
  86. obj6.Anchored = true
  87. obj6.BrickColor = BrickColor.new("Black")
  88. obj6.CanCollide = false
  89. obj6.Friction = 0.30000001192093
  90. obj6.Shape = Enum.PartType.Block
  91. obj6.Parent = obj1
  92.  
  93. -- 7 - Part
  94. obj7 = Instance.new("Part")
  95. obj7.CFrame = CFrame.new(Vector3.new(14.25, 3.60000014, 47.8999977)) * CFrame.Angles(0, 1.5707963705063, 0)
  96. obj7.TopSurface = Enum.SurfaceType.Smooth
  97. obj7.BottomSurface = Enum.SurfaceType.Smooth
  98. obj7.Material = Enum.Material.Metal
  99. obj7.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
  100. obj7.Anchored = true
  101. obj7.BrickColor = BrickColor.new("Black")
  102. obj7.CanCollide = false
  103. obj7.Friction = 0.30000001192093
  104. obj7.Shape = Enum.PartType.Cylinder
  105. obj7.Parent = obj1
  106.  
  107. -- 8 - Part
  108. obj8 = Instance.new("Part")
  109. obj8.CFrame = CFrame.new(Vector3.new(14.25, 3.15358996, 46.8499985)) * CFrame.Angles(1.1920913323138e-007, 0, -0)
  110. obj8.TopSurface = Enum.SurfaceType.Smooth
  111. obj8.BottomSurface = Enum.SurfaceType.Smooth
  112. obj8.Material = Enum.Material.Metal
  113. obj8.Size = Vector3.new(0.300000012, 0.200000003, 0.699999988)
  114. obj8.Anchored = true
  115. obj8.BrickColor = BrickColor.new("Black")
  116. obj8.Friction = 0.30000001192093
  117. obj8.CanCollide = false
  118. obj8.Shape = Enum.PartType.Block
  119. obj8.Parent = obj1
  120.  
  121. -- 9 - Part
  122. obj9 = Instance.new("Part")
  123. obj9.CFrame = CFrame.new(Vector3.new(14.25, 3.27858996, 46.5067024)) * CFrame.Angles(-1.0471963882446, 0, -0)
  124. obj9.TopSurface = Enum.SurfaceType.Smooth
  125. obj9.BottomSurface = Enum.SurfaceType.Smooth
  126. obj9.Material = Enum.Material.Metal
  127. obj9.Size = Vector3.new(0.300000012, 0.300000012, 0.699999988)
  128. obj9.Anchored = true
  129. obj9.BrickColor = BrickColor.new("Black")
  130. obj9.CanCollide = false
  131. obj9.Friction = 0.30000001192093
  132. obj9.Shape = Enum.PartType.Block
  133. obj9.Parent = obj1
  134.  
  135. local previous = nil
  136. for i,v in pairs(obj1:GetChildren()) do
  137. if v:IsA('BasePart') then
  138. if previous then
  139. local weld = Instance.new('Weld',v)
  140. weld.Part0 = v
  141. weld.Part1 = previous
  142. weld.C0 = v.CFrame:inverse() * previous.CFrame
  143. previous.Anchored = false
  144. end
  145. previous = v
  146. end
  147. end
  148. previous.Anchored = false
  149.  
  150. ---------------------------[[[ FUNCTIONS ]]]---------------------------
  151.  
  152. function notify(msg,forever)
  153. local doit = coroutine.wrap(function()
  154. for i,v in pairs(plr.PlayerGui:GetChildren()) do
  155. if v.Name == "Notification" and v:IsA('ScreenGui') then
  156. v:Destroy()
  157. end
  158. end
  159. local gui = Instance.new('ScreenGui',plr.PlayerGui)
  160. gui.Name = "Notification"
  161. local frame = Instance.new('Frame',gui)
  162. frame.Position = UDim2.new(0,0,0,0)
  163. frame.Size = UDim2.new(1,0,0.2,0)
  164. frame.BackgroundTransparency = 1
  165. local txt = Instance.new('TextLabel',frame)
  166. txt.TextColor3 = Color3.new(255,255,255)
  167. txt.TextStrokeColor3 = Color3.new(0, 0, 0)
  168. txt.TextStrokeTransparency = 0
  169. txt.BackgroundTransparency = 1
  170. txt.Text = ""
  171. txt.Size = UDim2.new(1,0,0.3,0)
  172. txt.Position = UDim2.new(0,0,0.4,0)
  173. txt.TextScaled = true
  174. txt.Font = "Code"
  175. txt.TextXAlignment = "Center"
  176. local tap = Instance.new("Sound")
  177. tap.Parent = plr.Backpack
  178. tap.SoundId = "rbxassetid://147982968"
  179. tap.TimePosition = 0.1
  180. local str = msg
  181. local len = string.len(str)
  182. for i=1,len do
  183. txt.Text = string.sub(str,1,i)
  184. local pitche = math.random(2, 4)
  185. tap.PlaybackSpeed = pitche
  186. tap:Play()
  187. wait(0.05)
  188. end
  189. if forever == false then
  190. wait(1)
  191. while txt.TextTransparency < 1 do
  192. txt.TextTransparency = txt.TextTransparency + 0.1
  193. txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1
  194. wait()
  195. end
  196. gui:Destroy()
  197. end
  198. end)
  199. doit()
  200. end
  201.  
  202.  
  203. function damage(playa,hita)
  204. local hitz = hita.Name
  205. local heyy = hitz
  206. if hitz == "Right Arm" then
  207. local Limb = playa:FindFirstChild("Right Arm")
  208. local ters = playa:FindFirstChild('Torso')
  209. if Limb and ters then
  210. if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
  211. for i,v in pairs(Limb:GetChildren()) do
  212. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  213. v:Destroy()
  214. end
  215. end
  216. Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0)
  217. local Joint = Instance.new("Glue")
  218. Joint.Name = "RightShoulder"
  219. Joint.Part0 = ters
  220. Joint.Part1 = Limb
  221. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  222. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  223. Joint.Parent = ters
  224.  
  225. local B = Instance.new("Part")
  226. B.TopSurface = 0
  227. B.BottomSurface = 0
  228. B.formFactor = "Symmetric"
  229. B.Size = Vector3.new(1, 1, 1)
  230. B.Transparency = 1
  231. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  232. B.Parent = playa
  233. local W = Instance.new("Weld")
  234. W.Part0 = Limb
  235. W.Part1 = B
  236. W.C0 = CFrame.new(0, -0.5, 0)
  237. W.Parent = Limb
  238. end
  239. elseif hitz == "Left Arm" then
  240. local Limb = playa:FindFirstChild("Left Arm")
  241. local ters = playa:FindFirstChild('Torso')
  242. if Limb and ters then
  243. if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
  244. for i,v in pairs(Limb:GetChildren()) do
  245. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  246. v:Destroy()
  247. end
  248. end
  249. Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0)
  250. local Joint = Instance.new("Glue")
  251. Joint.Name = "LeftShoulder"
  252. Joint.Part0 = ters
  253. Joint.Part1 = Limb
  254. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  255. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  256. Joint.Parent = ters
  257. local B = Instance.new("Part")
  258. B.TopSurface = 0
  259. B.BottomSurface = 0
  260. B.formFactor = "Symmetric"
  261. B.Size = Vector3.new(1, 1, 1)
  262. B.Transparency = 1
  263. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  264. B.Parent = playa
  265. local W = Instance.new("Weld")
  266. W.Part0 = ters
  267. W.Part1 = B
  268. W.C0 = CFrame.new(0, -0.5, 0)
  269. W.Parent = Limb
  270. end
  271. elseif hitz == "Right Leg" then
  272. local Limb = playa:FindFirstChild("Right Leg")
  273. local ters = playa:FindFirstChild('Torso')
  274. if Limb and ters then
  275. if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
  276. for i,v in pairs(Limb:GetChildren()) do
  277. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  278. v:Destroy()
  279. end
  280. end
  281. Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
  282. local Joint = Instance.new("Glue")
  283. Joint.Name = "Right Hip"
  284. Joint.Part0 = ters
  285. Joint.Part1 = Limb
  286. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  287. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  288. Joint.Parent = ters
  289. local B = Instance.new("Part")
  290. B.TopSurface = 0
  291. B.BottomSurface = 0
  292. B.formFactor = "Symmetric"
  293. B.Size = Vector3.new(1, 1, 1)
  294. B.Transparency = 1
  295. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  296. B.Parent = playa
  297. local W = Instance.new("Weld")
  298. W.Part0 = Limb
  299. W.Part1 = B
  300. W.C0 = CFrame.new(0, -0.5, 0)
  301. W.Parent = Limb
  302. if playa:FindFirstChildOfClass('Humanoid') then
  303. local hum = playa:FindFirstChildOfClass('Humanoid')
  304. local target = playa
  305. if target:FindFirstChild('HumanoidRootPart') then
  306. target.HumanoidRootPart:Destroy()
  307. end
  308. local found = false
  309. for i,v in pairs(stunneds) do
  310. if v == hum then
  311. found = true
  312. end
  313. end
  314. if found == false then
  315. table.insert(stunneds,hum)
  316. end
  317. end
  318. end
  319. elseif hitz == "Left Leg" then
  320. local Limb = playa:FindFirstChild("Left Leg")
  321. local ters = playa:FindFirstChild('Torso')
  322. if Limb and ters then
  323. if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
  324. for i,v in pairs(Limb:GetChildren()) do
  325. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  326. v:Destroy()
  327. end
  328. end
  329. Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
  330. Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0)
  331. local Joint = Instance.new("Glue")
  332. Joint.Name = "LeftHip"
  333. Joint.Part0 = ters
  334. Joint.Part1 = Limb
  335. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  336. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  337. Joint.Parent = ters
  338.  
  339. local B = Instance.new("Part")
  340. B.TopSurface = 0
  341. B.BottomSurface = 0
  342. B.formFactor = "Symmetric"
  343. B.Size = Vector3.new(1, 1, 1)
  344. B.Transparency = 1
  345. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  346. B.Parent = playa
  347. local W = Instance.new("Weld")
  348. W.Part0 = Limb
  349. W.Part1 = B
  350. W.C0 = CFrame.new(0, -0.5, 0)
  351. W.Parent = Limb
  352. Limb.CanCollide = false
  353. if playa:FindFirstChildOfClass('Humanoid') then
  354. local hum = playa:FindFirstChildOfClass('Humanoid')
  355. local target = playa
  356. if target:FindFirstChild('HumanoidRootPart') then
  357. target.HumanoidRootPart:Destroy()
  358. end
  359. local found = false
  360. for i,v in pairs(stunneds) do
  361. if v == hum then
  362. found = true
  363. end
  364. end
  365. if found == false then
  366. table.insert(stunneds,hum)
  367. end
  368. end
  369. end
  370. else
  371. local playa2 = playa
  372. playa.Archivable = true
  373. local playa = playa:Clone()
  374. playa.Archivable = false
  375. playa2:Destroy()
  376. playa.Parent = workspace
  377. local Gibs = game.Workspace
  378. print(playa)
  379. local Torso = playa.Torso
  380. local Head = playa:FindFirstChild("Head")
  381. local function Scan(ch)
  382. local e
  383. for e = 1,#ch do
  384. Scan(ch[e]:GetChildren())
  385. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  386. ch[e]:remove()
  387. end
  388. end
  389. end
  390. Scan(playa:GetChildren())
  391. if playa:FindFirstChild('HumanoidRootPart') then
  392. playa:FindFirstChild('HumanoidRootPart'):Destroy()
  393. end
  394. local hum2 = playa:FindFirstChildOfClass("Humanoid")
  395.  
  396.  
  397. if hum2 ~= nil then
  398. hum2.Name = "Humanoid2"
  399. hum2.PlatformStand = true
  400. hum2.Health = 0
  401. end
  402. local ch = playa:GetChildren()
  403. local i
  404. for i = 1,#ch do
  405. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  406. ch[i]:remove()
  407. end
  408. end
  409.  
  410. if Head then
  411. local Neck = Instance.new("Weld")
  412. Neck.Name = "Neck"
  413. Neck.Part0 = Torso
  414. Neck.Part1 = Head
  415. Neck.C0 = CFrame.new(0, 1.5, 0)
  416. Neck.C1 = CFrame.new()
  417. Neck.Parent = Torso
  418. end
  419. local Limb = playa:FindFirstChild("Right Arm")
  420. if Limb then
  421.  
  422. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  423. local Joint = Instance.new("Glue")
  424. Joint.Name = "RightShoulder"
  425. Joint.Part0 = Torso
  426. Joint.Part1 = Limb
  427. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  428. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  429. Joint.Parent = Torso
  430.  
  431. local B = Instance.new("Part")
  432. B.TopSurface = 0
  433. B.BottomSurface = 0
  434. B.formFactor = "Symmetric"
  435. B.Size = Vector3.new(1, 1, 1)
  436. B.Transparency = 1
  437. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  438. B.Parent = playa
  439. local W = Instance.new("Weld")
  440. W.Part0 = Limb
  441. W.Part1 = B
  442. W.C0 = CFrame.new(0, -0.5, 0)
  443. W.Parent = Limb
  444. end
  445. local Limb = playa:FindFirstChild("Left Arm")
  446. if Limb then
  447.  
  448. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  449. local Joint = Instance.new("Glue")
  450. Joint.Name = "LeftShoulder"
  451. Joint.Part0 = Torso
  452. Joint.Part1 = Limb
  453. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  454. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  455. Joint.Parent = Torso
  456.  
  457. local B = Instance.new("Part")
  458. B.TopSurface = 0
  459. B.BottomSurface = 0
  460. B.formFactor = "Symmetric"
  461. B.Size = Vector3.new(1, 1, 1)
  462. B.Transparency = 1
  463. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  464. B.Parent = playa
  465. local W = Instance.new("Weld")
  466. W.Part0 = Limb
  467. W.Part1 = B
  468. W.C0 = CFrame.new(0, -0.5, 0)
  469. W.Parent = Limb
  470. end
  471. local Limb = playa:FindFirstChild("Right Leg")
  472. if Limb then
  473.  
  474. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  475. local Joint = Instance.new("Glue")
  476. Joint.Name = "RightHip"
  477. Joint.Part0 = Torso
  478. Joint.Part1 = Limb
  479. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  480. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  481. Joint.Parent = Torso
  482.  
  483. local B = Instance.new("Part")
  484. B.TopSurface = 0
  485. B.BottomSurface = 0
  486. B.formFactor = "Symmetric"
  487. B.Size = Vector3.new(1, 1, 1)
  488. B.Transparency = 1
  489. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  490. B.Parent = playa
  491. local W = Instance.new("Weld")
  492. W.Part0 = Limb
  493. W.Part1 = B
  494. W.C0 = CFrame.new(0, -0.5, 0)
  495. W.Parent = Limb
  496. end
  497. local Limb = playa:FindFirstChild("Left Leg")
  498. if Limb then
  499.  
  500. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  501. local Joint = Instance.new("Glue")
  502. Joint.Name = "LeftHip"
  503. Joint.Part0 = Torso
  504. Joint.Part1 = Limb
  505. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  506. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  507. Joint.Parent = Torso
  508.  
  509. local B = Instance.new("Part")
  510. B.TopSurface = 0
  511. B.BottomSurface = 0
  512. B.formFactor = "Symmetric"
  513. B.Size = Vector3.new(1, 1, 1)
  514. B.Transparency = 1
  515. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  516. B.Parent = playa
  517. local W = Instance.new("Weld")
  518. W.Part0 = Limb
  519. W.Part1 = B
  520. W.C0 = CFrame.new(0, -0.5, 0)
  521. W.Parent = Limb
  522. end
  523. --[
  524. local Bar = Instance.new("Part")
  525. Bar.TopSurface = 0
  526. Bar.BottomSurface = 0
  527. Bar.formFactor = "Symmetric"
  528. Bar.Size = Vector3.new(1, 1, 1)
  529. Bar.Transparency = 1
  530. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  531. Bar.Parent = playa
  532. local Weld = Instance.new("Weld")
  533. Weld.Part0 = Torso
  534. Weld.Part1 = Bar
  535. Weld.C0 = CFrame.new(0, 0.5, 0)
  536. Weld.Parent = Torso
  537. --]]
  538. playa.Parent = Gibs
  539. game.Debris:AddItem(playa, 12)
  540. end
  541. end
  542.  
  543.  
  544. function calculate()
  545. if leftarm and chr:FindFirstChild('Head') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild("Left Shoulder") and chr:FindFirstChild('Left Arm') then
  546. local Head = plr.Character.Head
  547. local RightShoulder = plr.Character.Torso["Left Shoulder"]
  548. local RightArm = plr.Character["Left Arm"]
  549. local MousePosition = mou.Hit.p
  550. local ToMouse = (MousePosition - Head.Position).unit
  551. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  552. 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)))
  553. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(-1 ,0, -1)).unit
  554. local Look = (Head.CFrame.lookVector * Vector3.new(-1, 0, -1)).unit
  555. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  556. if tostring(LateralAngle) == "-1.#IND" then
  557. LateralAngle = 0
  558. end
  559. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  560. --[[
  561. if LateralAngle > (math.pi / 2) then
  562. LateralAngle = (math.pi / 2)
  563. if chr:FindFirstChild('Torso') then
  564. local Torso = chr.Torso
  565. local Point = Torso.CFrame:vectorToObjectSpace(mou.Hit.p-Torso.CFrame.p)
  566. if Point.Z > 0 then
  567. if Point.X > 0 then
  568. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  569. elseif Point.X < 0 then
  570. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  571. end
  572. end
  573. end
  574. end
  575. ]]--
  576. print(LateralAngle)
  577. warn(math.pi / 2)
  578. if Cross.Y < 0 then
  579. LateralAngle = -LateralAngle
  580. end
  581. return(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  582. elseif chr:FindFirstChild('Head') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild("Right Shoulder") and chr:FindFirstChild('Right Arm') then
  583. local Head = plr.Character.Head
  584. local RightShoulder = plr.Character.Torso["Right Shoulder"]
  585. local RightArm = plr.Character["Right Arm"]
  586. local MousePosition = mou.Hit.p
  587. local ToMouse = (MousePosition - Head.Position).unit
  588. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  589. 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)))
  590. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  591. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  592. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  593. if tostring(LateralAngle) == "-1.#IND" then
  594. LateralAngle = 0
  595. end
  596. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  597. if LateralAngle > (math.pi / 2) then
  598. LateralAngle = (math.pi / 2)
  599. if chr:FindFirstChild('Torso') then
  600. local Torso = chr.Torso
  601. local Point = Torso.CFrame:vectorToObjectSpace(mou.Hit.p-Torso.CFrame.p)
  602. if Point.Z > 0 then
  603. if Point.X > 0 then
  604. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  605. elseif Point.X < 0 then
  606. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  607. end
  608. end
  609. end
  610. end
  611. if Cross.Y < 0 then
  612. LateralAngle = -LateralAngle
  613. end
  614. return(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  615. end
  616. end
  617.  
  618. function fire()
  619. if mou.Target then
  620. local humanoid = mou.Target.Parent:FindFirstChildOfClass("Humanoid")
  621. if not humanoid then
  622. humanoid = mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
  623. end
  624. if humanoid then
  625. local coru = coroutine.wrap(function()
  626. damage(humanoid.Parent,mou.Target)
  627. end)
  628. coru()
  629. end
  630. end
  631. local beam = Instance.new("Part", workspace)
  632. beam.BrickColor = BrickColor.new("Really red")
  633. beam.FormFactor = "Custom"
  634. beam.Material = "Neon"
  635. beam.Transparency = 0.25
  636. beam.Anchored = true
  637. beam.Locked = true
  638. beam.CanCollide = false
  639. local distance = (obj4.CFrame.p - mou.Hit.p).magnitude
  640. beam.Size = Vector3.new(0.2, 0.2, distance)
  641. beam.CFrame = CFrame.new(obj4.CFrame.p, mou.Hit.p) * CFrame.new(0, 0, -distance / 2)
  642. game:GetService("Debris"):AddItem(beam, 0.05)
  643. local sound = Instance.new('Sound',obj4)
  644. sound.SoundId = 'rbxassetid://193444173'
  645. sound.Volume = 3
  646. sound.EmitterSize = 40
  647. sound.MaxDistance = 450
  648. sound:Play()
  649. game:GetService("Debris"):AddItem(beam, sound.TimeLength)
  650. end
  651.  
  652. ---------------------------[[[ SCRIPT ]]]---------------------------
  653. if chr:FindFirstChild('Left Arm') == nil or chr:FindFirstChild('Torso') == nil or chr.Torso:FindFirstChild('Left Shoulder') == nil then
  654. leftarm = false
  655. end
  656. local weldas = Instance.new('Weld',obj2)
  657. if leftarm and chr:FindFirstChild('Left Arm') then
  658. weldas.Part0 = obj2
  659. weldas.Part1 = chr["Left Arm"]
  660. weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
  661. elseif chr:FindFirstChild('Right Arm') then
  662. weldas.Part0 = obj2
  663. weldas.Part1 = chr["Right Arm"]
  664. weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
  665. end
  666.  
  667.  
  668. if leftarm and chr:FindFirstChild('Left Arm') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild('Left Shoulder') then
  669. chr:FindFirstChild('Left Arm').AncestryChanged:connect(function(me,par)
  670. if par ~= chr and chr:FindFirstChild('Right Arm') then
  671. if obj2 and obj2:FindFirstChildOfClass('Weld') then
  672. obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
  673. end
  674. leftarm = false
  675. end
  676. end)
  677. chr.Torso:FindFirstChild('Left Shoulder').AncestryChanged:connect(function(me,par)
  678. if par ~= chr:FindFirstChild('Torso') and chr:FindFirstChild('Right Arm') then
  679. if obj2 and obj2:FindFirstChildOfClass('Weld') then
  680. obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
  681. end
  682. end
  683. leftarm = false
  684. end)
  685. elseif leftarm then
  686. if obj2 and obj2:FindFirstChildOfClass('Weld') and chr:FindFirstChild('Right Arm') then
  687. obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
  688. end
  689. end
  690.  
  691. mou.KeyDown:connect(function(key)
  692. if key == string.lower(curkey) then
  693. active = not active
  694. end
  695. end)
  696.  
  697. plr.Chatted:connect(function(msg)
  698. if string.lower(string.sub(msg,1,5)) == "!bind" then
  699. curkey = string.lower(string.sub(msg,7,7))
  700. notify([[Changed key for equip/unequip to "]]..curkey..[[".]],false)
  701. end
  702. end)
  703.  
  704. game:GetService('RunService').Stepped:connect(function()
  705. if active and chr:FindFirstChild('Torso') then
  706. if leftarm then
  707. chr.Torso["Left Shoulder"].C0 = calculate()
  708. else
  709. chr.Torso["Right Shoulder"].C0 = calculate()
  710. end
  711. weldas.Part1 = chr["Right Arm"]
  712. weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
  713. elseif chr:FindFirstChild('Torso') and (chr.Torso:FindFirstChild('Left Shoulder') or chr.Torso:FindFirstChild('Right Shoulder')) then
  714. if leftarm then
  715. chr.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0)*CFrame.Angles(0,-math.pi/2,0)
  716. else
  717. chr.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.pi/2,0)
  718. end
  719. weldas.Part1 = chr.Torso
  720. weldas.C0 = CFrame.new(-1,0,-1)*CFrame.Angles(math.rad(-90),0,0)
  721. end
  722. for i,v in pairs(stunneds) do
  723. v.PlatformStand = true
  724. end
  725. end)
  726.  
  727. mou.Button1Down:connect(function()
  728. if active then
  729. fire()
  730. end
  731. end)
  732.  
  733. notify([[Chat "!bind [key]" to bind a different key to equip/unequip. Current key is "f".]],false)
Add Comment
Please, Sign In to add comment