Advertisement
The_God_M8

Lolz

May 12th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.31 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy ~= InternalData.RealOwner then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. elseif Input.Sound then
  25. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  26. else
  27. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  28. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  29. for _,Action in pairs(ContextActionService.Actions) do
  30. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  31. end
  32. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  33. end
  34. end)
  35. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  36. Event.Parent = NLS([[
  37. local Player = owner;
  38. local Sounds = {};
  39. local Event = script:WaitForChild("UserInput");
  40. local UserInputService = game:GetService("UserInputService");
  41. local Mouse = Player:GetMouse();
  42. local Input = function(Input,gameProcessedEvent)
  43. if gameProcessedEvent then return end
  44. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  45. end
  46. Event.OnClientEvent:connect(function(Args)
  47. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  48. end)
  49. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  50. local Hit,Target
  51. while wait(1/30) do
  52. for x,Sound in pairs(Sounds) do
  53. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  54. end
  55. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  56. Hit = Mouse.Hit;Target = Mouse.Target;
  57. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  58. end
  59. end
  60. ]],InternalData.RealOwner.Character)
  61. end
  62. InternalData.NewOwner = setmetatable({},{
  63. __index = function (self,Index)
  64. local Type = type(InternalData.RealOwner[Index])
  65. if Type == "function" then
  66. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  67. return function (self)return InternalData["Mouse"] end
  68. end
  69. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  70. elseif Index == "FakePlayer" then
  71. return true
  72. end
  73. return InternalData.RealOwner[Index]
  74. end;
  75. __tostring = function(self) return tostring(InternalData.RealOwner) end
  76. })
  77. --LoadLibrary("RbxUtility").Create
  78. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  79. if Library == "RbxUtility" then
  80. return setmetatable({},{
  81. __tostring = function() return "RbxUtility" end;
  82. __index = function(self, Index)
  83. if Index:lower() == "create" then
  84. return function(Type)
  85. return function(Data)
  86. Data = Data or {}
  87. local Inst = Instance.new(Type)
  88. for x,y in pairs(Data) do
  89. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  90. if y == owner then y = InternalData.RealOwner end
  91. Inst[x] = y
  92. end
  93. return Inst
  94. end
  95. end
  96. end
  97. return InternalData.LoadLibrary(Library)[Index]
  98. end
  99. })
  100. end
  101. return InternalData.LoadLibrary(Library)
  102. end
  103. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  104. __index = function (self,Index)
  105. if Index:lower() == 'new' then
  106. return function (Type, Parent)
  107. if Parent == owner then Parent = InternalData.RealOwner end
  108. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  109. local Real = InternalData.RealInstance.new(Type,Parent)
  110. if not Type then return end
  111. if Type == "BillboardGui" then
  112. local ToReturn = setmetatable({},{
  113. __index = function (self,Index)
  114. if type(Real[Index]) == "function" then
  115. if Index:lower() == "clone" then
  116. return function (self)
  117. local Real = Real:Clone()
  118. local ToReturn = setmetatable({RealObject = Real},{
  119. __index = function (self,Index)
  120. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  121. return Real[Index]
  122. end;
  123. __newindex = function (self,Index,Value)
  124. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  125. if Value == owner then Value = InternalData.RealOwner end
  126. Real[Index] = Value
  127. end;
  128. __tostring = function(self) return tostring(Real) end;
  129. })
  130. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  131. end
  132. end
  133. return function (self,...) return Real[Index](Real,...)end
  134. end
  135. return Real[Index]
  136. end;
  137. __newindex = function (self,Index,Value)
  138. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  139. if Value == owner then Value = InternalData.RealOwner end
  140. Real[Index] = Value
  141. end;
  142. __tostring = function(self) return tostring(Real) end;
  143. })
  144. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  145. elseif Type:lower() == "sound" then
  146. Real.Parent = owner.Character;
  147. local ToReturn = setmetatable({RealObject = Real},{
  148. __index = function (self,Index)
  149. if Index:lower() == "playbackloudness" then
  150. return InternalData.SoundLoudness[Real] or 0
  151. elseif type(Real[Index]) == "function" then
  152. if Index:lower() == "clone" then
  153. return function (self)
  154. local Real = Real:Clone()
  155. local ToReturn = setmetatable({},{
  156. __index = function (self,Index)
  157. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  158. return Real[Index]
  159. end;
  160. __newindex = function (self,Index,Value)
  161. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  162. if Value == owner then Value = InternalData.RealOwner end
  163. Real[Index] = Value
  164. end;
  165. __tostring = function(self) return tostring(Real) end;
  166. })
  167. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  168. end
  169. end
  170. return function (self,...) return Real[Index](Real,...)end
  171. end
  172. return Real[Index]
  173. end;
  174. __newindex = function (self,Index,Value)
  175. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  176. if Value == owner then Value = InternalData.RealOwner end
  177. Real[Index] = Value
  178. end;
  179. __tostring = function(self) return tostring(Real) end;
  180. })
  181. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  182. else
  183. local ToReturn = setmetatable({RealObject = Real},{
  184. __index = function (self,Index)
  185. if type(Real[Index]) == "function" then
  186. if Index:lower() == "clone" then
  187. return function (self)
  188. local Real = Real:Clone()
  189. local ToReturn = setmetatable({},{
  190. __index = function (self,Index)
  191. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  192. return Real[Index]
  193. end;
  194. __newindex = function (self,Index,Value)
  195. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  196. if Value == owner then Value = InternalData.RealOwner end
  197. Real[Index] = Value
  198. end;
  199. __tostring = function(self) return tostring(Real) end;
  200. })
  201. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  202. end
  203. end
  204. return function (self,...) return Real[Index](Real,...)end
  205. end
  206. return Real[Index]
  207. end;
  208. __newindex = function (self,Index,Value)
  209. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  210. if Value == owner then Value = InternalData.RealOwner end
  211. Real[Index] = Value
  212. end;
  213. __tostring = function(self) return tostring(Real) end;
  214. })
  215. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  216. end
  217. end
  218. end
  219. return InternalData.RealInstance[Index]
  220. end;
  221. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  222. });
  223. InternalData.RealGame = game;game = setmetatable({},{
  224. __index = function (self,Index)
  225. if InternalData.RealGame[Index] then
  226. local Type = type(InternalData.RealGame[Index])
  227. if Type == "function" then
  228. if Index:lower() == "getservice" or Index:lower() == "service" then
  229. return function (self,Service)
  230. local FakeServices = {
  231. ["players"] = function()
  232. return setmetatable({},{
  233. __index = function (self2,Index2)
  234. local RealService = InternalData.RealGame:GetService(Service)
  235. local Type2 = type(RealService[Index2])
  236. if Type2 == "function" then
  237. return function (self,...) return RealService[Index2](RealService,...)end
  238. else
  239. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  240. return RealService[Index2]
  241. end
  242. end;
  243. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  244. })
  245. end;
  246. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  247. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  248. ["debris"] = function()
  249. return setmetatable({},{
  250. __index = function(self2,Index2)
  251. local RealService = InternalData.RealGame:GetService(Service)
  252. local Type2 = type(RealService[Index2])
  253. if Type2 == "function" then
  254. if Index2:lower() == "additem" then
  255. return function (self,Item,Time)
  256. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  257. return RealService:AddItem(Item,Time)
  258. end
  259. end
  260. return function (self,...) return RealService[Index2](RealService,...) end
  261. end
  262. return RealService[Index2]
  263. end;
  264. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  265. })
  266. end;
  267. ["runservice"] = function()
  268. return setmetatable({},{
  269. __index = function(self2,Index2)
  270. local RealService = InternalData.RealGame:GetService(Service)
  271. local Type2 = type(RealService[Index2])
  272. if Type2 == "function" then
  273. return function (self,...) return RealService[Index2](RealService,...) end
  274. else
  275. local RunServices = {
  276. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  277. ["renderstepped"] = function() return RealService["Stepped"] end
  278. }
  279. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  280. return RealService[Index2]
  281. end
  282. end;
  283. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  284. })
  285. end
  286. }
  287. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  288. return InternalData.RealGame:GetService(Service)
  289. end
  290. end
  291. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  292. else
  293. if game:GetService(Index) then return game:GetService(Index) end
  294. return InternalData.RealGame[Index]
  295. end
  296. end
  297. return nil
  298. end;
  299. __tostring = function(self) return tostring(InternalData.game) end
  300. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  301.  
  302. --Grab Gun v1
  303. local plr = owner
  304. local plrg = plr.PlayerGui
  305. local char = plr.Character
  306. script.Parent = char
  307. local ra = char["Right Arm"]
  308. local la = char["Left Arm"]
  309. local rl = char["Right Leg"]
  310. local ll = char["Left Leg"]
  311. local h = char.Head
  312. local t = char.Torso
  313. local mode = "shoot"
  314. local killmode = "kill"
  315. local rad = math.rad
  316. local mouse = owner:GetMouse()
  317.  
  318. function info(text,timebeforefade)
  319. coroutine.resume(coroutine.create(function()
  320. local pos = {.001,.002,.003,.004,.005}
  321. local mpos = {-.001,-.002,-.003,-.004,-.005}
  322. local sc = Instance.new("ScreenGui",plrg)
  323. local tex = Instance.new("TextLabel",sc) tex.Rotation = math.random(-5,5) tex.Position = UDim2.new(.5,0,.05,0) tex.Size = UDim2.new(0,0,.15,0) tex.TextScaled = true tex.BackgroundTransparency = 1 tex.TextTransparency = 1 tex.BackgroundColor3 = Color3.fromRGB(40,40,40) tex.BorderSizePixel = 0 tex.TextColor3 = Color3.fromRGB(255,255,255) tex.Text = text
  324. for i = 1,20 do
  325. tex.Size = tex.Size + UDim2.new(.025,0,0,0)
  326. tex.Rotation = math.random(-5,5)
  327. tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  328. tex.Position = tex.Position - UDim2.new(.0125,0,0,0)
  329. tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  330. tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60))
  331. tex.BackgroundTransparency = tex.BackgroundTransparency -.05
  332. swait()
  333. end
  334. for i = 1,10 do
  335. tex.Rotation = math.random(-5,5)
  336. tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  337. tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  338. tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60))
  339. tex.TextTransparency = tex.TextTransparency -.1
  340. swait()
  341. end
  342. tex.BackgroundColor3 = Color3.fromRGB(40,40,40)
  343. tex.TextColor3 = Color3.fromRGB(255,255,255)
  344. wait(timebeforefade)
  345. for i = 1,10 do
  346. tex.Rotation = math.random(-5,5)
  347. tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  348. tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  349. tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60))
  350. tex.TextTransparency = tex.TextTransparency +.1
  351. swait()
  352. end
  353. for i = 1,20 do
  354. tex.Size = tex.Size - UDim2.new(.025,0,0,0)
  355. tex.Rotation = math.random(-5,5)
  356. tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  357. tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  358. tex.BackgroundColor3 = Color3.fromRGB(math.random(0,30),math.random(0,60),math.random(0,60))
  359. tex.Position = tex.Position + UDim2.new(.0125,0,0,0)
  360. tex.BackgroundTransparency = tex.BackgroundTransparency +.05
  361. swait()
  362. end
  363. tex:Destroy()
  364. end))
  365. end
  366.  
  367. print("Made by vlad20020")
  368.  
  369. coroutine.resume(coroutine.create(function()
  370. wait(1)
  371. info("Press Z to equip the gun.",1)
  372. wait(2)
  373. info("Press X to unequip the gun.",1)
  374. wait(2)
  375. info("Press M for control list",1)
  376. end))
  377.  
  378. ArtificialHB = Instance.new("BindableEvent", script)
  379. ArtificialHB.Name = "Heartbeat"
  380.  
  381. script:WaitForChild("Heartbeat")
  382.  
  383. frame = 1 / 60
  384. tf = 0
  385. allowframeloss = false
  386. tossremainder = false
  387. lastframe = tick()
  388. script.Heartbeat:Fire()
  389.  
  390. game:GetService("RunService").Heartbeat:connect(function(s, p)
  391. tf = tf + s
  392. if tf >= frame then
  393. if allowframeloss then
  394. script.Heartbeat:Fire()
  395. lastframe = tick()
  396. else
  397. for i = 1, math.floor(tf / frame) do
  398. script.Heartbeat:Fire()
  399. end
  400. lastframe = tick()
  401. end
  402. if tossremainder then
  403. tf = 0
  404. else
  405. tf = tf - frame * math.floor(tf / frame)
  406. end
  407. end
  408. end)
  409.  
  410. function swait(num)
  411. if num == 0 or num == nil then
  412. ArtificialHB.Event:wait()
  413. else
  414. for i = 0, num do
  415. ArtificialHB.Event:wait()
  416. end
  417. end
  418. end
  419.  
  420. local rs = t["Right Shoulder"]
  421. local ls = t["Left Shoulder"]
  422. local rh = t["Right Hip"]
  423. local lh = t["Left Hip"]
  424. local nec = t.Neck
  425. local rut = char.HumanoidRootPart
  426. local rutj = rut.RootJoint
  427. local hum = char:FindFirstChildOfClass("Humanoid")
  428. local using = true
  429. local canequip = true
  430. local uneq = false
  431. local grab = false
  432. huge = math.huge
  433. local ammo = 7
  434.  
  435. --arm joint parts_
  436. local tpr = Instance.new("Part",t) tpr.Size = Vector3.new(.1,.1,.1) tpr.CanCollide = false tpr.Transparency = 1
  437. local tpl = Instance.new("Part",t) tpl.Size = Vector3.new(.1,.1,.1) tpl.CanCollide = false tpl.Transparency = 1
  438. local tprw = Instance.new("Weld",t) tprw.Part0 = t tprw.Part1 = tpr tprw.C0 = CFrame.new(1,.5,0)
  439. local tplw = Instance.new("Weld",t) tplw.Part0 = t tplw.Part1 = tpl tplw.C0 = CFrame.new(-1,.5,0)
  440. --
  441. local rapr = Instance.new("Part",ra) rapr.Size = Vector3.new(.1,.1,.1) rapr.CanCollide = false rapr.Transparency = 1 --Right Arm
  442. local lapl = Instance.new("Part",la) lapl.Size = Vector3.new(.1,.1,.1) lapl.CanCollide = false lapl.Transparency = 1 --Left Arm
  443. local raprw = Instance.new("Weld",ra) raprw.Part0 = ra raprw.Part1 = rapr raprw.C0 = CFrame.new(-.5,.5,0)
  444. local laplw = Instance.new("Weld",la) laplw.Part0 = la laplw.Part1 = lapl laplw.C0 = CFrame.new(.5,.5,0)
  445. --joint welds
  446. local rsw = Instance.new("Weld",ra) rsw.Part0 = tpr rsw.Part1 = nil --Right Shoulder
  447. local lsw = Instance.new("Weld",la) lsw.Part0 = tpl lsw.Part1 = nil --Left Shoulder
  448. --gun model--
  449. local function creategun()
  450. --Converted with ttyyuu12345's model to script plugin v4
  451. function sandbox(var,func)
  452. local env = getfenv(func)
  453. local newenv = setmetatable({},{
  454. __index = function(self,k)
  455. if k=="script" then
  456. return var
  457. else
  458. return env[k]
  459. end
  460. end,
  461. })
  462. setfenv(func,newenv)
  463. return func
  464. end
  465. cors = {}
  466. mas = Instance.new("Model",game:GetService("Lighting"))
  467. Model0 = Instance.new("Model")
  468. Part1 = Instance.new("Part")
  469. Part2 = Instance.new("Part")
  470. Part3 = Instance.new("Part")
  471. WeldConstraint4 = Instance.new("WeldConstraint")
  472. Part5 = Instance.new("Part")
  473. WeldConstraint6 = Instance.new("WeldConstraint")
  474. WeldConstraint7 = Instance.new("WeldConstraint")
  475. Part8 = Instance.new("Part")
  476. WeldConstraint9 = Instance.new("WeldConstraint")
  477. WeldConstraint10 = Instance.new("WeldConstraint")
  478. WeldConstraint11 = Instance.new("WeldConstraint")
  479. Part12 = Instance.new("Part")
  480. Part13 = Instance.new("Part")
  481. WeldConstraint14 = Instance.new("WeldConstraint")
  482. Part15 = Instance.new("Part")
  483. Part16 = Instance.new("Part")
  484. WeldConstraint17 = Instance.new("WeldConstraint")
  485. WeldConstraint18 = Instance.new("WeldConstraint")
  486. Part19 = Instance.new("Part")
  487. Part20 = Instance.new("Part")
  488. WeldConstraint21 = Instance.new("WeldConstraint")
  489. Part22 = Instance.new("Part")
  490. WeldConstraint23 = Instance.new("WeldConstraint")
  491. Model0.Name = "gun"
  492. Model0.Parent = mas
  493. Part1.Name = "Handle"
  494. Part1.Parent = Model0
  495. Part1.CFrame = CFrame.new(100.938477, 23.8801613, -108.945274, 0.803930104, -0.00498482632, -0.594721258, 0.000852990604, 0.999974132, -0.00722878333, 0.594741881, 0.00530394772, 0.803912997)
  496. Part1.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
  497. Part1.Position = Vector3.new(100.938477, 23.8801613, -108.945274)
  498. Part1.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
  499. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  500. Part1.Transparency = 1
  501. Part1.Size = Vector3.new(0.271587253, 1.35793722, 0.271587431)
  502. Part1.BottomSurface = Enum.SurfaceType.Smooth
  503. Part1.BrickColor = BrickColor.new("Black")
  504. Part1.CanCollide = false
  505. Part1.Material = Enum.Material.Metal
  506. Part1.TopSurface = Enum.SurfaceType.Smooth
  507. Part1.brickColor = BrickColor.new("Black")
  508. Part2.Parent = Model0
  509. Part2.CFrame = CFrame.new(100.662735, 23.9763107, -109.178238, 0.803839028, -0.00493576005, -0.594844699, 0.000852896366, 0.999974787, -0.00714508584, 0.594864845, 0.00523596723, 0.803822458)
  510. Part2.Orientation = Vector3.new(0.409999996, -36.5, 0.049999997)
  511. Part2.Position = Vector3.new(100.662735, 23.9763107, -109.178238)
  512. Part2.Rotation = Vector3.new(0.50999999, -36.5, 0.349999994)
  513. Part2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  514. Part2.Size = Vector3.new(0.339484632, 0.108634979, 0.0950556025)
  515. Part2.BottomSurface = Enum.SurfaceType.Smooth
  516. Part2.BrickColor = BrickColor.new("Black")
  517. Part2.CanCollide = false
  518. Part2.Material = Enum.Material.Metal
  519. Part2.TopSurface = Enum.SurfaceType.Smooth
  520. Part2.brickColor = BrickColor.new("Black")
  521. Part3.Parent = Model0
  522. Part3.CFrame = CFrame.new(100.477272, 24.1208344, -109.300568, 0.00492594484, 0.803836763, -0.594847798, -0.999974728, 0.000837364234, -0.00714954128, -0.00524876919, 0.594867945, 0.803820133)
  523. Part3.Orientation = Vector3.new(0.409999996, -36.5, -89.9499969)
  524. Part3.Position = Vector3.new(100.477272, 24.1208344, -109.300568)
  525. Part3.Rotation = Vector3.new(0.50999999, -36.5, -89.6500015)
  526. Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
  527. Part3.Size = Vector3.new(0.393802106, 0.108634979, 0.0950556025)
  528. Part3.BottomSurface = Enum.SurfaceType.Smooth
  529. Part3.BrickColor = BrickColor.new("Black")
  530. Part3.CanCollide = false
  531. Part3.Material = Enum.Material.Metal
  532. Part3.TopSurface = Enum.SurfaceType.Smooth
  533. Part3.brickColor = BrickColor.new("Black")
  534. WeldConstraint4.Parent = Part3
  535. WeldConstraint4.Part0 = Part3
  536. WeldConstraint4.Part1 = Part2
  537. Part5.Parent = Model0
  538. Part5.CFrame = CFrame.new(100.603096, 24.3147335, -109.201149, 0.804022074, -0.00503333705, -0.594596386, 0.00085399684, 0.999973536, -0.0073103467, 0.594617426, 0.00536970189, 0.80400461)
  539. Part5.Orientation = Vector3.new(0.419999987, -36.4799995, 0.049999997)
  540. Part5.Position = Vector3.new(100.603096, 24.3147335, -109.201149)
  541. Part5.Rotation = Vector3.new(0.519999981, -36.4799995, 0.359999985)
  542. Part5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  543. Part5.Size = Vector3.new(1.69742119, 0.203690529, 0.271587461)
  544. Part5.BottomSurface = Enum.SurfaceType.Smooth
  545. Part5.BrickColor = BrickColor.new("Black")
  546. Part5.CanCollide = false
  547. Part5.Material = Enum.Material.Metal
  548. Part5.TopSurface = Enum.SurfaceType.Smooth
  549. Part5.brickColor = BrickColor.new("Black")
  550. WeldConstraint6.Parent = Part5
  551. WeldConstraint6.Part0 = Part5
  552. WeldConstraint6.Part1 = Part16
  553. WeldConstraint7.Parent = Part5
  554. WeldConstraint7.Part0 = Part5
  555. WeldConstraint7.Part1 = Part19
  556. Part8.Parent = Model0
  557. Part8.CFrame = CFrame.new(100.928474, 23.7767162, -108.965073, 0.790873766, -0.144370049, -0.594724894, 0.174304828, 0.984665811, -0.00723577663, 0.586649835, -0.0979410186, 0.803910255)
  558. Part8.Orientation = Vector3.new(0.409999996, -36.4899979, 10.04)
  559. Part8.Position = Vector3.new(100.928474, 23.7767162, -108.965073)
  560. Part8.Rotation = Vector3.new(0.519999981, -36.4899979, 10.3499994)
  561. Part8.Color = Color3.new(0.623529, 0.631373, 0.67451)
  562. Part8.Size = Vector3.new(0.407381058, 0.678968549, 0.271587461)
  563. Part8.BottomSurface = Enum.SurfaceType.Smooth
  564. Part8.BrickColor = BrickColor.new("Fossil")
  565. Part8.CanCollide = false
  566. Part8.Material = Enum.Material.Slate
  567. Part8.TopSurface = Enum.SurfaceType.Smooth
  568. Part8.brickColor = BrickColor.new("Fossil")
  569. WeldConstraint9.Parent = Part8
  570. WeldConstraint9.Part0 = Part8
  571. WeldConstraint9.Part1 = Part22
  572. WeldConstraint10.Parent = Part8
  573. WeldConstraint10.Part0 = Part8
  574. WeldConstraint10.Part1 = Part2
  575. WeldConstraint11.Parent = Part8
  576. WeldConstraint11.Part0 = Part8
  577. WeldConstraint11.Part1 = Part1
  578. Part12.Parent = Model0
  579. Part12.CFrame = CFrame.new(99.8241043, 24.4670258, -109.770966, 0.803930223, -0.00498490315, -0.594721019, 0.00085299596, 0.999974012, -0.00722887041, 0.594741583, 0.00530401571, 0.803913176)
  580. Part12.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
  581. Part12.Position = Vector3.new(99.8241043, 24.4670258, -109.770966)
  582. Part12.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
  583. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  584. Part12.Size = Vector3.new(0.0678968653, 0.20369038, 0.176531628)
  585. Part12.BottomSurface = Enum.SurfaceType.Smooth
  586. Part12.BrickColor = BrickColor.new("Black")
  587. Part12.CanCollide = false
  588. Part12.Material = Enum.Material.SmoothPlastic
  589. Part12.TopSurface = Enum.SurfaceType.Smooth
  590. Part12.brickColor = BrickColor.new("Black")
  591. Part12.Shape = Enum.PartType.Cylinder
  592. Part13.Parent = Model0
  593. Part13.CFrame = CFrame.new(101.002449, 23.3428402, -108.930023, 0.790792346, -0.144294962, -0.594851375, 0.174290657, 0.984668911, -0.0071533937, 0.586763799, -0.0980203673, 0.803817451)
  594. Part13.Orientation = Vector3.new(0.409999996, -36.5, 10.04)
  595. Part13.Position = Vector3.new(101.002449, 23.3428402, -108.930023)
  596. Part13.Rotation = Vector3.new(0.50999999, -36.5, 10.3400002)
  597. Part13.Color = Color3.new(0.105882, 0.164706, 0.207843)
  598. Part13.Size = Vector3.new(0.407381058, 0.203690544, 0.271587461)
  599. Part13.BottomSurface = Enum.SurfaceType.Smooth
  600. Part13.BrickColor = BrickColor.new("Black")
  601. Part13.CanCollide = false
  602. Part13.Material = Enum.Material.Metal
  603. Part13.TopSurface = Enum.SurfaceType.Smooth
  604. Part13.brickColor = BrickColor.new("Black")
  605. WeldConstraint14.Parent = Part13
  606. WeldConstraint14.Part0 = Part13
  607. WeldConstraint14.Part1 = Part8
  608. Part15.Parent = Model0
  609. Part15.CFrame = CFrame.new(99.8172379, 24.46702, -109.773712, 0.803930223, -0.00498490315, -0.594721019, 0.00085299596, 0.999974012, -0.00722887041, 0.594741583, 0.00530401571, 0.803913176)
  610. Part15.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
  611. Part15.Position = Vector3.new(99.8172379, 24.46702, -109.773712)
  612. Part15.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
  613. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  614. Part15.Size = Vector3.new(0.0678968653, 0.20369038, 0.135793507)
  615. Part15.BottomSurface = Enum.SurfaceType.Smooth
  616. Part15.BrickColor = BrickColor.new("Really black")
  617. Part15.CanCollide = false
  618. Part15.Material = Enum.Material.SmoothPlastic
  619. Part15.TopSurface = Enum.SurfaceType.Smooth
  620. Part15.brickColor = BrickColor.new("Really black")
  621. Part15.Shape = Enum.PartType.Cylinder
  622. Part16.Parent = Model0
  623. Part16.CFrame = CFrame.new(100.518448, 24.4841995, -109.259399, 0.80401504, -0.00503334729, -0.59459132, 0.000853998587, 0.999973059, -0.00731024938, 0.594612062, 0.00536973123, 0.803997576)
  624. Part16.Orientation = Vector3.new(0.419999987, -36.4799995, 0.049999997)
  625. Part16.Position = Vector3.new(100.518448, 24.4841995, -109.259399)
  626. Part16.Rotation = Vector3.new(0.519999981, -36.4799995, 0.359999985)
  627. Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  628. Part16.Size = Vector3.new(1.76531804, 0.271587402, 0.271587461)
  629. Part16.BottomSurface = Enum.SurfaceType.Smooth
  630. Part16.BrickColor = BrickColor.new("Black")
  631. Part16.CanCollide = false
  632. Part16.Material = Enum.Material.Metal
  633. Part16.TopSurface = Enum.SurfaceType.Smooth
  634. Part16.brickColor = BrickColor.new("Black")
  635. WeldConstraint17.Parent = Part16
  636. WeldConstraint17.Part0 = Part16
  637. WeldConstraint17.Part1 = Part12
  638. WeldConstraint18.Parent = Part16
  639. WeldConstraint18.Part0 = Part16
  640. WeldConstraint18.Part1 = Part15
  641. Part19.Parent = Model0
  642. Part19.CFrame = CFrame.new(99.8672562, 24.3137894, -109.7491, 0.803929985, -0.00498482212, -0.594721317, 0.000852967962, 0.999974132, -0.0072287661, 0.59474194, 0.00530394865, 0.803912997)
  643. Part19.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
  644. Part19.Position = Vector3.new(99.8672562, 24.3137894, -109.7491)
  645. Part19.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
  646. Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
  647. Part19.Size = Vector3.new(0.135793433, 0.0678968653, 0.271587461)
  648. Part19.BottomSurface = Enum.SurfaceType.Smooth
  649. Part19.BrickColor = BrickColor.new("Black")
  650. Part19.CanCollide = false
  651. Part19.Material = Enum.Material.Metal
  652. Part19.TopSurface = Enum.SurfaceType.Smooth
  653. Part19.brickColor = BrickColor.new("Black")
  654. Part20.Parent = Model0
  655. Part20.CFrame = CFrame.new(100.96167, 23.2699795, -108.967567, 0.803838253, -0.00491723372, -0.594845951, 0.00083023723, 0.999974787, -0.00714454427, 0.594866037, 0.00524902251, 0.803821564)
  656. Part20.Orientation = Vector3.new(0.409999996, -36.5, 0.049999997)
  657. Part20.Position = Vector3.new(100.96167, 23.2699795, -108.967567)
  658. Part20.Rotation = Vector3.new(0.50999999, -36.5, 0.349999994)
  659. Part20.Color = Color3.new(0.105882, 0.164706, 0.207843)
  660. Part20.Size = Vector3.new(0.543174803, 0.135793686, 0.271587461)
  661. Part20.BottomSurface = Enum.SurfaceType.Smooth
  662. Part20.BrickColor = BrickColor.new("Black")
  663. Part20.CanCollide = false
  664. Part20.Material = Enum.Material.Metal
  665. Part20.TopSurface = Enum.SurfaceType.Smooth
  666. Part20.brickColor = BrickColor.new("Black")
  667. WeldConstraint21.Parent = Part20
  668. WeldConstraint21.Part0 = Part20
  669. WeldConstraint21.Part1 = Part13
  670. Part22.Parent = Model0
  671. Part22.CFrame = CFrame.new(100.859795, 24.2106876, -109.005821, 0.790954888, -0.144435093, -0.594601154, 0.174307793, 0.984664679, -0.0073169847, 0.586539567, -0.0978563949, 0.804001033)
  672. Part22.Orientation = Vector3.new(0.419999987, -36.4799995, 10.04)
  673. Part22.Position = Vector3.new(100.859795, 24.2106876, -109.005821)
  674. Part22.Rotation = Vector3.new(0.519999981, -36.4799995, 10.3499994)
  675. Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
  676. Part22.Size = Vector3.new(0.407381058, 0.203690529, 0.271587461)
  677. Part22.BottomSurface = Enum.SurfaceType.Smooth
  678. Part22.BrickColor = BrickColor.new("Black")
  679. Part22.CanCollide = false
  680. Part22.Material = Enum.Material.Metal
  681. Part22.TopSurface = Enum.SurfaceType.Smooth
  682. Part22.brickColor = BrickColor.new("Black")
  683. WeldConstraint23.Parent = Part22
  684. WeldConstraint23.Part0 = Part22
  685. WeldConstraint23.Part1 = Part5
  686. for i,v in pairs(mas:GetChildren()) do
  687. v.Parent = workspace
  688. pcall(function() v:MakeJoints() end)
  689. end
  690. mas:Destroy()
  691. for i,v in pairs(cors) do
  692. spawn(function()
  693. pcall(v)
  694. end)
  695. end
  696.  
  697. Model0.Parent = char
  698. end
  699. creategun()
  700. --gun model end--
  701. local shot = Instance.new("Part",Model0) shot.Size = Vector3.new(.2,.2,.2) shot.Transparency = 1 shot.Anchored = true shot.CanCollide = false shot.CFrame = ra.CFrame * CFrame.new(0,-2,0)
  702. coroutine.resume(coroutine.create(function()
  703. while true do
  704. shot.CFrame = ra.CFrame * CFrame.new(0,-2.6,-.4) * CFrame.Angles(rad(-90),rad(0),rad(0))
  705. swait()
  706. end
  707. end))
  708. local gunweld = Instance.new("Weld",ra) gunweld.Part0 = t gunweld.Part1 = Part1 gunweld.C0 = CFrame.new(1.1,-.7,0) * CFrame.Angles(rad(-120),rad(-90),rad(0))
  709. function turnto(position)
  710. rut.CFrame = CFrame.new(rut.CFrame.p, Vector3.new(position.X, rut.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  711. end
  712. function fireto(position)
  713. shot.CFrame = CFrame.new(shot.CFrame.p, Vector3.new(position.X, position.Y, position.Z)) * CFrame.new(0, 0, 0)
  714. end
  715.  
  716. function sound(parent,id,vol,pit)
  717. local sound = Instance.new("Sound",parent)
  718. sound.Volume = vol
  719. sound.SoundId = "rbxassetid://"..id
  720. sound.Pitch = pit
  721. sound:Play()
  722. coroutine.resume(coroutine.create(function()
  723.  
  724. repeat
  725. swait()
  726. until sound.Playing == false
  727. sound:Destroy()
  728. end))
  729. end
  730. function blood(POSITION)
  731. local blub = Instance.new("Part",workspace)
  732. blub.Material = "SmoothPlastic"
  733. blub.BrickColor = BrickColor.new("Maroon")
  734. blub.Size = Vector3.new(.3,.3,.3)
  735. blub.Shape = "Ball"
  736. blub.CFrame = POSITION.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)) blub.Transparency = 0
  737. blub.CanCollide = true blub.Anchored = false blub.Name = "Blood"
  738. coroutine.resume(coroutine.create(function(PART)
  739. wait(.5)
  740. blub.CanCollide = false blub.Anchored = true
  741. blub.Shape = "Cylinder"
  742. for i = 0,10 do
  743. blub.Orientation = Vector3.new(0,0,90)
  744. blub.Size = blub.Size + Vector3.new(0,.05,.05)
  745. blub.Size = blub.Size - Vector3.new(.035,0,0)
  746. wait(.1)
  747. end
  748. for i = 0,10 do
  749.  
  750. blub.Orientation = Vector3.new(0,0,90)
  751. blub.Size = blub.Size + Vector3.new(0,.05,.05)
  752. blub.Size = blub.Size - Vector3.new(.035,0,0)
  753. wait(.1)
  754. end
  755. coroutine.resume(coroutine.create(function()
  756. for i = 0,1,.01 do
  757. blub.Color = blub.Color:lerp(Color3.fromRGB(40,0,0),i)
  758. swait()
  759. end
  760. end))
  761. for i = 0,10 do
  762. blub.Size = blub.Size + Vector3.new(0,.025,.025)
  763. blub.Size = blub.Size - Vector3.new(.035,0,0)
  764. blub.Transparency = blub.Transparency + .1
  765. wait(.1)
  766. end
  767. if blub.Transparency >= .99 then
  768. blub:Destroy()
  769. end
  770. end))
  771. end
  772. function nubblud(pos)
  773. local sizes = {.1,.2,.3,.4,.5,.6}
  774. local poses = {.1,.2,.3,.4,.5}
  775. local mposes = {-.1,-.2,-.3,-.4,-.5}
  776. coroutine.resume(coroutine.create(function()
  777. local blod = Instance.new("Part",workspace) blod.Size = Vector3.new(sizes[math.random(1,6)],sizes[math.random(1,6)],sizes[math.random(1,6)]) blod.BrickColor = BrickColor.new("Maroon") blod.Material = "SmoothPlastic"
  778. blod.CFrame = pos.CFrame * CFrame.new(math.random(mposes[math.random(1,5)],poses[math.random(1,5)]),math.random(mposes[math.random(1,5)],poses[math.random(1,5)]),math.random(mposes[math.random(1,5)],poses[math.random(1,5)]))
  779. wait(5)
  780. blod:Destroy()
  781. end))
  782. end
  783. function bullet()
  784. local bulet = Instance.new("Part",workspace)
  785. bulet.Size = Vector3.new(.15,.15,2)
  786. bulet.BrickColor = BrickColor.new("Daisy orange")
  787. bulet.Material = "Neon" bulet.CanCollide = false
  788. bulet.CFrame = shot.CFrame * CFrame.new(0,0,-2.2) bulet.Name = "Bullet"
  789. local mes = Instance.new("SpecialMesh",bulet) mes.MeshType = "Sphere"
  790. local direc = Instance.new("BodyGyro",bulet) direc.MaxTorque = Vector3.new(huge,huge,huge) direc.CFrame = CFrame.new(bulet.Position,mouse.Hit.p)
  791. local vel = Instance.new("BodyVelocity",bulet) vel.MaxForce = Vector3.new(huge,huge,huge) vel.Velocity = direc.CFrame.lookVector * 400
  792. local a = false
  793. function ow(hit)
  794. if hit ~= nil then
  795. local nub = hit.Parent:FindFirstChildOfClass("Humanoid")
  796. if nub ~= nil then
  797. if hit.Parent == char then
  798.  
  799. else
  800. a = true
  801. nub.MaxHealth = 100
  802. nub.Health = nub.Health -0
  803. nub:TakeDamage(math.random(11,23))
  804. nub.WalkSpeed = nub.WalkSpeed -1.2
  805. nub.JumpPower = nub.JumpPower -10
  806. if hit.Name == "Head" or hit.Name == "Handle" then
  807. function expl(pos)
  808. local p = Instance.new("Part",workspace)
  809. p.Size = Vector3.new(.1,.1,.1) p.BrickColor = BrickColor.new("Maroon")
  810. p.Material = "Neon" p.Shape = "Ball" p.CanCollide = false p.Anchored = true
  811. p.CFrame = pos.CFrame
  812. coroutine.resume(coroutine.create(function()
  813. for i = 0,2,.1 do
  814. p.Size = p.Size:lerp(Vector3.new(4,4,4),i)
  815. p.Transparency = p.Transparency +.07
  816. swait()
  817. if p.Transparency >.99 then
  818. p:Destroy()
  819. end
  820. end
  821. end))
  822. end
  823. nub.Parent:BreakJoints()
  824. hit.Parent.Head:Destroy()
  825. bulet:Destroy()
  826. sound(char,"131313234",2,1)
  827. expl(hit)
  828. local bum = Instance.new("Explosion",workspace) bum.Visible = false bum.BlastPressure = 20000 bum.BlastRadius = .5 bum.Position = hit.Position
  829. for i = 1,math.random(2,7) do
  830. blood(hit)
  831. nubblud(hit)
  832. end
  833. end
  834. end
  835. end
  836. bulet:Destroy()
  837. end
  838. end
  839. bulet.Touched:connect(ow)
  840. coroutine.resume(coroutine.create(function()
  841. wait(2)
  842. bulet:Destroy()
  843. end))
  844. end
  845.  
  846. function mag()
  847. local mag = Instance.new("Part",workspace) mag.Size = Vector3.new(.35,1,.2) mag.BrickColor = BrickColor.new("Black") mag.Material = "Metal" mag.CFrame = Part1.CFrame * CFrame.new(0,-1,0)
  848. coroutine.resume(coroutine.create(function()
  849. wait(3)
  850. mag:Destroy()
  851. end))
  852. end
  853.  
  854. function effect()
  855. local ef = Instance.new("Part",Model0) ef.Material = "Neon" ef.Name = "Effect" ef.Size = Vector3.new(.4,.4,.4) ef.Anchored = true ef.CanCollide = false ef.BrickColor = BrickColor.new("Daisy orange") ef.Transparency = 0 ef.CFrame = Part15.CFrame
  856. coroutine.resume(coroutine.create(function()
  857. for i = 1,10 do
  858. ef.Size = ef.Size +Vector3.new(.05,.05,.05)
  859. ef.Transparency = ef.Transparency +.1
  860. ef.CFrame = ef.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180)))
  861. if ef.Transparency > .99 then
  862. ef:Destroy()
  863. end
  864. swait()
  865. end
  866. end))
  867. end
  868.  
  869. local grabda = false
  870. local keyhold = false
  871. local lukin = false
  872. function fire()
  873. if not using and mode == "shoot" or using and grabda and mode == "grab" and killmode == "shoot1" then
  874. using = true
  875. rsw.Part1 = rapr
  876. lukin = true
  877. coroutine.resume(coroutine.create(function()
  878. while lukin do
  879. turnto(mouse.Hit.p)
  880. swait()
  881. end
  882. end))
  883. keyhold = true
  884. for i = 0,1,.07 do
  885. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(90),rad(0),rad(53)),i)
  886. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(233)),i)
  887. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(127)),i)
  888. swait()
  889. end
  890. repeat
  891. if ammo >0 then
  892. fireto(mouse.Hit.p)
  893. sound(char,"131070686",4,1)
  894. ammo = ammo -1
  895. effect()
  896. bullet()
  897. for i = 0,1,.3 do
  898. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,.3) * CFrame.Angles(rad(90),rad(0),rad(53)) * CFrame.Angles(rad(40),rad(0),rad(0)),i)
  899. swait()
  900. end
  901. for i = 0,1,.2 do
  902. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(90),rad(0),rad(53)),i)
  903. swait()
  904. end
  905. wait(.35)
  906. else
  907. sound(char,"537744814",10,1)
  908. keyhold = false
  909. swait()
  910. end
  911. until keyhold == false
  912. wait(.2)
  913. lukin = false
  914. for i = 0,1,.07 do
  915. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  916. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  917. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  918. swait()
  919. end
  920. rsw.Part1 = nil
  921. if killmode ~= "shoot1" then
  922. using = false
  923. end
  924. end
  925. end
  926. function keyup()
  927. keyhold = false
  928. end
  929.  
  930. function reload()
  931. if ammo >6 then
  932. else
  933. using = true
  934. rsw.Part1 = rapr lsw.Part1 = lapl
  935. sound(char,"198915489",2,1.3)
  936. info("Reloading...",2.2)
  937. for i = 0,1,.05 do
  938. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(80),rad(-45),rad(-40)),i)
  939. lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(0),rad(50)),i)
  940. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  941. swait()
  942. end
  943. mag()
  944. for i = 0,1,.1 do
  945. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(-45),rad(-40)),i)
  946. lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-10),rad(0),rad(0)),i)
  947. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  948. swait()
  949. end
  950. for i = 0,1,.05 do
  951. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(-45),rad(-40)),i)
  952. lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-10),rad(0),rad(50)),i)
  953. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  954. swait()
  955. end
  956. local mag = Instance.new("Part",workspace) mag.Size = Vector3.new(.35,1,.2) mag.BrickColor = BrickColor.new("Black") mag.CanCollide = false mag.Material = "Metal"
  957. local magw = Instance.new("Weld",mag) magw.Part0 = la magw.Part1 = mag magw.C0 = CFrame.new(.3,-1,.1) * CFrame.Angles(rad(90),rad(-40),rad(-90))
  958. for i = 0,1,.05 do
  959. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(80),rad(-45),rad(-40)),i)
  960. lsw.C0 = lsw.C0:lerp(CFrame.new(.4,0,0) * CFrame.Angles(rad(50),rad(45),rad(50)),i)
  961. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  962. swait()
  963. end
  964. mag:Destroy()
  965. for i = 0,1,.05 do
  966. rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i)
  967. lsw.C0 = lsw.C0:lerp(CFrame.new(.3,-.5,0) * CFrame.Angles(rad(160),rad(-77),rad(40)),i)
  968. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  969. swait()
  970. end
  971. for i = 0,1,.05 do
  972. rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i)
  973. lsw.C0 = lsw.C0:lerp(CFrame.new(.5,-.5,.3) * CFrame.Angles(rad(150),rad(-50),rad(40)),i)
  974. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  975. swait()
  976. end
  977. for i = 0,1,.05 do
  978. rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i)
  979. lsw.C0 = lsw.C0:lerp(CFrame.new(.3,-.5,0) * CFrame.Angles(rad(160),rad(-77),rad(40)),i)
  980. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  981. swait()
  982. end
  983. for i = 0,.6,.05 do
  984. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
  985. lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
  986. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  987. swait()
  988. end
  989. ammo = 7
  990. rsw.Part1 = nil lsw.Part1 = nil
  991. using = false
  992. end
  993. end
  994.  
  995. function greb()
  996. local hbox = Instance.new("Part",char) hbox.Size = Vector3.new(2,5,.5) hbox.CanCollide = false hbox.Transparency = 1
  997. local hwb = Instance.new("Weld",hbox) hwb.Part0 = t hwb.Part1 = hbox hwb.C0 = CFrame.new(0,0,-1)
  998. local aa = false
  999. function grabd(hit)
  1000. if hit ~= nil and not grab and not aa then
  1001. local aaa = hit.Parent:FindFirstChildOfClass("Humanoid") or hit.Parent.Parent:FindFirstChildOfClass("Humanoid") or hit.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1002. if aaa ~= nil and not grab then
  1003. grab = true aa = true
  1004. hbox:Destroy()
  1005. if aaa.Parent.Name == "ded" then
  1006. info("Press Q to Release",1)
  1007. else
  1008. info("Press E ti Kill or Q to Release",1)
  1009. end
  1010. local tos = aaa.Parent:FindFirstChild("Torso") or aaa.Parent:FindFirstChild("UpperTorso")
  1011. aaa.PlatformStand = true
  1012. local w = Instance.new("Weld",t) w.Name = "grabweld" w.Part0 = t w.Part1 = tos
  1013. coroutine.resume(coroutine.create(function()
  1014. for i = 0,.5,.1 do
  1015. w.C0 = w.C0:lerp(CFrame.new(-.9,0,-.8),i)
  1016. swait()
  1017. end
  1018. end))
  1019. if aaa.Parent.Name ~= "ded" then
  1020. for i = 0,1,.05 do
  1021. rsw.C0 = rsw.C0:lerp(CFrame.new(.7,0,-.15) * CFrame.Angles(rad(110),rad(0),rad(-80)) * CFrame.Angles(rad(10),rad(0),rad(0)),i)
  1022. lsw.C0 = lsw.C0:lerp(CFrame.new(-.2,-.2,-.4) * CFrame.Angles(rad(130),rad(10),rad(50)),i)
  1023. swait()
  1024. end
  1025. function kill()
  1026. aaa.Parent.Archivable = true
  1027. grab = false
  1028. if ammo >0 then
  1029. ammo = ammo -1
  1030. sound(char,"131070686",5,1)
  1031. coroutine.resume(coroutine.create(function()
  1032. for i = 0,1,.5 do
  1033. rsw.C0 = rsw.C0:lerp(CFrame.new(1,0,.45) * CFrame.Angles(rad(110),rad(0),rad(-80)) * CFrame.Angles(rad(10),rad(0),rad(15)),i)
  1034. swait()
  1035. end
  1036. for i = 0,1,.05 do
  1037. rsw.C0 = rsw.C0:lerp(CFrame.new(.7,0,-.15) * CFrame.Angles(rad(110),rad(0),rad(-80)),i)
  1038. swait()
  1039. end
  1040. end))
  1041. coroutine.resume(coroutine.create(function()
  1042. aaa.Health = .1
  1043. for i,v in pairs(aaa.Parent:GetChildren()) do
  1044. if v:IsA("Script") then
  1045. v:Destroy()
  1046. end
  1047. end
  1048. end))
  1049. wait(.5)
  1050. coroutine.resume(coroutine.create(function()
  1051. for i,v in pairs(tos.Parent:GetChildren()) do
  1052. if v:IsA("BasePart") then
  1053. v.Anchored = false
  1054. end
  1055. end
  1056. for i,v in pairs(t:GetChildren()) do
  1057. if v.Name == "grabweld" then
  1058. v:Destroy()
  1059. end
  1060. end
  1061. end))
  1062. coroutine.resume(coroutine.create(function()
  1063. for i = 0,.5,.1 do
  1064. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(-15),rad(0),rad(20)),i)
  1065. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(110),rad(20),rad(-30)),i)
  1066. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(150)),i)
  1067. swait()
  1068. end
  1069. end))
  1070. aaa.DisplayDistanceType = "None"
  1071. if tos.Name == "Torso" then
  1072. coroutine.resume(coroutine.create(function()
  1073. aaa.PlatformStand = true
  1074. local disshit = aaa.Parent
  1075. local h1 = disshit.Head
  1076. local t1 = disshit.Torso
  1077. local ra1 = disshit["Right Arm"]
  1078. local la1 = disshit["Left Arm"]
  1079. local rl1 = disshit["Right Leg"]
  1080. local ll1 = disshit["Left Leg"]
  1081. t1:BreakJoints()
  1082. at2 = Instance.new("Attachment",t1) at2.Position = Vector3.new(1,.7,0) at2.Position = Vector3.new(1,.5,0)
  1083. at = Instance.new("Attachment",ra1) at.Name = "oof" at.Position = Vector3.new(-.5,.7,0)
  1084. balls = Instance.new("BallSocketConstraint",ra1) balls.Attachment0 = at2 balls.Attachment1 = at
  1085. at21 = Instance.new("Attachment",t1) at21.Position = Vector3.new(-1,.7,0) at21.Position = Vector3.new(-1,.5,0) at21.Orientation = Vector3.new(0,180,0)
  1086. at1 = Instance.new("Attachment",la1) at.Name = "oof" at1.Position = Vector3.new(.5,.7,0)
  1087. balls1 = Instance.new("BallSocketConstraint",la1) balls1.Attachment0 = at21 balls1.Attachment1 = at1
  1088. nek = Instance.new("Attachment",h1) nek2 = Instance.new("Attachment",t1) nek2.Position = Vector3.new(0,1,0) nek.Position = Vector3.new(0,-.5,0) nball = Instance.new("BallSocketConstraint",h1) nball.Attachment0 = nek nball.Attachment1 = nek2
  1089. owihatedis = Instance.new("Attachment",t1) owihatedis.Position = Vector3.new(.5,-1,0) oihd = Instance.new("Attachment",rl1) oihd.Position = Vector3.new(0,1,0) oww = Instance.new("BallSocketConstraint",rl1) oww.Attachment0 = owihatedis oww.Attachment1 = oihd
  1090. owihatedis2 = Instance.new("Attachment",t1) owihatedis2.Position = Vector3.new(-.5,-1,0) oihd2 = Instance.new("Attachment",ll1) oihd2.Position = Vector3.new(0,1,0) oww2 = Instance.new("BallSocketConstraint",ll1) oww2.Attachment0 = owihatedis2 oww2.Attachment1 = oihd2
  1091. box = Instance.new("Part",t1) box.Size = Vector3.new(1,1.3,1) box.Transparency = 1
  1092. box1 = Instance.new("Part",t1) box1.Size = Vector3.new(1,1.3,1) box1.Transparency = 1
  1093. box2 = Instance.new("Part",t1) box2.Size = Vector3.new(1,1.3,1) box2.Transparency = 1
  1094. box3 = Instance.new("Part",t1) box3.Size = Vector3.new(1,1.3,1) box3.Transparency = 1
  1095. box4 = Instance.new("Part",t1) box4.Size = h.Size - Vector3.new(0,.7,0) box4.Transparency = 1
  1096. bw = Instance.new("Weld",box) bw.Part0 = box bw.Part1 = ra1 bw.C0 = bw.C0 * CFrame.new(0,.45,0)
  1097. bw1 = Instance.new("Weld",box1) bw1.Part0 = box1 bw1.Part1 = la1 bw1.C0 = bw1.C0 * CFrame.new(0,.45,0)
  1098. bw2 = Instance.new("Weld",box2) bw2.Part0 = box2 bw2.Part1 = rl1 bw2.C0 = bw2.C0 * CFrame.new(0,.45,0)
  1099. bw3 = Instance.new("Weld",box3) bw3.Part0 = box3 bw3.Part1 = ll1 bw3.C0 = bw3.C0 * CFrame.new(0,.45,0)
  1100. bw4 = Instance.new("Weld",box4) bw4.Part0 = box4 bw4.Part1 = h1 bw4.C0 = bw4.C0 * CFrame.new(0,0,0)
  1101. local rt = disshit:FindFirstChild("HumanoidRootPart")
  1102. if rt ~= nil then
  1103. rt:Destroy()
  1104. end
  1105. wait()
  1106. local ded = disshit:Clone()
  1107. local as = ded:FindFirstChildOfClass("Humanoid")
  1108. as.Died:connect(function()
  1109. for i,v in pairs(ded.Torso:GetChildren()) do
  1110. if v:IsA("Part") then
  1111. v:Destroy()
  1112. end
  1113. end
  1114. end)
  1115. coroutine.resume(coroutine.create(function()
  1116. for i = 1,math.random(4,9) do
  1117. nubblud(ded.Head)
  1118. wait(.05)
  1119. end
  1120. end))
  1121. as.PlatformStand = true
  1122. ded.Parent = workspace disshit:Destroy()
  1123. ded.Torso.CFrame = ded.Torso.CFrame * CFrame.new(0,4,-6)
  1124. ded.Torso.Orientation = Vector3.new(math.random(-70,70),math.random(-70,70),math.random(-70,70))
  1125. ded.Name = "ded"
  1126. local yes = Instance.new("Part",char) yes.Size = t.Size yes.Anchored = true yes.CanCollide = false yes.Transparency = 1 yes.CFrame = rut.CFrame * CFrame.Angles(rad(50),rad(0),rad(0))
  1127. local furs = Instance.new("BodyVelocity",ded.Torso) furs.MaxForce = Vector3.new(huge,huge,huge)
  1128. furs.Velocity = yes.CFrame.lookVector * 35
  1129.  
  1130. coroutine.resume(coroutine.create(function()
  1131. wait(.1)
  1132. furs:Destroy()
  1133. yes:Destroy()
  1134. end))
  1135. end))
  1136. end
  1137. wait(.4)
  1138. for i = 0,1,.05 do
  1139. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1140. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1141. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1142. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1143. swait()
  1144. end
  1145. if aaa.Parent ~= nil then
  1146. aaa.Parent:BreakJoints()
  1147. end
  1148. using = false
  1149. rsw.Part1 = nil lsw.Part1 = nil
  1150. else
  1151. aaa.PlatformStand = true
  1152. sound(char,"537744814",10,1)
  1153. wait(.5)
  1154. local furs = Instance.new("BodyVelocity",tos) furs.MaxForce = Vector3.new(huge,huge,huge)
  1155. furs.Velocity = rut.CFrame.lookVector * 30
  1156. w:Destroy()
  1157. for i = 0,.5,.05 do
  1158. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(-15),rad(0),rad(-20)),i)
  1159. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(90),rad(20),rad(10)),i)
  1160. swait()
  1161. end
  1162. furs:Destroy()
  1163. for i = 0,1,.1 do
  1164. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1165. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1166. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1167. swait()
  1168. end
  1169. coroutine.resume(coroutine.create(function()
  1170. wait(2)
  1171. if aaa.Parent.Name == "ded" then
  1172. else
  1173. aaa.PlatformStand = false
  1174. end
  1175. end))
  1176. grab = false
  1177. using = false
  1178. rsw.Part1 = nil lsw.Part1 = nil
  1179. end
  1180. end
  1181. function drop()
  1182. aaa.PlatformStand = true
  1183. w:Destroy()
  1184. local furs = Instance.new("BodyVelocity",tos) furs.MaxForce = Vector3.new(huge,huge,huge)
  1185. furs.Velocity = rut.CFrame.lookVector * 30
  1186. for i = 0,.5,.05 do
  1187. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(-15),rad(0),rad(-20)),i)
  1188. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(90),rad(20),rad(10)),i)
  1189. swait()
  1190. end
  1191. furs:Destroy()
  1192. for i = 0,1,.05 do
  1193. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1194. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1195. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1196. swait()
  1197. end
  1198. coroutine.resume(coroutine.create(function()
  1199. wait(2)
  1200. if aaa.Parent.Name == "ded" then
  1201. else
  1202. aaa.PlatformStand = false
  1203. end
  1204. end))
  1205. using = false
  1206. rsw.Part1 = nil lsw.Part1 = nil
  1207. grab = false
  1208. end
  1209. else
  1210. oldmode = killmode
  1211. killmode = "release1"
  1212. hum.JumpPower = 0
  1213. hum.WalkSpeed = 8
  1214. coroutine.resume(coroutine.create(function()
  1215. for i = 0,1,.05 do
  1216. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0),i)
  1217. lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-33),rad(0),rad(-30)),i)
  1218. swait()
  1219. end
  1220. end))
  1221. grabda = true
  1222. w:Destroy()
  1223. local ata = Instance.new("Attachment",la) ata.Position = Vector3.new(0,-.8,0)
  1224. local ata1 = Instance.new("Attachment",aaa.Parent["Right Leg"]) ata1.Position = Vector3.new(0,-.8,0)
  1225. local ba = Instance.new("BallSocketConstraint",ata) ba.Attachment0 = ata ba.Attachment1 = ata1
  1226. rsw.Part1 = nil
  1227. function drop1()
  1228. using = true
  1229. grabda = false
  1230. killmode = oldmode
  1231. ba.Attachment1 = nil
  1232. ata:Destroy()
  1233. ata1:Destroy()
  1234. ba:Destroy()
  1235. hum.JumpPower = 50
  1236. hum.WalkSpeed = 16
  1237. for i = 0,1,.05 do
  1238. lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0),i)
  1239. swait()
  1240. end
  1241. lsw.Part1 = nil
  1242. using = false
  1243. grab = false
  1244. end
  1245. end
  1246. end
  1247. end
  1248. end
  1249. local tcon = hbox.Touched:connect(grabd)
  1250. using = true
  1251. coroutine.resume(coroutine.create(function()
  1252. for i = 0,.5,.1 do
  1253. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1254. rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1255. lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1256. swait()
  1257. end
  1258. end))
  1259. rsw.Part1 = rapr lsw.Part1 = lapl
  1260. for i = 0,.7,.05 do
  1261. rsw.C0 = rsw.C0:lerp(CFrame.new(.2,0,-.3) * CFrame.Angles(rad(90),rad(0),rad(70)),i)
  1262. lsw.C0 = lsw.C0:lerp(CFrame.new(-.2,0,-.5) * CFrame.Angles(rad(90),rad(0),rad(-70)),i)
  1263. swait()
  1264. end
  1265. wait(.25)
  1266. hbox:Destroy()
  1267. tcon:disconnect()
  1268. if grab == false then
  1269. for i = 0,1,.05 do
  1270. rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1271. lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1272. swait()
  1273. end
  1274. using = false
  1275. rsw.Part1 = nil lsw.Part1 = nil
  1276. end
  1277. end
  1278.  
  1279. function dumi()
  1280. local dog = Instance.new("Model",workspace) dog.Name = "dumi"
  1281. local head = Instance.new("Part",dog) head.Name = "Head" head.Size = Vector3.new(2,1,1)
  1282. local la1 = Instance.new("Part",dog) la1.Name = "Left Arm" la1.Size = Vector3.new(1,2,1) local t1 = Instance.new("Part",dog) t1.Name = "Torso" t1.Size = Vector3.new(2,2,1) local ra1 = Instance.new("Part",dog) ra1.Name = "Right Arm" ra1.Size = Vector3.new(1,2,1)
  1283. local ll1 = Instance.new("Part",dog) ll1.Name = "Left Leg" ll1.Size = Vector3.new(1,2,1) local rl1 = Instance.new("Part",dog) rl1.Name = "Right Leg" rl1.Size = Vector3.new(1,2,1)
  1284. local dhum = Instance.new("Humanoid",dog) local hmesh = Instance.new("SpecialMesh",head) hmesh.Scale = Vector3.new(1.25,1.25,1.25)
  1285. dhum.MaxHealth = "inf" dhum.Health = "inf" dhum.AutoJumpEnabled = true
  1286. head.BrickColor = BrickColor.new("Institutional white") t1.BrickColor = BrickColor.new("Really black") ra1.BrickColor = BrickColor.new("Institutional white") la1.BrickColor = BrickColor.new("Institutional white") rl1.BrickColor = BrickColor.new("Dark stone grey") ll1.BrickColor = BrickColor.new("Dark stone grey")
  1287. local fais = Instance.new("Decal",head) fais.Texture = "http://www.roblox.com/asset/?id=1077397727"
  1288. local nec = Instance.new("Motor6D",t1) nec.Part0 = t1 nec.Part1 = head nec.C0 = nec.C0 * CFrame.new(0,1.5,0)
  1289. local ris = Instance.new("Motor6D",t1) ris.Part0 = t1 ris.Part1 = ra1 ris.C0 = ris.C0 * CFrame.new(1.5,0,0)
  1290. local lis = Instance.new("Motor6D",t1) lis.Part0 = t1 lis.Part1 = la1 lis.C0 = lis.C0 * CFrame.new(-1.5,0,0)
  1291. local rih = Instance.new("Motor6D",t1) rih.Part0 = t1 rih.Part1 = rl1 rih.C0 = rih.C0 * CFrame.new(.5,-2,0)
  1292. local lih = Instance.new("Motor6D",t1) lih.Part0 = t1 lih.Part1 = ll1 lih.C0 = lih.C0 * CFrame.new(-.5,-2,0)
  1293. head.CFrame = h.CFrame * CFrame.new(4,0,0)
  1294. t1.CFrame = t.CFrame * CFrame.new(4,0,0)
  1295. ra1.CFrame = ra.CFrame * CFrame.new(4,0,0)
  1296. la1.CFrame = la.CFrame * CFrame.new(4,0,0)
  1297. rl1.CFrame = rl.CFrame * CFrame.new(4,0,0)
  1298. ll1.CFrame = ll.CFrame * CFrame.new(4,0,0)
  1299. end
  1300.  
  1301. function equip()
  1302. rsw.Part1 = rapr
  1303. using = true
  1304. info("Equipped, press F or G to change the mode.",1)
  1305. for i = 0,1,.03 do
  1306. rsw.C0 = rsw.C0:lerp(CFrame.new(0,.3,0) * CFrame.Angles(rad(0),rad(0),rad(-20)),i)
  1307. swait()
  1308. end
  1309. gunweld.Part0 = ra gunweld.C0 = CFrame.new(0,-.9,0) * CFrame.Angles(rad(-90),rad(-90),rad(0))
  1310. for i = 0,1,.05 do
  1311. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1312. swait()
  1313. end
  1314. uneq = true
  1315. rsw.Part1 = nil
  1316. canequip = false
  1317. using = false
  1318. end
  1319.  
  1320. function unequip()
  1321. rsw.Part1 = rapr
  1322. using = true
  1323. info("Unequipped.",1)
  1324. for i = 0,1,.05 do
  1325. rsw.C0 = rsw.C0:lerp(CFrame.new(0,.3,0) * CFrame.Angles(rad(0),rad(0),rad(-20)),i)
  1326. swait()
  1327. end
  1328. gunweld.Part0 = t gunweld.C0 = CFrame.new(1.1,-.7,0) * CFrame.Angles(rad(-120),rad(-90),rad(0))
  1329. for i = 0,.5,.1 do
  1330. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1331. rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1332. ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1333. rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1334. lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1335. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1336. swait()
  1337. end
  1338. for i = 0,1,.03 do
  1339. rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
  1340. swait()
  1341. end
  1342. uneq = false
  1343. canequip = true
  1344. rsw.Part1 = nil
  1345. end
  1346.  
  1347. mouse.KeyDown:connect(function(key)
  1348. key = string.lower(key)
  1349. if string.byte(key) == 48 and not grabda then
  1350. hum.WalkSpeed = 30
  1351. end
  1352. end)
  1353. mouse.KeyUp:connect(function(key)
  1354. key = string.lower(key)
  1355. if string.byte(key) == 48 and not grabda then
  1356. hum.WalkSpeed = 16
  1357. end
  1358. end)
  1359.  
  1360. local conts = false
  1361. function controls()
  1362. conts = true
  1363. coroutine.resume(coroutine.create(function()
  1364. info("F - Shoot.",1)
  1365. wait(1)
  1366. info("R - Reload.",1)
  1367. wait(1)
  1368. info("G - Grab.",1)
  1369. wait(1)
  1370. info("C - Spawn a dummy.",1)
  1371. wait(1)
  1372. info("V - Destroy all dead victims.",1)
  1373. wait(1)
  1374. info("N - Dance.",1)
  1375. conts = false
  1376. end))
  1377. end
  1378.  
  1379. function cleardumi()
  1380. for i,v in pairs(workspace:GetChildren()) do
  1381. if v.Name == "ded" then
  1382. local exp = Instance.new("Explosion",workspace) exp.Position = v.Torso.Position exp.BlastRadius = 0
  1383. v:Destroy()
  1384. end
  1385. end
  1386. end
  1387.  
  1388. hum.Running:connect(function(spd)
  1389. if spd > 0 then
  1390. anim = "walk"
  1391. end
  1392. end)
  1393.  
  1394. local dancing = false
  1395. local mus = Instance.new("Sound",char) mus.Looped = true mus.SoundId = "rbxassetid://1563991094" mus.Volume = 5
  1396. local musica = Instance.new("Sound",char) musica.Volume = 1 musica.Looped = true musica.SoundId = "rbxassetid://1080089636"
  1397. local visonlyvlad = false
  1398.  
  1399. mouse.KeyDown:connect(function(key)
  1400. if key == "e" and grab and not grabda then
  1401. kill()
  1402. end
  1403. if key == "q" and grab and not grabda then
  1404. drop()
  1405. end
  1406. if grabda and key == "q" then
  1407. drop1()
  1408. end
  1409. if grabda and key == "e" then
  1410. fire()
  1411. end
  1412. if key == "r" and not using and not grab then
  1413. reload()
  1414. end
  1415. if key == "c" then
  1416. dumi()
  1417. end
  1418. if key == "z"and canequip == true then
  1419. equip()
  1420. end
  1421. if key == "x" and canequip == false and uneq == true then
  1422. unequip()
  1423. end
  1424. if key == "v" then
  1425. cleardumi()
  1426. end
  1427. if key == "m" and not conts then
  1428. controls()
  1429. end
  1430. if key == "g" and not using then
  1431. greb()
  1432. end
  1433. if key == "f" and not using then
  1434. fire()
  1435. end
  1436. key = key:lower()
  1437. if key == "n" then
  1438. if not dancing then
  1439. dancing = true
  1440. using = true
  1441. char.Animate.Disabled = true
  1442. for i,v in pairs(Model0:GetChildren()) do
  1443. if v:IsA("Part") then
  1444. v.Transparency = 1
  1445. end
  1446. end
  1447. mus:Play()
  1448. while dancing do
  1449. if dancing then
  1450. coroutine.resume(coroutine.create(function()
  1451. for i = 0,.3,.035 do
  1452. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.1),i)
  1453. rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  1454. ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  1455. rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,-.05) * CFrame.Angles(rad(0),rad(60),rad(-10)),i)
  1456. lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-31.5)),i)
  1457. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1458. swait()
  1459. end
  1460. end))
  1461. end
  1462. wait(.07)
  1463. if dancing then
  1464. for i = 0,.7,.035 do
  1465. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.2),i)
  1466. rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  1467. ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  1468. rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.05) * CFrame.Angles(rad(0),rad(60),rad(-20)),i)
  1469. lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-63)),i)
  1470. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1471. swait()
  1472. end
  1473. end
  1474. if dancing then
  1475. coroutine.resume(coroutine.create(function()
  1476. for i = 0,.3,.035 do
  1477. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.1),i)
  1478. rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  1479. ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  1480. rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(31.5)),i)
  1481. lh.C0 = lh.C0:lerp(CFrame.new(-1,-.9,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i)
  1482. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1483. swait()
  1484. end
  1485. end))
  1486. end
  1487. wait(.07)
  1488. if dancing then
  1489. for i = 0,.7,.035 do
  1490. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.2),i)
  1491. rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  1492. ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  1493. rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(63)),i)
  1494. lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i)
  1495. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1496. swait()
  1497. end
  1498. end
  1499. swait()
  1500. end
  1501. else
  1502. mus:Stop()
  1503. char.Animate.Disabled = false
  1504. dancing = false
  1505. for i,v in pairs(Model0:GetChildren()) do
  1506. if v:IsA("Part") then
  1507. v.Transparency = 0
  1508. end
  1509. end
  1510. shot.Transparency = 1
  1511. if not canequip then
  1512. using = false
  1513. else
  1514. for i,v in pairs(Model0:GetChildren()) do
  1515. if v:IsA("Part") then
  1516. v.Transparency = 0
  1517. end
  1518. end
  1519. shot.Transparency = 1
  1520. using = true
  1521. wait(.3)
  1522. for i = 0,1,.1 do
  1523. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1524. rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1525. ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1526. rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1527. lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1528. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1529. swait()
  1530. end
  1531. end
  1532. end
  1533. end
  1534. key = key:lower()
  1535. if key == "u" and plr.Name == "BaconLicki" then
  1536. if not visonlyvlad then
  1537.  
  1538. musica:Play()
  1539. visonlyvlad = true
  1540. info("Visualiser mode:On",.3)
  1541. else
  1542. info("Visualiser mode:Off",.3)
  1543. visonlyvlad = false
  1544. musica:Stop()
  1545. end
  1546. end
  1547. end)
  1548. mouse.KeyUp:connect(function(key)
  1549. if key == "f" then
  1550. keyhold = false
  1551. end
  1552. end)
  1553. coroutine.resume(coroutine.create(function()
  1554. while false do
  1555. if visonlyvlad == true then
  1556. for i = 0,1,.0001 do
  1557. vispart.CFrame = vispart.CFrame:lerp(rut.CFrame * CFrame.new(1,2,2),i)
  1558. swait()
  1559. end
  1560. end
  1561. swait()
  1562. end
  1563. end))
  1564. while true do
  1565. if anim == "walk" and not using and uneq then
  1566. for i = 0,.5,.1 do
  1567. rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1568. rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1569. ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1570. rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
  1571. lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
  1572. nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  1573. swait()
  1574. end
  1575. end
  1576. swait()
  1577. end
  1578. function inf(text)
  1579. local ch = coroutine.wrap(function()
  1580. local sc = Instance.new("ScreenGui",plrg)
  1581. local tex = Instance.new("TextLabel",sc) tex.Rotation = math.random(-5,5) tex.Position = UDim2.new(-.5,0,-.5,0) tex.Size = UDim2.new(2,0,2,0) tex.TextScaled = true tex.BackgroundColor3 = Color3.fromRGB(40,40,40) tex.BorderSizePixel = 0 tex.TextColor3 = Color3.fromRGB(255,255,255) tex.Text = ""
  1582. for i = 1, string.len(text) do
  1583. tex.Text = string.sub(text, 1, i)
  1584. wait()
  1585. end
  1586. wait(2)
  1587. sc:Destroy()
  1588. tex:Destroy()
  1589. end)
  1590. ch()
  1591. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement