Advertisement
lundofett

Untitled

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