Advertisement
rohanboi

gun grab boi

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