Advertisement
SCR1PT_ED1T0R

FE Crimson Glock

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