Advertisement
okban

storm

Feb 22nd, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.89 KB | None | 0 0
  1. -- unganda Force
  2. --[[
  3. Uganda Force
  4. By: KYLETHORNTON
  5.  
  6. --]]
  7.  
  8. local p = game.Players.LocalPlayer.Character
  9. local weld = Instance.new("Weld",p.Head)
  10. weld.Part0 = p.Head
  11.  
  12. local train = Instance.new("Part",p.Head)
  13. train.Name = "Head2"
  14. train.Orientation = Vector3.new(0, -100, 0)
  15. train.Anchored = true
  16. train.CanCollide = false
  17. train.Size = Vector3.new(1,1,1)
  18. train.BrickColor = BrickColor.new("Institutional white")
  19. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  20. weld.Part1 = train
  21. weld.C1 = CFrame.new(0,-0.1,0.04) * CFrame.Angles(0,math.rad(-360),0)
  22. train.Anchored = false
  23. local TrainMesh = Instance.new("SpecialMesh",train)
  24. TrainMesh.MeshType = Enum.MeshType.FileMesh
  25. TrainMesh.Scale = Vector3.new(0.032, 0.031, 0.032)
  26. TrainMesh.MeshId = "rbxassetid://1446084994"
  27. TrainMesh.TextureId = ""
  28.  
  29. --[[hair]]------------------------------------------------
  30. local weld2 = Instance.new("Weld",p.Head)
  31. weld2.Part0 = p.Head
  32. local Knuckles = Instance.new("Part",p.Head)
  33. Knuckles.Orientation = Vector3.new(0, -100, 0)
  34. Knuckles.Anchored = false
  35. Knuckles.BrickColor = BrickColor.new("Really black")
  36. Knuckles.Rotation = Vector3.new(-90, -75, -90)
  37. Knuckles.Orientation = Vector3.new(-15, -90, 0)
  38. Knuckles.CanCollide = false
  39. Knuckles.Size = Vector3.new(1,1,1)
  40. Knuckles.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  41. weld2.Part1 = Knuckles
  42. weld2.C1 = CFrame.new(0,0.06,0.000001)-- * CFrame.Angles(0,math.rad(180),0)
  43. Knuckles.Anchored = false
  44. local KnucklesMesh = Instance.new("SpecialMesh",Knuckles)
  45. KnucklesMesh.MeshType = Enum.MeshType.FileMesh
  46. KnucklesMesh.Scale = Vector3.new(0.02, 0.02, 0.02)
  47. KnucklesMesh.MeshId = "rbxassetid://1446083485"
  48. KnucklesMesh.TextureId = ""
  49. ---------------------------------------------------------------------------
  50.  
  51. local Particle = Instance.new("ParticleEmitter",Smoke)
  52. Particle.Rate = 50;
  53. Particle.Speed = NumberRange.new(30,60);
  54. Particle.VelocitySpread = 4;
  55. Particle.Texture = "rbxassetid://0"
  56.  
  57. local Light = Instance.new("SpotLight",train)
  58. Light.Angle = 45;
  59. Light.Brightness = 0;
  60. Light.Face = Enum.NormalId.Back;
  61. Light.Range = 30;
  62.  
  63. p.Humanoid.WalkSpeed = 16;
  64.  
  65.  
  66. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  67. train.Touched:connect(function(p)
  68. if p.Parent then
  69. if p.Parent:IsA("Model") then
  70. if game.Players:FindFirstChild(p.Parent.Name) then
  71. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  72. local Whistle = SFX(0)
  73. Whistle:Play()
  74. end
  75. end
  76. end
  77. end
  78. end)
  79.  
  80. local Music = SFX(0)
  81. Music.Looped = true;
  82. wait(0)
  83. Music:Play();
  84. -- ~CL 2016
  85. wait(0.1)
  86. local Player = game.Players.localPlayer
  87. local Character = Player.Character
  88. local Humanoid = Character.Humanoid
  89. local Mouse = Player:GetMouse()
  90. local LeftArm = Character["Left Arm"]
  91. local RightArm = Character["Right Arm"]
  92. local LeftLeg = Character["Left Leg"]
  93. local RightLeg = Character["Right Leg"]
  94. local Head = Character.Head
  95. local Torso = Character.Torso
  96. local Camera = game.Workspace.CurrentCamera
  97. local RootPart = Character.HumanoidRootPart
  98. local RootJoint = RootPart.RootJoint
  99. local attack = false
  100. local Anim = 'Idle'
  101. local attacktype = 1
  102. local delays = false
  103. local play = true
  104. local targetted = nil
  105. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  106. local velocity = RootPart.Velocity.y
  107. local sine = 0
  108. local change = 1
  109. local doe = 0
  110. local Create = LoadLibrary("RbxUtility").Create
  111. Humanoid.WalkSpeed = 16
  112.  
  113. local Orin = "rbxassetid://0"
  114. Head.face.Texture = Orin
  115. local Orin = "1"
  116. Head.Transparency = Orin
  117. spawn(function()
  118. while wait() do
  119.  
  120. end
  121. end)
  122. for i,v in pairs(Character:children()) do
  123. if v:IsA("Hat") then
  124. v:Destroy()
  125. end
  126. end
  127. for i,v in pairs(Character:children()) do
  128. if v:IsA("Accessory") then
  129. v:Destroy()
  130. end
  131. end
  132. for i,v in pairs(Character:children()) do
  133. if v:IsA("Hair") then
  134. v:Destroy()
  135. end
  136. end
  137. for i,v in pairs(Character:children()) do
  138. if v:IsA("Shirt") then
  139. v:Destroy()
  140. end
  141. end
  142. for i,v in pairs(Character:children()) do
  143. if v:IsA("Pants") then
  144. v:Destroy()
  145. end
  146. end
  147. for i,v in pairs(Character:children()) do
  148. if v:IsA("Graphic Shirt") then
  149. v:Destroy()
  150. end
  151. end
  152. wait(0.1)
  153. function sandbox(var,func)
  154. local env = getfenv(func)
  155. local newenv = setmetatable({},{
  156. __index = function(self,k)
  157. if k=="script" then
  158. return var
  159. else
  160. return env[k]
  161. end
  162. end,
  163. })
  164. setfenv(func,newenv)
  165. return func
  166. end
  167. cors = {}
  168. mas = Instance.new("Model",game:GetService("Lighting"))
  169. ForceField0 = Instance.new("ForceField")
  170. ForceField1 = Instance.new("ForceField")
  171. ForceField2 = Instance.new("ForceField")
  172. ForceField3 = Instance.new("ForceField")
  173. ForceField0.Parent = mas
  174. ForceField0.Visible = false
  175. ForceField1.Parent = mas
  176. ForceField1.Visible = false
  177. ForceField2.Parent = mas
  178. ForceField2.Visible = false
  179. ForceField3.Parent = mas
  180. ForceField3.Visible = false
  181. Script0 = Instance.new("Script")
  182. Sound1 = Instance.new("Sound")
  183. Sound2 = Instance.new("Sound")
  184. Sound3 = Instance.new("Sound")
  185. Sound4 = Instance.new("Sound")
  186. Sound5 = Instance.new("Sound")
  187. Script0.Name = "sound's"
  188. Script0.Parent = mas
  189. table.insert(cors,sandbox(Script0,function()
  190. --Uganda sound--
  191.  
  192. function onKeyPress(inputObject, gameProcessedEvent)
  193. if inputObject.KeyCode == Enum.KeyCode.F10 then
  194. script.Sound:Play()
  195. end
  196. end
  197. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  198.  
  199. function onKeyPress(inputObject, gameProcessedEvent)
  200. if inputObject.KeyCode == Enum.KeyCode.F1 then
  201. script.Sound2:Play()
  202. end
  203. end
  204. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  205.  
  206. function onKeyPress(inputObject, gameProcessedEvent)
  207. if inputObject.KeyCode == Enum.KeyCode.F1 then
  208. script.Sound3:Play()
  209. end
  210. end
  211. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  212.  
  213. function onKeyPress(inputObject, gameProcessedEvent)
  214. if inputObject.KeyCode == Enum.KeyCode.F1 then
  215. script.Sound4:Play()
  216. end
  217. end
  218. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  219.  
  220. function onKeyPress(inputObject, gameProcessedEvent)
  221. if inputObject.KeyCode == Enum.KeyCode.F1 then
  222. script.Sound5:Play()
  223. end
  224. end
  225. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  226. end))
  227. Sound1.Parent = Script0
  228. Sound1.SoundId = "rbxassetid://360299249"
  229. Sound1.Volume = 10
  230. Sound2.Name = "Sound2"
  231. Sound2.Parent = Script0
  232. Sound2.SoundId = "rbxassetid://1295525558"
  233. Sound2.Volume = 10
  234. Sound3.Name = "Sound3"
  235. Sound3.Parent = Script0
  236. Sound3.SoundId = "rbxassetid://1322795266"
  237. Sound3.Volume = 10
  238. Sound4.Name = "Sound4"
  239. Sound4.Parent = Script0
  240. Sound4.SoundId = "rbxassetid://1311432465"
  241. Sound4.Volume = 10
  242. Sound5.Name = "Sound5"
  243. Sound5.Parent = Script0
  244. Sound5.SoundId = "rbxassetid://1316278479"
  245. Sound5.Volume = 10
  246. for i,v in pairs(mas:GetChildren()) do
  247. v.Parent = game:GetService("Players").LocalPlayer.Character
  248. pcall(function() v:MakeJoints() end)
  249. end
  250. mas:Destroy()
  251. for i,v in pairs(cors) do
  252. spawn(function()
  253. pcall(v)
  254. end)
  255. end
  256. wait(0.1)
  257. local char = Player.Character
  258. local Character = Player.Character
  259. local Head = Character.Head
  260. local done = false
  261. local canheal = false
  262. local deathchat1 = false
  263. local once = true
  264. local dead = false
  265. local candie = true
  266. local deathchat = false
  267. local idleon = true
  268. local idle1 = true
  269. local idle = true
  270. for i, v in pairs(game:GetService("Players").LocalPlayer.Character:children()) do
  271. if v:IsA("Accessory") then
  272. v:Destroy()
  273. end
  274. end
  275. for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  276. if v:IsA("Shirt") then
  277. v:Remove()
  278. end
  279. end
  280. for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  281. if v:IsA("Pants") then
  282. v:Remove()
  283. end
  284. end
  285. wait()
  286. shirt = Instance.new("Shirt", game:GetService("Players").LocalPlayer.Character)
  287. shirt.Name = "Shirt"
  288. pants = Instance.new("Pants", game:GetService("Players").LocalPlayer.Character)
  289. pants.Name = "Pants"
  290. shirt = Instance.new("Shirt", char)
  291. shirt.Name = "Shirt"
  292. pants = Instance.new("Pants", char)
  293. pants.Name = "Pants"
  294. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=295323003"
  295. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=295323013"
  296. wait(0.1)
  297.  
  298. --Converted with ttyyuu12345's model to script plugin v4
  299. function sandbox(var,func)
  300. local env = getfenv(func)
  301. local newenv = setmetatable({},{
  302. __index = function(self,k)
  303. if k=="script" then
  304. return var
  305. else
  306. return env[k]
  307. end
  308. end,
  309. })
  310. setfenv(func,newenv)
  311. return func
  312. end
  313. cors = {}
  314. mas = Instance.new("Model",game:GetService("Lighting"))
  315. Tool0 = Instance.new("Tool")
  316. Part1 = Instance.new("Part")
  317. BlockMesh2 = Instance.new("BlockMesh")
  318. PointLight3 = Instance.new("PointLight")
  319. BillboardGui4 = Instance.new("BillboardGui")
  320. ImageLabel5 = Instance.new("ImageLabel")
  321. LocalScript6 = Instance.new("LocalScript")
  322. Script7 = Instance.new("Script")
  323. ScreenGui8 = Instance.new("ScreenGui")
  324. Frame9 = Instance.new("Frame")
  325. Frame10 = Instance.new("Frame")
  326. TextLabel11 = Instance.new("TextLabel")
  327. Frame12 = Instance.new("Frame")
  328. Frame13 = Instance.new("Frame")
  329. Frame14 = Instance.new("Frame")
  330. Frame15 = Instance.new("Frame")
  331. TextLabel16 = Instance.new("TextLabel")
  332. ImageButton17 = Instance.new("ImageButton")
  333. Part18 = Instance.new("Part")
  334. BlockMesh19 = Instance.new("BlockMesh")
  335. Sound20 = Instance.new("Sound")
  336. Sound21 = Instance.new("Sound")
  337. Sound22 = Instance.new("Sound")
  338. Sound23 = Instance.new("Sound")
  339. Sound24 = Instance.new("Sound")
  340. Sound25 = Instance.new("Sound")
  341. Sound26 = Instance.new("Sound")
  342. Sound27 = Instance.new("Sound")
  343. Part28 = Instance.new("Part")
  344. SpecialMesh29 = Instance.new("SpecialMesh")
  345. LocalScript30 = Instance.new("LocalScript")
  346. Tool0.Name = "E-11"
  347. Tool0.Parent = mas
  348. Tool0.GripForward = Vector3.new(0, -5.88028779e-05, -1)
  349. Tool0.GripPos = Vector3.new(-0.0500000007, -0.200000003, -0.200000003)
  350. Tool0.GripUp = Vector3.new(0, 1, -5.88028779e-05)
  351. Tool0.ToolTip = "Standard Issue Blaster"
  352. Tool0.CanBeDropped = false
  353. Part1.Name = "Barrel"
  354. Part1.Parent = Tool0
  355. Part1.Material = Enum.Material.SmoothPlastic
  356. Part1.BrickColor = BrickColor.new("Black")
  357. Part1.Transparency = 1
  358. Part1.Anchored = true
  359. Part1.CanCollide = false
  360. Part1.FormFactor = Enum.FormFactor.Custom
  361. Part1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  362. Part1.CFrame = CFrame.new(178.294815, 0.872389972, -125.593063, 0.999999881, -5.72530698e-05, 2.08904294e-06, 5.77678111e-05, 0.999999642, 3.48687172e-05, -6.48080459e-07, -3.439188e-05, 1)
  363. Part1.BottomSurface = Enum.SurfaceType.Smooth
  364. Part1.TopSurface = Enum.SurfaceType.Smooth
  365. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  366. Part1.Position = Vector3.new(178.294815, 0.872389972, -125.593063)
  367. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  368. BlockMesh2.Parent = Part1
  369. BlockMesh2.Scale = Vector3.new(0.13333334, 0.666666687, 0.333333343)
  370. BlockMesh2.Scale = Vector3.new(0.13333334, 0.666666687, 0.333333343)
  371. PointLight3.Parent = Part1
  372. PointLight3.Color = Color3.new(0.666667, 0, 0)
  373. PointLight3.Enabled = false
  374. PointLight3.Range = 10
  375. PointLight3.Shadows = true
  376. PointLight3.Color = Color3.new(0.666667, 0, 0)
  377. BillboardGui4.Name = "Flash"
  378. BillboardGui4.Parent = Part1
  379. BillboardGui4.Size = UDim2.new(2, 0, 2, 0)
  380. BillboardGui4.Active = true
  381. ImageLabel5.Name = "Flash"
  382. ImageLabel5.Parent = BillboardGui4
  383. ImageLabel5.Transparency = 1
  384. ImageLabel5.Size = UDim2.new(0.75, 0, 0.660000026, 0)
  385. ImageLabel5.Position = UDim2.new(0.125, 0, 0.150000006, 0)
  386. ImageLabel5.Active = true
  387. ImageLabel5.Visible = false
  388. ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  389. ImageLabel5.BackgroundTransparency = 1
  390. ImageLabel5.Image = "http://www.roblox.com/asset/?id=58232701"
  391. LocalScript6.Name = "MainScript"
  392. LocalScript6.Parent = Tool0
  393. table.insert(cors,sandbox(LocalScript6,function()
  394. --Sith Empire Guns by LordStrakk
  395. script.Parent:WaitForChild("Barrel")
  396. local Barrel = script.Parent["Barrel"]
  397.  
  398. --Gun Stats
  399. local MaxAmmo = 60 --Ammount of bullets you can fire.
  400. local FireRate = 0.2 --Time between shots.
  401. local AccuricyRange = 1 -- Degree's
  402. local Damage = 200000
  403. local DamageRange = 200000
  404. local Automatic = true
  405. local Burst = false
  406.  
  407. local GunType = 2 -- 1 = Pistol, 2 = Rifle.
  408.  
  409. local TeamKill = true -- Can kill team-mates or not.
  410.  
  411. local BulletColor = BrickColor.new("Bright red")
  412.  
  413. --Arm CFrames
  414. local LeftArmFireCF = CFrame.new(.84, .4, 1.1) * CFrame.fromEulerAnglesXYZ(math.rad(320), -0.2, math.rad(-90))
  415. local RightArmFireCF = CFrame.new(-.75, -0.4, -0.95) * CFrame.fromEulerAnglesXYZ(math.rad(-89), math.rad(-14), 0)
  416.  
  417. local LeftArmWeld = Instance.new("Weld", script)
  418. local RightArmWeld = Instance.new("Weld", script)
  419.  
  420. --Cursors
  421. local MainCursor = "http://www.roblox.com/asset/?id=147491857"
  422. local ReloadCursor = "http://www.roblox.com/asset/?id=147491879"
  423.  
  424. --Values
  425. local Ammo = MaxAmmo
  426. local Reloading = false
  427. local Clicking = false
  428. local Fireing = false
  429. local IsEquipped = false
  430. local Gui = nil
  431. local BulletsModel = nil
  432.  
  433. --Setup
  434. if script.Parent:findFirstChild("Bullets") == nil then
  435. BulletsModel = Instance.new("Model", script.Parent)
  436. BulletsModel.Name = "Bullets"
  437. end
  438.  
  439. local Bullet = Barrel:clone()
  440. Bullet["PointLight"]:remove()
  441. Bullet["Flash"]:remove()
  442. Bullet["Mesh"]:remove()
  443. Bullet.Name = "Bullet"
  444. Bullet.Parent = BulletsModel
  445. Bullet.Anchored = true
  446. Bullet.CanCollide = false
  447. Bullet.FormFactor = "Custom"
  448. Bullet.Transparency = 1
  449. Bullet.Material = "Neon"
  450. Bullet.Size = Vector3.new(0.2, 0.2, 1)
  451. local BulletMesh = Instance.new("BlockMesh", Bullet)
  452.  
  453. --Functions
  454.  
  455. function ReloadAnimation(Speed)
  456. local weld55 = LeftArmWeld
  457. local weld33 = RightArmWeld
  458. weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-91), math.rad(-24), 0.02)
  459. wait(0.02)
  460. weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-92), math.rad(-24), 0.04)
  461. wait(0.02)
  462. weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-93), math.rad(-24), 0.06)
  463. wait(0.02)
  464. weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-94), math.rad(-24), 0.08)
  465. wait(0.02)
  466. weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-95), math.rad(-24), 0.1)
  467. wait(0.02)
  468. weld55.C1 = CFrame.new(0.65, 1, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(306), -0.02, math.rad(-90))
  469. wait(0.02)
  470. weld55.C1 = CFrame.new(0.65, 0.8, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(312), -0.02, math.rad(-90))
  471. wait(0.02)
  472. weld55.C1 = CFrame.new(0.65, 0.6, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(318), -0.02, math.rad(-90))
  473. wait(0.02)
  474. weld55.C1 = CFrame.new(0.65, 0.4, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(324), -0.02, math.rad(-90))
  475. wait(0.02)
  476. weld55.C1 = CFrame.new(0.65, 0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(330), -0.02, math.rad(-90))
  477. wait(0.02)
  478. weld55.C1 = CFrame.new(0.65, 0, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(336), -0.02, math.rad(-90))
  479. wait(0.02)
  480. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.02, math.rad(-90))
  481. wait(0.02)
  482. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.12, math.rad(-90))
  483. wait(0.005)
  484. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.22, math.rad(-90))
  485. wait(0.005)
  486. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.42, math.rad(-90))
  487. wait(0.005)
  488. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.52, math.rad(-90))
  489. wait(0.005)
  490. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.62, math.rad(-90))
  491. wait(0.005)
  492. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.82, math.rad(-90))
  493. wait(0.2)
  494. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.92, math.rad(-90))
  495. wait()
  496. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.82, math.rad(-90))
  497. wait()
  498. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.77, math.rad(-90))
  499. wait()
  500. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.67, math.rad(-90))
  501. wait()
  502. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.62, math.rad(-90))
  503. wait()
  504. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.52, math.rad(-90))
  505. wait()
  506. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.47, math.rad(-90))
  507. wait()
  508. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.37, math.rad(-90))
  509. wait()
  510. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.27, math.rad(-90))
  511. wait()
  512. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.22, math.rad(-90))
  513. wait()
  514. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.17, math.rad(-90))
  515. wait()
  516. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.07, math.rad(-90))
  517. wait()
  518. weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.02, math.rad(-90))
  519. --script.Parent.Handle.Reload:play()
  520. wait(0.2)
  521. weld55.C1 = CFrame.new(0.65, 0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(321), 0.08, math.rad(-90))
  522. wait(0.03)
  523. weld55.C1 = CFrame.new(0.65, 0.4, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(312), 0.13, math.rad(-90))
  524. wait(0.03)
  525. weld55.C1 = CFrame.new(0.65, 0.6, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(303), 0.18, math.rad(-90))
  526. wait(0.03)
  527. weld55.C1 = CFrame.new(0.65, 0.8, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(294), 0.23, math.rad(-90))
  528. wait(0.03)
  529. weld55.C1 = CFrame.new(0.65, 1, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  530. wait(0.03)
  531. weld55.C1 = CFrame.new(0.65, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  532. wait(0.03)
  533. weld55.C1 = CFrame.new(0.65, 1.4, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  534. wait(0.03)
  535. weld55.C1 = CFrame.new(0.65, 1.6, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  536. wait(0.03)
  537. weld55.C1 = CFrame.new(0.65, 1.8, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  538. wait(0.1)
  539. weld55.C1 = CFrame.new(0.65, 1.6, 0.7) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  540. wait(0.03)
  541. weld55.C1 = CFrame.new(0.65, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  542. wait(0.24)
  543. weld55.C1 = CFrame.new(0.65, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
  544. wait(.03)
  545. weld33.C1 = CFrame.new(-1.15, 0.4, -1) * CFrame.fromEulerAnglesXYZ(math.rad(-94), math.rad(-19), 0.06)
  546. weld55.C1 = CFrame.new(0.65, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(293), 0.13, math.rad(-90))
  547. wait(.03)
  548. weld33.C1 = CFrame.new(-.95, 0.3, -1) * CFrame.fromEulerAnglesXYZ(math.rad(-93), math.rad(-14), 0.04)
  549. weld55.C1 = CFrame.new(0.65, 1.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(295), 0.13, math.rad(-90))
  550. wait(.03)
  551. weld33.C1 = CFrame.new(-.9, 0.2, -1.1) * CFrame.fromEulerAnglesXYZ(math.rad(-92), math.rad(-7), 0.02)
  552. weld55.C1 = CFrame.new(0.65, 1.25, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(297), 0.08, math.rad(-90))
  553. wait(.03)
  554. weld33.C1 = CFrame.new(-.85, .4, -1.1) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), 0)
  555. weld55.C1 = CFrame.new(0.65, 1.2, .8) * CFrame.fromEulerAnglesXYZ(math.rad(300), -0.02, math.rad(-90))
  556.  
  557. wait(0.01)
  558.  
  559. LeftArmWeld.C1 = LeftArmFireCF
  560. RightArmWeld.C1 = RightArmFireCF
  561. end
  562.  
  563. function UpdateGui()
  564. coroutine.resume(coroutine.create(function()
  565. if Gui == nil then
  566. if game.Players.LocalPlayer.PlayerGui:findFirstChild("WeaponHud") ~= nil then
  567. Gui = game.Players.LocalPlayer.PlayerGui["WeaponHud"]
  568. else
  569. Gui = script["WeaponHud"]:clone()
  570. Gui.Parent = game.Players.LocalPlayer.PlayerGui
  571. end
  572. end
  573. Gui["MainFrame"]["Frame"]["WeaponName"].Text = script.Parent.Name
  574. if Ammo ~= MaxAmmo then
  575. Gui["MainFrame"]["Frame"]["BarFrame"]["Bar"].Size = UDim2.new(((1 / MaxAmmo) * (Ammo)), 0, 1, 0)
  576. else
  577. Gui["MainFrame"]["Frame"]["BarFrame"]["Bar"].Size = UDim2.new(1, 0, 1, 0)
  578. --Gui["Bar"]["Fill"].BackgroundColor3 = Color3.new(0, 1, 0)
  579. end
  580. local Percent = (((1 / MaxAmmo) * (Ammo)) * 100)
  581. local PercentText = tostring(Percent)
  582. if PercentText:sub(1):find(".") and PercentText ~= "100" then
  583. if Percent < 10 then
  584. PercentText = PercentText:sub(1, PercentText:sub(1):find("."))
  585. else
  586. PercentText = PercentText:sub(1, PercentText:sub(1):find(".") + 1)
  587. end
  588. end
  589. wait(0.1)
  590. if Reloading == false then
  591. Gui["MainFrame"]["Frame"]["Percent"].Text = PercentText .. "%"
  592. else
  593. Gui["MainFrame"]["Frame"]["Percent"].Text = "RELOADING..."
  594. end
  595. end))
  596. end
  597.  
  598. function TestForLightsaber(Human, BulletPos, BulletHitPos)
  599. local ToReturn = false
  600. coroutine.resume(coroutine.create(function()
  601. local LightsaberFound = false
  602. local FoundLightsaber = nil
  603. if Human.Parent:findFirstChild("LightsaberEquipped") ~= nil then
  604. LightsaberFound = true
  605. FoundLightsaber = Human.Parent["LightsaberEquipped"].Value
  606. end
  607. --for i, v in pairs(Human.Parent:GetChildren()) do
  608. --if v then
  609. --if v:IsA("Tool") then
  610. --if v.Name:lower():sub(1):find("lightsaber") then
  611. --LightsaberFound = true
  612. --FoundLightsaber = v
  613. --end
  614. --end
  615. --end
  616. --end
  617. --for i, v in pairs(game.Lighting["LightsaberNames"]:GetChildren()) do
  618. --if Human.Parent:findFirstChild(v.Name) ~= nil then
  619. --FoundLightsaber = Human.Parent[v.Name]
  620. --LightsaberFound = true
  621. --end
  622. --wait(0.01)
  623. --end
  624. local BlockDist = 0.15
  625. if LightsaberFound == true then
  626. if FoundLightsaber:findFirstChild("BlockPrecentage") ~= nil then
  627. BlockDist = FoundLightsaber["BlockPrecentage"].Value
  628. else
  629. BlockDist = 0.15
  630. end
  631. end
  632. if LightsaberFound == true then
  633. local TheHandle = FoundLightsaber["Handle"]
  634. local Char = Human.Parent
  635. local Char2 = game.Players.LocalPlayer.Character
  636. local LookCF = CFrame.new(Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z), Vector3.new(Char["Torso"].Position.X, BulletPos.y, Char["Torso"].Position.Z))
  637. local Ray = Ray.new(LookCF.p, (LookCF * CFrame.new(0, 0, -999)).p - LookCF.p)
  638. local DistFromBullet = (Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z) - Vector3.new(Char2["Torso"].Position.X, BulletPos.y, Char2["Torso"].Position.Z)).magnitude
  639. local CP = Ray:ClosestPoint(Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z))
  640. local DistFromCP = (Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z) - Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z)).magnitude
  641. if DistFromCP <= (DistFromBullet * BlockDist) then
  642. ToReturn = true
  643. --coroutine.resume(coroutine.create(function()
  644. --if FoundLightsaber["ClashScript"]["Clash"].Value == true then
  645. --FoundLightsaber["ClashScript"]["Clash"].Value = false
  646. --else
  647. --FoundLightsaber["ClashScript"]["Clash"].Value = true
  648. --FoundLightsaber["ClashScript"]["Blade"].Value = FoundLightsaber["Blade"]
  649. --end
  650. --end))
  651. end
  652. end
  653. if LightsaberFound == true then
  654. if FoundLightsaber:findFirstChild("Handle3") then
  655. local TheHandle = FoundLightsaber["Handle3"]
  656. local Char = Human.Parent
  657. local Char2 = game.Players.LocalPlayer.Character
  658. local LookCF = CFrame.new(Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z), Vector3.new(Char["Torso"].Position.X, BulletPos.y, Char["Torso"].Position.Z))
  659. local Ray = Ray.new(LookCF.p, (LookCF * CFrame.new(0, 0, -999)).p - LookCF.p)
  660. local DistFromBullet = (Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z) - Vector3.new(Char2["Torso"].Position.X, BulletPos.y, Char2["Torso"].Position.Z)).magnitude
  661. local CP = Ray:ClosestPoint(Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z))
  662. local DistFromCP = (Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z) - Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z)).magnitude
  663. if DistFromCP <= (DistFromBullet * BlockDist) then
  664. ToReturn = true
  665. --coroutine.resume(coroutine.create(function()
  666. --if FoundLightsaber["ClashScript"]["Clash"].Value == true then
  667. --FoundLightsaber["ClashScript"]["Clash"].Value = false
  668. --else
  669. --FoundLightsaber["ClashScript"]["Clash"].Value = true
  670. --FoundLightsaber["ClashScript"]["Blade"].Value = FoundLightsaber["Blade3"]
  671. --end
  672. --end))
  673. end
  674. end
  675. end
  676. end))
  677. return ToReturn
  678. end
  679.  
  680. function Fire(TargetPos)
  681. coroutine.resume(coroutine.create(function()
  682. if game.Players.LocalPlayer.Character["Humanoid"].Health > 0 then
  683. --coroutine.resume(coroutine.create(function()
  684. if Reloading == false and Ammo > 0 then
  685.  
  686. local RotX = (math.random(-(AccuricyRange * 5), (AccuricyRange * 5)) * 0.1)
  687. local RotY = (math.random(-(AccuricyRange * 5), (AccuricyRange * 5)) * 0.1)
  688. local DirectionCF = CFrame.new(Barrel.Position, TargetPos) * CFrame.Angles(math.rad(RotX), math.rad(RotY), 0)
  689. local Dist = 1000
  690. local Ray = Ray.new(Barrel.Position, (DirectionCF * CFrame.new(0, 0, -1000)).p - Barrel.Position)
  691. local Hit, Pos = game.Workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
  692. if Hit ~= nil then
  693. Dist = (Pos - Barrel.Position).magnitude
  694. local Human = nil
  695. if Hit.Parent:findFirstChild("Humanoid") then
  696. Human = Hit.Parent["Humanoid"]
  697. elseif Hit.Parent.Parent:findFirstChild("Humanoid") then
  698. Human = Hit.Parent.Parent["Humanoid"]
  699. end
  700. if Human ~= nil then
  701. coroutine.resume(coroutine.create(function()
  702. local BulletBlocked = false
  703. local BlockedBySaber = TestForLightsaber(Human, DirectionCF.p, Pos)
  704. if BlockedBySaber == true then
  705. BulletBlocked = true
  706. end
  707. if BulletBlocked == false then
  708. local EPlayer = game.Players:GetPlayerFromCharacter(Human.Parent)
  709. local DamageHuman = true
  710. if EPlayer ~= nil then
  711. if EPlayer.TeamColor == game.Players.LocalPlayer.TeamColor and TeamKill == false then
  712. DamageHuman = false
  713. end
  714. end
  715. --wait(0.01)
  716. if DamageHuman == true and Human.Parent:findFirstChild("ForceField") == nil then
  717. Human.Health = Human.Health - (math.random((Damage - DamageRange) * 10, (Damage + DamageRange) * 10) * 0.1)
  718. if Human.Health <= 0 then
  719. if Human:findFirstChild("creator") == nil then
  720. local CreatorValue = Instance.new("ObjectValue", Human)
  721. CreatorValue.Name = "creator"
  722. CreatorValue.Value = game.Players.LocalPlayer
  723. end
  724. end
  725. end
  726. end
  727. end))
  728. end
  729. end
  730.  
  731. coroutine.resume(coroutine.create(function()
  732. Bullet.CFrame = DirectionCF
  733. script.Parent["Handle"]["Fire"]:Play()
  734. Barrel["PointLight"].Enabled = true
  735. if BulletColor == nil then
  736. Bullet.BrickColor = game.Players.LocalPlayer.TeamColor
  737. else
  738. Bullet.BrickColor = BulletColor
  739. end
  740. Barrel["PointLight"].Color = Bullet.BrickColor.Color
  741. Bullet.Transparency = 0.2
  742. wait(0.03)
  743. Bullet.Transparency = 1
  744. Barrel["Flash"]["Flash"].Visible = false
  745. Barrel["PointLight"].Enabled = false
  746. end))
  747.  
  748. BulletMesh.Scale = Vector3.new(0.25, 0.25, Dist)
  749. BulletMesh.Offset = Vector3.new(0, 0, -(Dist / 2))
  750.  
  751. end
  752. --end))
  753. end
  754. end))
  755. end
  756.  
  757. function KeyDown(key, Mouse)
  758. if key == "r" then
  759. if Ammo < MaxAmmo then
  760. Reloading = true
  761. wait(0.1)
  762. UpdateGui()
  763. Mouse.Icon = ReloadCursor
  764. script.Parent["Handle"]["Reload"]:Play()
  765. ReloadAnimation()
  766. if Reloading == true then
  767. Ammo = MaxAmmo
  768. end
  769. Mouse.Icon = MainCursor
  770. UpdateGui()
  771. Reloading = false
  772. end
  773. end
  774. end
  775.  
  776. function Button1Down(Mouse)
  777. if IsEquipped == true then
  778. Clicking = true
  779. if Automatic == true then
  780. Mouse.Button1Up:connect(function()
  781. Clicking = false
  782. end)
  783. end
  784. coroutine.resume(coroutine.create(function()
  785. while Clicking == true and Ammo > 0 and Reloading == false do
  786. coroutine.resume(coroutine.create(function()
  787. if Fireing == false then
  788. Fireing = true
  789. if Burst == false then
  790. Fire(Mouse.Hit.p)
  791. elseif Burst == true then
  792. Fire(Mouse.Hit.p)
  793. wait(0.02)
  794. Fire(Mouse.Hit.p)
  795. wait(0.02)
  796. Fire(Mouse.Hit.p)
  797. end
  798. Ammo = Ammo - 1
  799. coroutine.resume(coroutine.create(function()
  800. wait(FireRate)
  801. Fireing = false
  802. end))
  803. end
  804. if Automatic == false then
  805. Clicking = false
  806. end
  807. end))
  808. UpdateGui()
  809. wait(FireRate)
  810. end
  811. end))
  812. end
  813. end
  814.  
  815.  
  816. function KeyDown(key, Mouse)
  817. if key == "r" then
  818. if Ammo < MaxAmmo then
  819. UpdateGui()
  820. Reloading = true
  821. Mouse.Icon = ReloadCursor
  822. script.Parent["Handle"]["Reload"]:Play()
  823. ReloadAnimation()
  824. if Reloading == true then
  825. Ammo = MaxAmmo
  826. end
  827. Mouse.Icon = MainCursor
  828. UpdateGui()
  829. Reloading = false
  830. end
  831. end
  832. end
  833.  
  834. function Button1Down(Mouse)
  835. if IsEquipped == true then
  836. Clicking = true
  837. if Automatic == true then
  838. Mouse.Button1Up:connect(function()
  839. Clicking = false
  840. end)
  841. end
  842. coroutine.resume(coroutine.create(function()
  843. while Clicking == true and Ammo > 0 and Reloading == false do
  844. coroutine.resume(coroutine.create(function()
  845. if Fireing == false then
  846. Fireing = true
  847. if Burst == false then
  848. Fire(Mouse.Hit.p)
  849. elseif Burst == true then
  850. Fire(Mouse.Hit.p)
  851. wait(0.02)
  852. Fire(Mouse.Hit.p)
  853. wait(0.02)
  854. Fire(Mouse.Hit.p)
  855. end
  856. Ammo = Ammo - 1
  857. coroutine.resume(coroutine.create(function()
  858. wait(FireRate)
  859. Fireing = false
  860. end))
  861. end
  862. if Automatic == false then
  863. Clicking = false
  864. end
  865. end))
  866. UpdateGui()
  867. wait(FireRate)
  868. end
  869. end))
  870. end
  871. end
  872.  
  873. function Equipped(Mouse)
  874. Mouse.Icon = MainCursor
  875. IsEquipped = true
  876. Mouse.KeyDown:connect(function(key) KeyDown(key, Mouse) end)
  877. Mouse.Button1Down:connect(function() Button1Down(Mouse) end)
  878. UpdateGui()
  879. coroutine.resume(coroutine.create(function()
  880. local Char = game.Players.LocalPlayer.Character
  881. if Char:findFirstChild("Left Arm") ~= nil then
  882. LeftArmWeld.Parent = script
  883. LeftArmWeld.Part0 = Char["Head"]
  884. LeftArmWeld.Part1 = Char["Left Arm"]
  885. LeftArmWeld.C1 = LeftArmFireCF
  886. Char["Torso"]["Left Shoulder"].Part1 = nil
  887. end
  888. if Char:findFirstChild("Right Arm") ~= nil then
  889. RightArmWeld.Parent = script
  890. RightArmWeld.Part0 = Char["Head"]
  891. RightArmWeld.Part1 = Char["Right Arm"]
  892. RightArmWeld.C1 = RightArmFireCF
  893. Char["Torso"]["Right Shoulder"].Part1 = nil
  894. end
  895. end))
  896. end
  897.  
  898. function UnEquipped()
  899. coroutine.resume(coroutine.create(function()
  900. local Char = game.Players.LocalPlayer.Character
  901. if Char:findFirstChild("Left Arm") then
  902. LeftArmWeld.Part0 = nil
  903. LeftArmWeld.Part1 = nil
  904. Char["Torso"]["Left Shoulder"].Part1 = Char["Left Arm"]
  905. end
  906. if Char:findFirstChild("Right Arm") then
  907. RightArmWeld.Part0 = nil
  908. RightArmWeld.Part1 = nil
  909. Char["Torso"]["Right Shoulder"].Part1 = Char["Right Arm"]
  910. end
  911. end))
  912. if Gui ~= nil then
  913. Gui:remove()Gui = nil
  914. end
  915. Reloading = false
  916. Fireing = false
  917. Clicking = false
  918. IsEquipped = false
  919. end
  920.  
  921. script.Parent.Equipped:connect(Equipped)
  922. script.Parent.Unequipped:connect(UnEquipped)
  923. end))
  924. Script7.Name = "CleanScript"
  925. Script7.Parent = LocalScript6
  926. Script7.Disabled = true
  927. table.insert(cors,sandbox(Script7,function()
  928. local Char = script.Parent.Parent.Parent
  929. repeat
  930. wait(10)
  931. until Char == nil
  932. script.Parent:remove()
  933.  
  934. end))
  935. ScreenGui8.Name = "WeaponHud"
  936. ScreenGui8.Parent = LocalScript6
  937. Frame9.Name = "MainFrame"
  938. Frame9.Parent = ScreenGui8
  939. Frame9.Transparency = 1
  940. Frame9.Size = UDim2.new(1, 0, 0.150000006, 0)
  941. Frame9.Position = UDim2.new(0, 0, 0.649999976, 0)
  942. Frame9.BackgroundColor3 = Color3.new(1, 1, 1)
  943. Frame9.BackgroundTransparency = 1
  944. Frame9.BorderSizePixel = 0
  945. Frame10.Parent = Frame9
  946. Frame10.Transparency = 1
  947. Frame10.Size = UDim2.new(0.300000012, 0, 1, 0)
  948. Frame10.Position = UDim2.new(0.349999994, 0, 0, 0)
  949. Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
  950. Frame10.BackgroundTransparency = 1
  951. Frame10.BorderSizePixel = 0
  952. TextLabel11.Name = "WeaponName"
  953. TextLabel11.Parent = Frame10
  954. TextLabel11.Transparency = 1
  955. TextLabel11.Size = UDim2.new(1, 0, 0.300000012, 0)
  956. TextLabel11.Text = "Weapon"
  957. TextLabel11.BackgroundTransparency = 1
  958. TextLabel11.BorderSizePixel = 0
  959. TextLabel11.ZIndex = 4
  960. TextLabel11.ClipsDescendants = true
  961. TextLabel11.Font = Enum.Font.ArialBold
  962. TextLabel11.FontSize = Enum.FontSize.Size18
  963. TextLabel11.TextColor3 = Color3.new(1, 1, 1)
  964. TextLabel11.TextScaled = true
  965. TextLabel11.TextStrokeTransparency = 0
  966. TextLabel11.TextWrapped = true
  967. Frame12.Name = "BarFrame"
  968. Frame12.Parent = Frame10
  969. Frame12.Transparency = 1
  970. Frame12.Size = UDim2.new(1, 0, 0.300000012, 0)
  971. Frame12.Position = UDim2.new(0, 0, 0.600000024, 0)
  972. Frame12.BackgroundColor3 = Color3.new(1, 1, 1)
  973. Frame12.BackgroundTransparency = 1
  974. Frame12.BorderSizePixel = 0
  975. Frame13.Name = "Bar"
  976. Frame13.Parent = Frame12
  977. Frame13.Size = UDim2.new(1, 0, 1, 0)
  978. Frame13.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  979. Frame13.BorderColor3 = Color3.new(0, 0, 0)
  980. Frame14.Name = "Sperator"
  981. Frame14.Parent = Frame12
  982. Frame14.Size = UDim2.new(0.00999999978, 0, 1.25, 0)
  983. Frame14.Position = UDim2.new(1.01999998, 0, -0.125, 0)
  984. Frame14.BackgroundColor3 = Color3.new(1, 1, 1)
  985. Frame14.BorderColor3 = Color3.new(0, 0, 0)
  986. Frame15.Name = "Sperator"
  987. Frame15.Parent = Frame12
  988. Frame15.Size = UDim2.new(0.00999999978, 0, 1.25, 0)
  989. Frame15.Position = UDim2.new(-0.0199999996, 0, -0.125, 0)
  990. Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
  991. Frame15.BorderColor3 = Color3.new(0, 0, 0)
  992. TextLabel16.Name = "Percent"
  993. TextLabel16.Parent = Frame10
  994. TextLabel16.Transparency = 1
  995. TextLabel16.Size = UDim2.new(1, 0, 0.200000003, 0)
  996. TextLabel16.Text = "100%"
  997. TextLabel16.Position = UDim2.new(0, 0, 0.324999988, 0)
  998. TextLabel16.BackgroundTransparency = 1
  999. TextLabel16.BorderSizePixel = 0
  1000. TextLabel16.ZIndex = 4
  1001. TextLabel16.ClipsDescendants = true
  1002. TextLabel16.Font = Enum.Font.ArialBold
  1003. TextLabel16.FontSize = Enum.FontSize.Size18
  1004. TextLabel16.TextColor3 = Color3.new(0.666667, 0, 0)
  1005. TextLabel16.TextStrokeTransparency = 0
  1006. ImageButton17.Name = "Logo"
  1007. ImageButton17.Parent = Frame10
  1008. ImageButton17.Transparency = 1
  1009. ImageButton17.Size = UDim2.new(0, 75, 0, 75)
  1010. ImageButton17.Position = UDim2.new(0, -100, 0.25, 0)
  1011. ImageButton17.BackgroundColor3 = Color3.new(0.301961, 0.301961, 0.301961)
  1012. ImageButton17.BackgroundTransparency = 1
  1013. ImageButton17.BorderColor3 = Color3.new(0.109804, 0.109804, 0.109804)
  1014. ImageButton17.Image = "http://www.roblox.com/asset/?id=167043848"
  1015. Part18.Name = "Handle"
  1016. Part18.Parent = Tool0
  1017. Part18.Material = Enum.Material.SmoothPlastic
  1018. Part18.Transparency = 1
  1019. Part18.Anchored = true
  1020. Part18.CanCollide = false
  1021. Part18.FormFactor = Enum.FormFactor.Symmetric
  1022. Part18.Size = Vector3.new(1, 1, 1)
  1023. Part18.CFrame = CFrame.new(178.262894, 0.500046015, -123.16272, 0.999999464, -5.21431575e-05, 1.69995983e-05, 5.44522663e-05, 0.999999046, 3.54494186e-05, -1.06023144e-05, -3.2707605e-05, 1.00000072)
  1024. Part18.BottomSurface = Enum.SurfaceType.Smooth
  1025. Part18.TopSurface = Enum.SurfaceType.Smooth
  1026. Part18.Position = Vector3.new(178.262894, 0.500046015, -123.16272)
  1027. BlockMesh19.Parent = Part18
  1028. BlockMesh19.Scale = Vector3.new(0.0270270277, 0.0270270277, 0.135135144)
  1029. BlockMesh19.Scale = Vector3.new(0.0270270277, 0.0270270277, 0.135135144)
  1030. Sound20.Name = "Click"
  1031. Sound20.Parent = Part18
  1032. Sound20.Pitch = 0.89999997615814
  1033. Sound20.SoundId = "http://roblox.com/asset/?id=10209881"
  1034. Sound20.Volume = 1
  1035. Sound20.PlayOnRemove = true
  1036. Sound21.Name = "Trigger"
  1037. Sound21.Parent = Part18
  1038. Sound21.SoundId = "http://www.roblox.com/asset/?ID=10918913 "
  1039. Sound21.Volume = 1
  1040. Sound22.Name = "M1"
  1041. Sound22.Parent = Part18
  1042. Sound22.Pitch = 0.69999998807907
  1043. Sound22.SoundId = "http://roblox.com/asset/?id=10209834"
  1044. Sound22.Volume = 1
  1045. Sound22.PlayOnRemove = true
  1046. Sound23.Name = "M2"
  1047. Sound23.Parent = Part18
  1048. Sound23.Pitch = 0.89999997615814
  1049. Sound23.SoundId = "http://roblox.com/asset/?id=10209636"
  1050. Sound23.Volume = 1
  1051. Sound23.PlayOnRemove = true
  1052. Sound24.Name = "Fire2"
  1053. Sound24.Parent = Part18
  1054. Sound24.Pitch = 1.25
  1055. Sound24.SoundId = "http://www.roblox.com/asset/?id=132149021"
  1056. Sound25.Name = "Fire"
  1057. Sound25.Parent = Part18
  1058. Sound25.Pitch = 1.75
  1059. Sound25.SoundId = "http://www.roblox.com/asset/?id=132149021"
  1060. Sound25.Volume = 1
  1061. Sound26.Name = "Reload"
  1062. Sound26.Parent = Part18
  1063. Sound26.SoundId = "http://www.roblox.com/asset/?id=2697432 "
  1064. Sound27.Name = "Empty"
  1065. Sound27.Parent = Part18
  1066. Sound27.SoundId = "rbxasset://sounds//clickfast.wav"
  1067. Sound27.Volume = 1
  1068. Part28.Parent = Tool0
  1069. Part28.Material = Enum.Material.Neon
  1070. Part28.BrickColor = BrickColor.new("Really black")
  1071. Part28.Rotation = Vector3.new(-180, 0, -180)
  1072. Part28.Size = Vector3.new(0.200000212, 0.0500000529, 0.100000106)
  1073. Part28.CFrame = CFrame.new(178.154739, 0.594373226, -123.750214, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1074. Part28.BottomSurface = Enum.SurfaceType.Smooth
  1075. Part28.TopSurface = Enum.SurfaceType.Smooth
  1076. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1077. Part28.Position = Vector3.new(178.154739, 0.594373226, -123.750214)
  1078. Part28.Orientation = Vector3.new(0, 180, 0)
  1079. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1080. SpecialMesh29.Parent = Part28
  1081. SpecialMesh29.MeshId = "rbxassetid://430655284"
  1082. SpecialMesh29.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993)
  1083. SpecialMesh29.MeshType = Enum.MeshType.FileMesh
  1084. SpecialMesh29.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993)
  1085. LocalScript30.Name = "BackupWeld"
  1086. LocalScript30.Parent = Tool0
  1087. table.insert(cors,sandbox(LocalScript30,function()
  1088. local Welds = {}
  1089. local Part0s = {}
  1090. local Part1s = {}
  1091. local C0s = {}
  1092. local C1s = {}
  1093.  
  1094. function SetupWelds()
  1095. print("------------------------")
  1096. script.Parent:WaitForChild("Handle")
  1097. for i, v in pairs(script.Parent:GetChildren()) do
  1098. coroutine.resume(coroutine.create(function()
  1099. if v then
  1100. if v.ClassName == "Part" or v.ClassName == "WedgePart" or v.ClassName == "CornerWedgePart" then
  1101. print(v.ClassName)
  1102. local w = Instance.new("Weld", v)
  1103. w.Name = "Weld"
  1104. w.Part0 = script.Parent["Handle"]
  1105. w.Part1 = v
  1106. w.C0 = w.Part0.CFrame:inverse()
  1107. w.C1 = v.CFrame:inverse()
  1108. table.insert(Welds, w)
  1109. table.insert(Part0s, w.Part0)
  1110. table.insert(Part1s, w.Part1)
  1111. table.insert(C0s, w.C0)
  1112. table.insert(C1s, w.C1)
  1113. end
  1114. end
  1115. end))
  1116. end
  1117. print("------------------------")
  1118. print(#Welds)
  1119. print(#Part0s)
  1120. print(#Part1s)
  1121. print(#C0s)
  1122. print(#C1s)
  1123. end
  1124.  
  1125. function Weld()
  1126. for i, v in pairs(Welds) do
  1127. coroutine.resume(coroutine.create(function()
  1128. if v then
  1129. if v.Parent ~= Part1s[i] then
  1130. v.Parent = Part1s[i]
  1131. end
  1132. v.Part0 = Part0s[i]
  1133. v.Part1 = Part1s[i]
  1134. v.C0 = C0s[i]
  1135. v.C1 = C1s[i]
  1136. end
  1137. end))
  1138. end
  1139. for i, v in pairs(Part1s) do
  1140. coroutine.resume(coroutine.create(function()
  1141. if v then
  1142. if v.ClassName == "Part" or v.ClassName == "WedgePart" or v.ClassName == "CornerWedgePart" then
  1143. v.Anchored = false
  1144. end
  1145. end
  1146. end))
  1147. end
  1148. end
  1149.  
  1150. wait(0.1)
  1151. SetupWelds()
  1152.  
  1153. script.Parent.Equipped:connect(Weld)
  1154. script.Parent.Unequipped:connect(Weld)
  1155. end))
  1156. for i,v in pairs(mas:GetChildren()) do
  1157. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1158. pcall(function() v:MakeJoints() end)
  1159. end
  1160. mas:Destroy()
  1161. for i,v in pairs(cors) do
  1162. spawn(function()
  1163. pcall(v)
  1164. end)
  1165. end
  1166. print([[
  1167. -------------------------------------------------
  1168. First Order StormTrooper V.1
  1169. -------------------------------------------------]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement