gray_alli28codesrbx

amon guss

Nov 4th, 2020 (edited)
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.52 KB | None | 0 0
  1. --local owner = game.Players.iiDkOffical
  2. local lerping = false
  3. local Player = owner
  4. local Character = Player.Character
  5. --Character.Animate:Destroy()
  6. --Character.Humanoid.Animator:Destroy()
  7.  
  8. local Torso = Character.Torso
  9. local RootPart = Character.HumanoidRootPart
  10. local RS = Torso["Right Shoulder"]
  11. local LS = Torso["Left Shoulder"]
  12. local RH = Torso["Right Hip"]
  13. local LH = Torso["Left Hip"]
  14. local N = Torso.Neck
  15. local R = Character.HumanoidRootPart.RootJoint
  16. local defRS = RS.C0
  17. local defLS = LS.C0
  18. local defRH = RH.C0
  19. local defLH = LH.C0
  20. local defN = N.C0
  21. local defR = R.C0
  22.  
  23. local chatfx = Instance.new("Sound",Character.Head)
  24. chatfx.SoundId = "rbxassetid://5710022772"
  25. local ventfx = Instance.new("Sound",Character.Head)
  26. ventfx.SoundId = "rbxassetid://5771441412"
  27. local deathfx = Instance.new("Sound",Character.Head)
  28. deathfx.SoundId = "rbxassetid://5663179979"
  29. local gunfx = Instance.new("Sound",Character.Head)
  30. gunfx.SoundId = "rbxassetid://904440937"
  31. local stabfx = Instance.new("Sound",Character.Head)
  32. stabfx.SoundId = "rbxassetid://1386772138"
  33. local action = "none"
  34.  
  35. local function lerp(th,go)
  36. spawn(function()
  37. --[[
  38. local st = Neck.C0 --// This is the start C0 of the neck
  39.  
  40. local Go = Neck.C0*CFrame.Angles(math.rad(30,0,0)) --// This is the goal
  41. ]]
  42. lerping = true
  43. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  44. th.C0 = th.C0:lerp(go,i)
  45. wait()
  46. end
  47. end)
  48. end
  49.  
  50. function returntonormal()
  51. lerp(LH,defLH)
  52. lerp(RH,defRH)
  53. lerp(RS,defRS)
  54. lerp(LS,defLS)
  55. lerp(R,defR)
  56. lerp(N,defN)
  57. end
  58.  
  59. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  60. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  61. do
  62. print("iiDk gives credits to Mokiros and iPxter for the mouse script.")
  63. pcall(function() script.Parent = Player.Character end)
  64.  
  65. --RemoteEvent for communicating
  66. local Event = Instance.new("RemoteEvent")
  67. Event.Name = "UserInput_Event"
  68.  
  69. --Fake event to make stuff like Mouse.KeyDown work
  70. local function fakeEvent()
  71. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  72. t.connect = t.Connect
  73. return t
  74. end
  75.  
  76. --Creating fake input objects with fake variables
  77. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  78. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  79. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  80. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  81. end}
  82. --Merged 2 functions into one by checking amount of arguments
  83. CAS.UnbindAction = CAS.BindAction
  84.  
  85. --This function will trigger the events that have been :Connect()'ed
  86. local function te(self,ev,...)
  87. local t = m[ev]
  88. if t and t._fakeEvent and t.Function then
  89. t.Function(...)
  90. end
  91. end
  92. m.TrigEvent = te
  93. UIS.TrigEvent = te
  94.  
  95. Event.OnServerEvent:Connect(function(plr,io)
  96. if plr~=Player then return end
  97. if io.isMouse then
  98. m.Target = io.Target
  99. m.Hit = io.Hit
  100. else
  101. local b = io.UserInputState == Enum.UserInputState.Begin
  102. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  103. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  104. end
  105. for _,t in pairs(CAS.Actions) do
  106. for _,k in pairs(t.Keys) do
  107. if k==io.KeyCode then
  108. t.Function(t.Name,io.UserInputState,io)
  109. end
  110. end
  111. end
  112. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  113. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  114. end
  115. end)
  116. Event.Parent = NLS([==[
  117. local Player = game:GetService("Players").LocalPlayer
  118. local Event = script:WaitForChild("UserInput_Event")
  119.  
  120. local UIS = game:GetService("UserInputService")
  121. local input = function(io,a)
  122. if a then return end
  123. --Since InputObject is a client-side instance, we create and pass table instead
  124. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  125. end
  126. UIS.InputBegan:Connect(input)
  127. UIS.InputEnded:Connect(input)
  128.  
  129. local Mouse = Player:GetMouse()
  130. local h,t
  131. --Give the server mouse data 30 times every second, but only if the values changed
  132. --If player is not moving their mouse, client won't fire events
  133. while wait(1/30) do
  134. if h~=Mouse.Hit or t~=Mouse.Target then
  135. h,t=Mouse.Hit,Mouse.Target
  136. Event:FireServer({isMouse=true,Target=t,Hit=h})
  137. end
  138. end]==],Player.Character)
  139. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  140. end
  141.  
  142. PlayerGui = Player.PlayerGui
  143. Backpack = Player.Backpack
  144. Character = Player.Character
  145. Humanoid = Character.Humanoid
  146. Mouse = Player:GetMouse()
  147. RootPart = Character["HumanoidRootPart"]
  148. Torso = Character["Torso"]
  149. Head = Character["Head"]
  150. RightArm = Character["Right Arm"]
  151. LeftArm = Character["Left Arm"]
  152. RightLeg = Character["Right Leg"]
  153. LeftLeg = Character["Left Leg"]
  154. RootJoint = RootPart["RootJoint"]
  155. Neck = Torso["Neck"]
  156. RightShoulder = Torso["Right Shoulder"]
  157. LeftShoulder = Torso["Left Shoulder"]
  158. RightHip = Torso["Right Hip"]
  159. LeftHip = Torso["Left Hip"]
  160.  
  161. IT = Instance.new
  162. CF = CFrame.new
  163. VT = Vector3.new
  164. RAD = math.rad
  165. C3 = Color3.new
  166. UD2 = UDim2.new
  167. BRICKC = BrickColor.new
  168. ANGLES = CFrame.Angles
  169. EULER = CFrame.fromEulerAnglesXYZ
  170. COS = math.cos
  171. ACOS = math.acos
  172. SIN = math.sin
  173. ASIN = math.asin
  174. ABS = math.abs
  175. MRANDOM = math.random
  176. FLOOR = math.floor
  177.  
  178. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  179. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  180. end
  181.  
  182. function PositiveAngle(NUMBER)
  183. if NUMBER >= 0 then
  184. NUMBER = 0
  185. end
  186. return NUMBER
  187. end
  188.  
  189. function NegativeAngle(NUMBER)
  190. if NUMBER <= 0 then
  191. NUMBER = 0
  192. end
  193. return NUMBER
  194. end
  195.  
  196. function Swait(NUMBER)
  197. if NUMBER == 0 or NUMBER == nil then
  198. ArtificialHB.Event:wait()
  199. else
  200. for i = 1, NUMBER do
  201. ArtificialHB.Event:wait()
  202. end
  203. end
  204. end
  205.  
  206. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  207. local NEWMESH = IT(MESH)
  208. if MESH == "SpecialMesh" then
  209. NEWMESH.MeshType = MESHTYPE
  210. if MESHID ~= "nil" and MESHID ~= "" then
  211. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  212. end
  213. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  214. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  215. end
  216. end
  217. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  218. NEWMESH.Scale = SCALE
  219. NEWMESH.Parent = PARENT
  220. return NEWMESH
  221. end
  222.  
  223. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  224. local NEWPART = IT("Part")
  225. NEWPART.formFactor = FORMFACTOR
  226. NEWPART.Reflectance = REFLECTANCE
  227. NEWPART.Transparency = TRANSPARENCY
  228. NEWPART.CanCollide = false
  229. NEWPART.Locked = true
  230. NEWPART.Anchored = true
  231. if ANCHOR == false then
  232. NEWPART.Anchored = false
  233. end
  234. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  235. NEWPART.Name = NAME
  236. NEWPART.Size = SIZE
  237. NEWPART.Position = Torso.Position
  238. NEWPART.Material = MATERIAL
  239. NEWPART:BreakJoints()
  240. NEWPART.Parent = PARENT
  241. return NEWPART
  242. end
  243.  
  244. local function weldBetween(a, b)
  245. local weldd = Instance.new("ManualWeld")
  246. weldd.Part0 = a
  247. weldd.Part1 = b
  248. weldd.C0 = CFrame.new()
  249. weldd.C1 = b.CFrame:inverse() * a.CFrame
  250. weldd.Parent = a
  251. return weldd
  252. end
  253.  
  254.  
  255. function QuaternionFromCFrame(cf)
  256. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  257. local trace = m00 + m11 + m22
  258. if trace > 0 then
  259. local s = math.sqrt(1 + trace)
  260. local recip = 0.5 / s
  261. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  262. else
  263. local i = 0
  264. if m11 > m00 then
  265. i = 1
  266. end
  267. if m22 > (i == 0 and m00 or m11) then
  268. i = 2
  269. end
  270. if i == 0 then
  271. local s = math.sqrt(m00 - m11 - m22 + 1)
  272. local recip = 0.5 / s
  273. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  274. elseif i == 1 then
  275. local s = math.sqrt(m11 - m22 - m00 + 1)
  276. local recip = 0.5 / s
  277. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  278. elseif i == 2 then
  279. local s = math.sqrt(m22 - m00 - m11 + 1)
  280. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  281. end
  282. end
  283. end
  284.  
  285. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  286. local xs, ys, zs = x + x, y + y, z + z
  287. local wx, wy, wz = w * xs, w * ys, w * zs
  288. local xx = x * xs
  289. local xy = x * ys
  290. local xz = x * zs
  291. local yy = y * ys
  292. local yz = y * zs
  293. local zz = z * zs
  294. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  295. end
  296.  
  297. function QuaternionSlerp(a, b, t)
  298. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  299. local startInterp, finishInterp;
  300. if cosTheta >= 0.0001 then
  301. if (1 - cosTheta) > 0.0001 then
  302. local theta = ACOS(cosTheta)
  303. local invSinTheta = 1 / SIN(theta)
  304. startInterp = SIN((1 - t) * theta) * invSinTheta
  305. finishInterp = SIN(t * theta) * invSinTheta
  306. else
  307. startInterp = 1 - t
  308. finishInterp = t
  309. end
  310. else
  311. if (1 + cosTheta) > 0.0001 then
  312. local theta = ACOS(-cosTheta)
  313. local invSinTheta = 1 / SIN(theta)
  314. startInterp = SIN((t - 1) * theta) * invSinTheta
  315. finishInterp = SIN(t * theta) * invSinTheta
  316. else
  317. startInterp = t - 1
  318. finishInterp = t
  319. end
  320. end
  321. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  322. end
  323.  
  324. function Clerp(a, b, t)
  325. local qa = {QuaternionFromCFrame(a)}
  326. local qb = {QuaternionFromCFrame(b)}
  327. local ax, ay, az = a.x, a.y, a.z
  328. local bx, by, bz = b.x, b.y, b.z
  329. local _t = 1 - t
  330. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  331. end
  332.  
  333. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  334. local frame = IT("Frame")
  335. frame.BackgroundTransparency = TRANSPARENCY
  336. frame.BorderSizePixel = BORDERSIZEPIXEL
  337. frame.Position = POSITION
  338. frame.Size = SIZE
  339. frame.BackgroundColor3 = COLOR
  340. frame.BorderColor3 = BORDERCOLOR
  341. frame.Name = NAME
  342. frame.Parent = PARENT
  343. return frame
  344. end
  345.  
  346. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  347. local label = IT("TextLabel")
  348. label.BackgroundTransparency = 1
  349. label.Size = UD2(1, 0, 1, 0)
  350. label.Position = UD2(0, 0, 0, 0)
  351. label.TextColor3 = TEXTCOLOR
  352. label.TextStrokeTransparency = STROKETRANSPARENCY
  353. label.TextTransparency = TRANSPARENCY
  354. label.FontSize = TEXTFONTSIZE
  355. label.Font = TEXTFONT
  356. label.BorderSizePixel = BORDERSIZEPIXEL
  357. label.TextScaled = false
  358. label.Text = TEXT
  359. label.Name = NAME
  360. label.Parent = PARENT
  361. return label
  362. end
  363.  
  364. function NoOutlines(PART)
  365. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  366. end
  367.  
  368. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  369. local NEWWELD = IT(TYPE)
  370. NEWWELD.Part0 = PART0
  371. NEWWELD.Part1 = PART1
  372. NEWWELD.C0 = C0
  373. NEWWELD.C1 = C1
  374. NEWWELD.Parent = PARENT
  375. return NEWWELD
  376. end
  377.  
  378. local S = IT("Sound")
  379. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  380. local NEWSOUND = nil
  381. coroutine.resume(coroutine.create(function()
  382. NEWSOUND = S:Clone()
  383. NEWSOUND.Parent = PARENT
  384. NEWSOUND.Volume = VOLUME
  385. NEWSOUND.Pitch = PITCH
  386. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  387. NEWSOUND:play()
  388. if DOESLOOP == true then
  389. NEWSOUND.Looped = true
  390. else
  391. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  392. NEWSOUND:remove()
  393. end
  394. end))
  395. return NEWSOUND
  396. end
  397.  
  398. function CFrameFromTopBack(at, top, back)
  399. local right = top:Cross(back)
  400. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  401. end
  402.  
  403. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  404. function WACKYEFFECT(Table)
  405. local TYPE = (Table.EffectType or "Sphere")
  406. local SIZE = (Table.Size or VT(1,1,1))
  407. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  408. local TRANSPARENCY = (Table.Transparency or 0)
  409. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  410. local CFRAME = (Table.CFrame or Torso.CFrame)
  411. local MOVEDIRECTION = (Table.MoveToPos or nil)
  412. local ROTATION1 = (Table.RotationX or 0)
  413. local ROTATION2 = (Table.RotationY or 0)
  414. local ROTATION3 = (Table.RotationZ or 0)
  415. local MATERIAL = (Table.Material or "Neon")
  416. local COLOR = (Table.Color or C3(1,1,1))
  417. local TIME = (Table.Time or 45)
  418. local SOUNDID = (Table.SoundID or nil)
  419. local SOUNDPITCH = (Table.SoundPitch or nil)
  420. local SOUNDVOLUME = (Table.SoundVolume or nil)
  421. coroutine.resume(coroutine.create(function()
  422. local PLAYSSOUND = false
  423. local SOUND = nil
  424. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  425. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  426. PLAYSSOUND = true
  427. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  428. end
  429. EFFECT.Color = COLOR
  430. local MSH = nil
  431. if TYPE == "Sphere" then
  432. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  433. elseif TYPE == "Block" then
  434. MSH = IT("BlockMesh",EFFECT)
  435. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  436. elseif TYPE == "Wave" then
  437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  438. elseif TYPE == "Ring" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  440. elseif TYPE == "Slash" then
  441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  442. elseif TYPE == "Round Slash" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  444. elseif TYPE == "Swirl" then
  445. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  446. elseif TYPE == "Skull" then
  447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  448. elseif TYPE == "Crystal" then
  449. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  450. end
  451. if MSH ~= nil then
  452. local MOVESPEED = nil
  453. if MOVEDIRECTION ~= nil then
  454. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  455. end
  456. local GROWTH = SIZE - ENDSIZE
  457. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  458. if TYPE == "Block" then
  459. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  460. else
  461. EFFECT.CFrame = CFRAME
  462. end
  463. for LOOP = 1, TIME+1 do
  464. Swait()
  465. MSH.Scale = MSH.Scale - GROWTH/TIME
  466. if TYPE == "Wave" then
  467. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  468. end
  469. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  470. if TYPE == "Block" then
  471. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  472. else
  473. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  474. end
  475. if MOVEDIRECTION ~= nil then
  476. local ORI = EFFECT.Orientation
  477. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  478. EFFECT.Orientation = ORI
  479. end
  480. end
  481. if PLAYSSOUND == false then
  482. EFFECT:remove()
  483. else
  484. SOUND.Stopped:Connect(function()
  485. EFFECT:remove()
  486. end)
  487. end
  488. else
  489. if PLAYSSOUND == false then
  490. EFFECT:remove()
  491. else
  492. repeat Swait() until SOUND.Playing == false
  493. EFFECT:remove()
  494. end
  495. end
  496. end))
  497. end
  498.  
  499. function MakeForm(PART,TYPE)
  500. if TYPE == "Cyl" then
  501. local MSH = IT("CylinderMesh",PART)
  502. elseif TYPE == "Ball" then
  503. local MSH = IT("SpecialMesh",PART)
  504. MSH.MeshType = "Sphere"
  505. elseif TYPE == "Wedge" then
  506. local MSH = IT("SpecialMesh",PART)
  507. MSH.MeshType = "Wedge"
  508. end
  509. end
  510.  
  511. function SpawnTrail(FROM,TO,BIG)
  512. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  513. MakeForm(TRAIL,"Cyl")
  514. local DIST = (FROM - TO).Magnitude
  515. if BIG == true then
  516. TRAIL.Size = VT(0.5,DIST,0.5)
  517. else
  518. TRAIL.Size = VT(0.25,DIST,0.25)
  519. end
  520. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  521. coroutine.resume(coroutine.create(function()
  522. for i = 1, 5 do
  523. Swait()
  524. TRAIL.Transparency = TRAIL.Transparency + 0.1
  525. end
  526. TRAIL:remove()
  527. end))
  528. end
  529.  
  530. Debris = game:GetService("Debris")
  531.  
  532. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  533. local DIRECTION = CF(StartPos,EndPos).lookVector
  534. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  535. end
  536.  
  537. function turnto(position)
  538. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  539. end
  540.  
  541.  
  542. local Weapon = IT("Model")
  543. Weapon.Name = "Adds"
  544.  
  545. local Particle = IT("ParticleEmitter",nil)
  546. Particle.Enabled = false
  547. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  548. Particle.LightEmission = 0.5
  549. Particle.Rate = 150
  550. Particle.ZOffset = 0.2
  551. Particle.Rotation = NumberRange.new(-180, 180)
  552. Particle.RotSpeed = NumberRange.new(-180, 180)
  553. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  554. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  555.  
  556. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  557. function ParticleEmitter(Table)
  558. local PRTCL = Particle:Clone()
  559. local Speed = Table.Speed or 5
  560. local Drag = Table.Drag or 0
  561. local Size1 = Table.Size1 or 1
  562. local Size2 = Table.Size2 or 5
  563. local Lifetime1 = Table.Lifetime1 or 1
  564. local Lifetime2 = Table.Lifetime2 or 1.5
  565. local Parent = Table.Parent or Torso
  566. local Emit = Table.Emit or 100
  567. local Offset = Table.Offset or 360
  568. local Acel = Table.Acel or VT(0,0,0)
  569. local Enabled = Table.Enabled or false
  570. PRTCL.Parent = Parent
  571. PRTCL.Size = NumberSequence.new(Size1,Size2)
  572. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  573. PRTCL.Speed = NumberRange.new(Speed)
  574. PRTCL.VelocitySpread = Offset
  575. PRTCL.Drag = Drag
  576. PRTCL.Acceleration = Acel
  577. if Enabled == false then
  578. PRTCL:Emit(Emit)
  579. Debris:AddItem(PRTCL,Lifetime2)
  580. else
  581. PRTCL.Enabled = true
  582. end
  583. return PRTCL
  584. end
  585.  
  586. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.2,0.6,0.2),false)
  587. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  588. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.2,0.5,0.2),false)
  589. MakeForm(Part,"Wedge")
  590. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  591. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.2,0.3,0.2),false)
  592. MakeForm(Part,"Wedge")
  593. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  594. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.3,0.3,0.3),false)
  595. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  596. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.3,0.5,0.5),false)
  597. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  598. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.4,0.4,0.4),false)
  599. MakeForm(Part,"Cyl")
  600. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  601. for i = 1, 8 do
  602. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Eye", VT(0,0.35,0.41),false)
  603. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  604. end
  605. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Eye", VT(0.38,0.41,0.38),false)
  606. MakeForm(Part,"Cyl")
  607. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  608. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.37,0.5,0.37),false)
  609. MakeForm(Part,"Ball")
  610. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  611. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.2,0.7,0.4),false)
  612. MakeForm(Part,"Wedge")
  613. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  614. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.3,0.4,0.2),false)
  615. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  616. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.35,0.35,0.35),false)
  617. MakeForm(Part,"Cyl")
  618. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  619. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.5,0.1,0.5),false)
  620. MakeForm(Part,"Cyl")
  621. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  622. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.5,0.1,0.45),false)
  623. MakeForm(Part,"Cyl")
  624. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  625. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.2,0.5,0.2),false)
  626. MakeForm(Part,"Wedge")
  627. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  628. local LASTPART = Handle
  629. for i = 1, 10 do
  630. if LASTPART == Handle then
  631. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.1,0.2,0),false)
  632. LASTPART = Part
  633. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  634. else
  635. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.1,0.05,0),false)
  636. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  637. LASTPART = Part
  638. end
  639. end
  640.  
  641. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.15,2,0.15),false)
  642. MakeForm(Barrel,"Cyl")
  643. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  644. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0.25,1,0.25),false)
  645. MakeForm(Part,"Cyl")
  646. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  647. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0,0.1,0.2),false)
  648. MakeForm(Part,"Wedge")
  649. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  650. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Eye", VT(0.125,0,0.125),false)
  651. MakeForm(Hole,"Cyl")
  652. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  653. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Black", "Part", VT(0,0,0),false)
  654. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  655. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  656. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Black", "Eye", VT(0,0,0),false)
  657. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  658. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  659. coroutine.resume(coroutine.create(function()
  660. while wait() do
  661. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  662. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  663. end
  664. end))
  665.  
  666. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  667. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  668.  
  669. for _, c in pairs(Weapon:GetDescendants()) do
  670. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  671. c.Material = "Glass"
  672. c.Color = C3(0,0,0)
  673. elseif c.ClassName == "Part" and c.Name == "Eye" then
  674. c.Color = C3(1,0,0)
  675. c.Material = "Neon"
  676. end
  677. end
  678.  
  679. Weapon.Parent = Character
  680. for _, c in pairs(Weapon:GetChildren()) do
  681. if c.ClassName == "Part" then
  682. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  683. end
  684. end
  685.  
  686. local SKILLTEXTCOLOR = C3(1,0,0)
  687. local SKILLFONT = "Antique"
  688. local SKILLTEXTSIZE = 7
  689.  
  690. Humanoid.Died:connect(function()
  691. ATTACK = true
  692. end)
  693.  
  694. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  695. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  696. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  697. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  698. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  699. ]]
  700. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  701. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  702. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  703. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  704. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  705. ]]
  706.  
  707. function equipped()
  708. for i,v in pairs(Weapon:GetDescendants()) do
  709. if v:IsA("BasePart") then
  710. v.Transparency = 0
  711. elseif v:IsA("ParticleEmitter") then
  712. v.Enabled = true
  713. end
  714. end
  715. end
  716.  
  717. function unequipped()
  718. for i,v in pairs(Weapon:GetDescendants()) do
  719. if v:IsA("BasePart") then
  720. v.Transparency = 1
  721. elseif v:IsA("ParticleEmitter") then
  722. v.Enabled = false
  723. end
  724. end
  725. end
  726.  
  727. unequipped()
  728.  
  729. function chatgui(msg)
  730. spawn(function()
  731. local mainPart = owner.Character.Head
  732. local bg = Instance.new("BillboardGui", mainPart)
  733. bg.Adornee = mainPart
  734. bg.Name = "CHATGUIBG"
  735. bg.Size = UDim2.new(4, 0, 2.5, 0)
  736. bg.StudsOffset = Vector3.new(-4, 2, 0)
  737. local bg2 = Instance.new("BillboardGui", mainPart)
  738. bg2.Adornee = mainPart
  739. bg2.Name = "CHATGUIBG2"
  740. bg2.Size = UDim2.new(4, 0, 2.5, 0)
  741. bg2.StudsOffset = Vector3.new(-4, 4.5, 0)
  742. local text = Instance.new("TextLabel", bg)
  743. text.Size = UDim2.new(3, 0, 0.5, 0)
  744. text.FontSize = "Size18"
  745. text.TextScaled = true
  746. text.TextTransparency = 0
  747. text.BackgroundTransparency = 1
  748. text.TextTransparency = 0
  749. text.TextStrokeTransparency = 0
  750. text.Font = "Arial"
  751. text.TextColor3 = Color3.new(0, 168, 255)
  752. text.Text = " "
  753. local Message = msg:gsub("","\5")
  754. text.Text = ""
  755. wait()
  756. local e=1
  757. for i=1, string.len(msg) do
  758. text.Text = string.sub(msg,1,e)
  759. chatfx.TimePosition = 0
  760. chatfx:Play()
  761. e=e+1
  762. wait(0.05)
  763. end
  764. for i=text.TextTransparency,1,0.02 do
  765. wait()
  766. text.TextTransparency = i
  767. text.TextStrokeTransparency = i
  768. end
  769. coroutine.resume(coroutine.create(function()
  770. for i = 0, 5, 0.05 do
  771. if bg ~= nil then
  772. if bg2 ~= nil then
  773. wait()
  774. bg2.StudsOffset = bg2.StudsOffset + Vector3.new(0, 0.05, 0)
  775. end
  776. bg.StudsOffset = bg.StudsOffset + Vector3.new(0, 0.05, 0)
  777. end
  778. end
  779. end))
  780. if bg == nil then return end
  781. bg:Destroy()
  782. if bg2 == nil then return end
  783. bg2:Destroy()
  784. local e = 1
  785. end)
  786. end
  787.  
  788. chatgui("Impostor / Script by n4t | i iDk :)")
  789.  
  790. function bonify(model)
  791. pcall(function()
  792. model["Left Arm"]:Destroy()
  793. model["Right Arm"]:Destroy()
  794. model.Head.Mesh.Scale = Vector3.new(0.25,0.25,0.25)
  795. model.Head.Mesh.MeshId = "rbxassetid://5738272940"
  796. model.Head.Mesh.TextureId = "rbxassetid://0"
  797. model.Head.face:Destroy()
  798. model.Head.Color = Color3.new(0,0,0)
  799. model.Humanoid.PlatformStand=true
  800. model.Torso.Orientation = Vector3.new(90,0,0)
  801. for i,v in pairs(model:GetChildren()) do
  802. if v:IsA("Accessory") then
  803. v:Destroy()
  804. end
  805. end
  806. end)
  807. end
  808.  
  809. function invisible()
  810. for i,v in pairs(Character:GetDescendants()) do
  811. if v:IsA("BasePart") then
  812. v.Transparency = 1
  813. end
  814. end
  815. end
  816.  
  817. function visible()
  818. for i,v in pairs(Character:GetDescendants()) do
  819. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(Weapon) then
  820. v.Transparency = 0
  821. end
  822. end
  823. --unequipped()
  824. end
  825.  
  826. mouse.KeyDown:Connect(function(k)
  827. k=string.lower(k)
  828. if k == "v" and action == "none" then
  829. ventfx.TimePosition = 0
  830. ventfx:Play()
  831. action = "venting"
  832. Character.Humanoid.WalkSpeed = 0
  833. lerp(R,defR*CFrame.new(0, 0, 1.5))
  834. lerp(LH,defLH*CFrame.new(-0.75, 0.5, 0) * CFrame.Angles(0, 0, math.rad(30.08)))
  835. lerp(RH,defRH*CFrame.new(0.75, 0.5, 0) * CFrame.Angles(0, 0, math.rad(-30.08)))
  836. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  837. wait()
  838. end
  839. lerp(R,defR*CFrame.new(0, 0, -2))
  840. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  841. wait()
  842. end
  843. invisible()
  844. returntonormal()
  845. action = "vented"
  846. Character.Humanoid.WalkSpeed = 16
  847. else
  848. if k == "v" then
  849. ventfx.TimePosition = 0
  850. ventfx:Play()
  851. action = "venting"
  852. Character.Humanoid.WalkSpeed = 0
  853. visible()
  854. lerp(R,defR*CFrame.new(0, 0, 1.5))
  855. lerp(LH,defLH*CFrame.new(-0.75, 0.5, 0) * CFrame.Angles(0, 0, math.rad(30.08)))
  856. lerp(RH,defRH*CFrame.new(0.75, 0.5, 0) * CFrame.Angles(0, 0, math.rad(-30.08)))
  857. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  858. wait()
  859. end
  860. returntonormal()
  861. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  862. wait()
  863. end
  864. action = "none"
  865. Character.Humanoid.WalkSpeed = 16
  866. end
  867. end
  868. if k == "k" and action == "none" then
  869. local type = math.random(1,2)
  870. if type == 1 then
  871. action = "killing"
  872. local target = mouse.Target.Parent
  873. if target:IsA("Accessory") then
  874. target = target.Parent
  875. end
  876. equipped()
  877. Character.Humanoid.WalkSpeed = 0
  878. deathfx.TimePosition = 0
  879. deathfx:Play()
  880. lerp(RS,defRS*CFrame.Angles(0, 0, math.rad(90.012)))
  881. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  882. wait()
  883. end
  884. lerp(RS,defRS*CFrame.Angles(0, 0, math.rad(119.977)))
  885. gunfx.TimePosition = 0
  886. gunfx:Play()
  887. bonify(target)
  888. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  889. wait()
  890. end
  891. lerp(RS,defRS*CFrame.Angles(0, 0, math.rad(90.012)))
  892. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  893. wait()
  894. end
  895. returntonormal()
  896. unequipped()
  897. Character.Humanoid.WalkSpeed = 16
  898. action = "none"
  899. end
  900. if type == 2 then
  901. action = "killing"
  902. Tool0 = Instance.new("Tool")
  903. Part1 = Instance.new("Part")
  904. SpecialMesh2 = Instance.new("SpecialMesh")
  905. Tool0.Name = "kinfe"
  906. Tool0.Parent = Player.Backpack
  907. Tool0.TextureId = "http://www.roblox.com/asset?id=128720392"
  908. Tool0.Grip = CFrame.new(0, -1, -0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  909. Tool0.GripPos = Vector3.new(0, -1, -0.100000001)
  910. Tool0.GripForward = Vector3.new(0, 0, -1)
  911. Part1.Name = "Handle"
  912. Part1.Parent = Tool0
  913. Part1.CFrame = CFrame.new(-22.9590473, 4.4707346, -30.9761734, 0.840411007, -0.0112451985, 0.541831374, -1.447962e-14, 0.999784648, 0.0207495857, -0.54194802, -0.0174381826, 0.840230167)
  914. Part1.Orientation = Vector3.new(-1.19000006, 32.8199997, 0)
  915. Part1.Position = Vector3.new(-22.9590473, 4.4707346, -30.9761734)
  916. Part1.Rotation = Vector3.new(-1.40999997, 32.8100014, 0.769999981)
  917. Part1.Size = Vector3.new(0.400000006, 3, 0.699999988)
  918. Part1.BottomSurface = Enum.SurfaceType.Smooth
  919. Part1.Locked = true
  920. Part1.TopSurface = Enum.SurfaceType.Smooth
  921. Part1.FormFactor = Enum.FormFactor.Custom
  922. Part1.formFactor = Enum.FormFactor.Custom
  923. SpecialMesh2.Parent = Part1
  924. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=121944778"
  925. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=121944805"
  926. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  927. SpecialMesh2 = Instance.new("SpecialMesh")
  928. Tool0.Parent = Character
  929. local target = mouse.Target.Parent
  930. if target:IsA("Accessory") then
  931. target = target.Parent
  932. end
  933. Character.Humanoid.WalkSpeed = 0
  934. deathfx.TimePosition = 0
  935. deathfx:Play()
  936. lerp(RS,defRS*CFrame.Angles(0, 0, math.rad(59.989)))
  937. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  938. wait()
  939. end
  940. lerp(RS,defRS*CFrame.Angles(0, 0, math.rad(14.954)))
  941. stabfx.TimePosition = 0
  942. stabfx:Play()
  943. bonify(target)
  944. for i = 0,1,0.1 do --// You can also use for i = 0,1,0.1 too!
  945. wait()
  946. end
  947. returntonormal()
  948. Character.Humanoid.WalkSpeed = 16
  949. action = "none"
  950. Tool0:Destroy()
  951. end
  952. end
  953. end)
  954.  
  955. Player.Chatted:Connect(function(q)
  956. chatgui(q)
  957. end)
  958.  
  959. repeat wait() until Character.Humanoid.Health == 0
  960. chatgui(Player.Name.." was the Impostor.")
Add Comment
Please, Sign In to add comment