Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. do
  5. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57. end
  58. end)
  59. Event.Parent = NLS([==[
  60. local Player = game:GetService("Players").LocalPlayer
  61. local Event = script:WaitForChild("UserInput_Event")
  62.  
  63. local UIS = game:GetService("UserInputService")
  64. local input = function(io,a)
  65. if a then return end
  66. --Since InputObject is a client-side instance, we create and pass table instead
  67. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68. end
  69. UIS.InputBegan:Connect(input)
  70. UIS.InputEnded:Connect(input)
  71.  
  72. local Mouse = Player:GetMouse()
  73. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84. --//====================================================\\--
  85. --|| Fe edit by jonathanlloyd1
  86. --\\====================================================//--
  87.  
  88. wait(1/60)
  89. Effects = { }
  90.  
  91. Player = owner
  92. Character = Player.Character
  93. local txt = Instance.new("BillboardGui", Character)
  94. txt.Adornee = Character.Head
  95. txt.Name = "_status"
  96. txt.Size = UDim2.new(2, 0, 1.2, 0)
  97. txt.StudsOffset = Vector3.new(-9, 8, 0)
  98. local text = Instance.new("TextLabel", txt)
  99. text.Size = UDim2.new(10, 0, 7, 0)
  100. text.FontSize = "Size24"
  101. text.TextScaled = true
  102. text.TextTransparency = 0
  103. text.BackgroundTransparency = 10
  104. text.TextTransparency = 0
  105. text.TextStrokeTransparency = 0
  106. text.Font = "Antique"
  107. text.TextStrokeColor3 = Color3.new(0,0,255)
  108. text.Text = "Content Warden"
  109.  
  110. Player = owner
  111. PlayerGui = Player.PlayerGui
  112. Cam = workspace.CurrentCamera
  113. Backpack = Player.Backpack
  114. Character = Player.Character
  115. Humanoid = Character.Humanoid
  116. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  117. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  118. do
  119. print("FE Compatibility code by Mokiros")
  120. script.Parent = Player.Character
  121.  
  122. --RemoteEvent for communicating
  123. local Event = Instance.new("RemoteEvent")
  124. Event.Name = "UserInput_Event"
  125.  
  126. --Fake event to make stuff like Mouse.KeyDown work
  127. local function fakeEvent()
  128. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  129. t.connect = t.Connect
  130. return t
  131. end
  132.  
  133. --Creating fake input objects with fake variables
  134. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  135. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  136. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  137. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  138. end}
  139. --Merged 2 functions into one by checking amount of arguments
  140. CAS.UnbindAction = CAS.BindAction
  141.  
  142. --This function will trigger the events that have been :Connect()'ed
  143. local function te(self,ev,...)
  144. local t = m[ev]
  145. if t and t._fakeEvent and t.Function then
  146. t.Function(...)
  147. end
  148. end
  149. m.TrigEvent = te
  150. UIS.TrigEvent = te
  151.  
  152. Event.OnServerEvent:Connect(function(plr,io)
  153. if plr~=Player then return end
  154. if io.isMouse then
  155. m.Target = io.Target
  156. m.Hit = io.Hit
  157. else
  158. local b = io.UserInputState == Enum.UserInputState.Begin
  159. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  160. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  161. end
  162. for _,t in pairs(CAS.Actions) do
  163. for _,k in pairs(t.Keys) do
  164. if k==io.KeyCode then
  165. t.Function(t.Name,io.UserInputState,io)
  166. end
  167. end
  168. end
  169. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  170. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  171. end
  172. end)
  173. Event.Parent = NLS([==[
  174. local Player = game:GetService("Players").LocalPlayer
  175. local Event = script:WaitForChild("UserInput_Event")
  176.  
  177. local UIS = game:GetService("UserInputService")
  178. local input = function(io,a)
  179. if a then return end
  180. --Since InputObject is a client-side instance, we create and pass table instead
  181. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  182. end
  183. UIS.InputBegan:Connect(input)
  184. UIS.InputEnded:Connect(input)
  185.  
  186. local Mouse = Player:GetMouse()
  187. local h,t
  188. --Give the server mouse data 30 times every second, but only if the values changed
  189. --If player is not moving their mouse, client won't fire events
  190. while wait(1/30) do
  191. if h~=Mouse.Hit or t~=Mouse.Target then
  192. h,t=Mouse.Hit,Mouse.Target
  193. Event:FireServer({isMouse=true,Target=t,Hit=h})
  194. end
  195. end]==],Player.Character)
  196. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  197. end
  198. RootPart = Character["HumanoidRootPart"]
  199. Torso = Character["Torso"]
  200. Head = Character["Head"]
  201. RightArm = Character["Right Arm"]
  202. LeftArm = Character["Left Arm"]
  203. RightLeg = Character["Right Leg"]
  204. LeftLeg = Character["Left Leg"]
  205. RootJoint = RootPart["RootJoint"]
  206. Neck = Torso["Neck"]
  207. RightShoulder = Torso["Right Shoulder"]
  208. LeftShoulder = Torso["Left Shoulder"]
  209. RightHip = Torso["Right Hip"]
  210. LeftHip = Torso["Left Hip"]
  211.  
  212. IT = Instance.new
  213. CF = CFrame.new
  214. VT = Vector3.new
  215. RAD = math.rad
  216. C3 = Color3.new
  217. UD2 = UDim2.new
  218. BRICKC = BrickColor.new
  219. ANGLES = CFrame.Angles
  220. EULER = CFrame.fromEulerAnglesXYZ
  221. COS = math.cos
  222. ACOS = math.acos
  223. SIN = math.sin
  224. ASIN = math.asin
  225. ABS = math.abs
  226. MRANDOM = math.random
  227. FLOOR = math.floor
  228.  
  229. --//=================================\\
  230. --|| USEFUL VALUES
  231. --\\=================================//
  232.  
  233. Animation_Speed = 3
  234. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  235. local Speed = 25
  236. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  237. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  238. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  239. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  240. local DAMAGEMULTIPLIER = 1
  241. local ANIM = "Idle"
  242. local ATTACK = false
  243. local EQUIPPED = false
  244. local HOLD = false
  245. local COMBO = 1
  246. local Rooted = false
  247. local SINE = 0
  248. local KEYHOLD = false
  249. local CHANGE = 2 / Animation_Speed
  250. local WALKINGANIM = false
  251. local VALUE1 = false
  252. local VALUE2 = false
  253. local ROBLOXIDLEANIMATION = IT("Animation")
  254. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  255. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  256. --ROBLOXIDLEANIMATION.Parent = Humanoid
  257. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  258. WEAPONGUI.Name = "Weapon GUI"
  259. local Effects = IT("Folder", Character)
  260. Effects.Name = "Effects"
  261. local ANIMATOR = Humanoid.Animator
  262. local ANIMATE = Character.Animate
  263. local UNANCHOR = true
  264. local PLAYMAINANIM = true
  265. local BOLTSOUNDS = {168586621,168586586,178452241}
  266.  
  267. --//=================================\\
  268. --\\=================================//
  269.  
  270.  
  271. --//=================================\\
  272. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  273. --\\=================================//
  274.  
  275. ArtificialHB = Instance.new("BindableEvent", script)
  276. ArtificialHB.Name = "ArtificialHB"
  277.  
  278. script:WaitForChild("ArtificialHB")
  279.  
  280. frame = Frame_Speed
  281. tf = 0
  282. allowframeloss = false
  283. tossremainder = false
  284. lastframe = tick()
  285. script.ArtificialHB:Fire()
  286.  
  287. game:GetService("RunService").Heartbeat:connect(function(s, p)
  288. tf = tf + s
  289. if tf >= frame then
  290. if allowframeloss then
  291. script.ArtificialHB:Fire()
  292. lastframe = tick()
  293. else
  294. for i = 1, math.floor(tf / frame) do
  295. script.ArtificialHB:Fire()
  296. end
  297. lastframe = tick()
  298. end
  299. if tossremainder then
  300. tf = 0
  301. else
  302. tf = tf - frame * math.floor(tf / frame)
  303. end
  304. end
  305. end)
  306.  
  307. --//=================================\\
  308. --\\=================================//
  309.  
  310. --//=================================\\
  311. --|| SOME FUNCTIONS
  312. --\\=================================//
  313.  
  314. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  315. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  316. end
  317.  
  318. function PositiveAngle(NUMBER)
  319. if NUMBER >= 0 then
  320. NUMBER = 0
  321. end
  322. return NUMBER
  323. end
  324.  
  325. function NegativeAngle(NUMBER)
  326. if NUMBER <= 0 then
  327. NUMBER = 0
  328. end
  329. return NUMBER
  330. end
  331.  
  332. function Swait(NUMBER)
  333. if NUMBER == 0 or NUMBER == nil then
  334. ArtificialHB.Event:wait()
  335. else
  336. for i = 1, NUMBER do
  337. ArtificialHB.Event:wait()
  338. end
  339. end
  340. end
  341.  
  342. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  343. local NEWMESH = IT(MESH)
  344. if MESH == "SpecialMesh" then
  345. NEWMESH.MeshType = MESHTYPE
  346. if MESHID ~= "nil" and MESHID ~= "" then
  347. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  348. end
  349. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  350. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  351. end
  352. end
  353. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  354. NEWMESH.Scale = SCALE
  355. NEWMESH.Parent = PARENT
  356. return NEWMESH
  357. end
  358.  
  359. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  360. local NEWPART = IT("Part")
  361. NEWPART.formFactor = FORMFACTOR
  362. NEWPART.Reflectance = REFLECTANCE
  363. NEWPART.Transparency = TRANSPARENCY
  364. NEWPART.CanCollide = false
  365. NEWPART.Locked = true
  366. NEWPART.Anchored = true
  367. if ANCHOR == false then
  368. NEWPART.Anchored = false
  369. end
  370. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  371. NEWPART.Name = NAME
  372. NEWPART.Size = SIZE
  373. NEWPART.Position = Torso.Position
  374. NEWPART.Material = MATERIAL
  375. NEWPART:BreakJoints()
  376. NEWPART.Parent = PARENT
  377. return NEWPART
  378. end
  379.  
  380. local function weldBetween(a, b)
  381. local weldd = Instance.new("ManualWeld")
  382. weldd.Part0 = a
  383. weldd.Part1 = b
  384. weldd.C0 = CFrame.new()
  385. weldd.C1 = b.CFrame:inverse() * a.CFrame
  386. weldd.Parent = a
  387. return weldd
  388. end
  389.  
  390.  
  391. function QuaternionFromCFrame(cf)
  392. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  393. local trace = m00 + m11 + m22
  394. if trace > 0 then
  395. local s = math.sqrt(1 + trace)
  396. local recip = 0.5 / s
  397. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  398. else
  399. local i = 0
  400. if m11 > m00 then
  401. i = 1
  402. end
  403. if m22 > (i == 0 and m00 or m11) then
  404. i = 2
  405. end
  406. if i == 0 then
  407. local s = math.sqrt(m00 - m11 - m22 + 1)
  408. local recip = 0.5 / s
  409. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  410. elseif i == 1 then
  411. local s = math.sqrt(m11 - m22 - m00 + 1)
  412. local recip = 0.5 / s
  413. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  414. elseif i == 2 then
  415. local s = math.sqrt(m22 - m00 - m11 + 1)
  416. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  417. end
  418. end
  419. end
  420.  
  421. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  422. local xs, ys, zs = x + x, y + y, z + z
  423. local wx, wy, wz = w * xs, w * ys, w * zs
  424. local xx = x * xs
  425. local xy = x * ys
  426. local xz = x * zs
  427. local yy = y * ys
  428. local yz = y * zs
  429. local zz = z * zs
  430. 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))
  431. end
  432.  
  433. function QuaternionSlerp(a, b, t)
  434. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  435. local startInterp, finishInterp;
  436. if cosTheta >= 0.0001 then
  437. if (1 - cosTheta) > 0.0001 then
  438. local theta = ACOS(cosTheta)
  439. local invSinTheta = 1 / SIN(theta)
  440. startInterp = SIN((1 - t) * theta) * invSinTheta
  441. finishInterp = SIN(t * theta) * invSinTheta
  442. else
  443. startInterp = 1 - t
  444. finishInterp = t
  445. end
  446. else
  447. if (1 + cosTheta) > 0.0001 then
  448. local theta = ACOS(-cosTheta)
  449. local invSinTheta = 1 / SIN(theta)
  450. startInterp = SIN((t - 1) * theta) * invSinTheta
  451. finishInterp = SIN(t * theta) * invSinTheta
  452. else
  453. startInterp = t - 1
  454. finishInterp = t
  455. end
  456. end
  457. 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
  458. end
  459.  
  460. function Clerp(a, b, t)
  461. local qa = {QuaternionFromCFrame(a)}
  462. local qb = {QuaternionFromCFrame(b)}
  463. local ax, ay, az = a.x, a.y, a.z
  464. local bx, by, bz = b.x, b.y, b.z
  465. local _t = 1 - t
  466. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  467. end
  468.  
  469. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  470. local frame = IT("Frame")
  471. frame.BackgroundTransparency = TRANSPARENCY
  472. frame.BorderSizePixel = BORDERSIZEPIXEL
  473. frame.Position = POSITION
  474. frame.Size = SIZE
  475. frame.BackgroundColor3 = COLOR
  476. frame.BorderColor3 = BORDERCOLOR
  477. frame.Name = NAME
  478. frame.Parent = PARENT
  479. return frame
  480. end
  481.  
  482. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  483. local label = IT("TextLabel")
  484. label.BackgroundTransparency = 1
  485. label.Size = UD2(1, 0, 1, 0)
  486. label.Position = UD2(0, 0, 0, 0)
  487. label.TextColor3 = TEXTCOLOR
  488. label.TextStrokeTransparency = STROKETRANSPARENCY
  489. label.TextTransparency = TRANSPARENCY
  490. label.FontSize = TEXTFONTSIZE
  491. label.Font = TEXTFONT
  492. label.BorderSizePixel = BORDERSIZEPIXEL
  493. label.TextScaled = false
  494. label.Text = TEXT
  495. label.Name = NAME
  496. label.Parent = PARENT
  497. return label
  498. end
  499.  
  500. function NoOutlines(PART)
  501. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  502. end
  503.  
  504. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  505. local NEWWELD = IT(TYPE)
  506. NEWWELD.Part0 = PART0
  507. NEWWELD.Part1 = PART1
  508. NEWWELD.C0 = C0
  509. NEWWELD.C1 = C1
  510. NEWWELD.Parent = PARENT
  511. return NEWWELD
  512. end
  513.  
  514. local S = IT("Sound")
  515. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  516. local NEWSOUND = nil
  517. coroutine.resume(coroutine.create(function()
  518. NEWSOUND = S:Clone()
  519. NEWSOUND.Parent = PARENT
  520. NEWSOUND.Volume = VOLUME
  521. NEWSOUND.Pitch = PITCH
  522. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  523. NEWSOUND:play()
  524. if DOESLOOP == true then
  525. NEWSOUND.Looped = true
  526. else
  527. repeat wait(1) until NEWSOUND.Playing == false
  528. NEWSOUND:remove()
  529. end
  530. end))
  531. return NEWSOUND
  532. end
  533.  
  534. local EyeSizes={
  535. NumberSequenceKeypoint.new(0,2,0),
  536. NumberSequenceKeypoint.new(1,0,0)
  537. }
  538. local EyeTrans={
  539. NumberSequenceKeypoint.new(0,0.5,0),
  540. NumberSequenceKeypoint.new(1,1,0)
  541. }
  542. local PE=Instance.new("ParticleEmitter",nil)
  543. PE.LightEmission=.8
  544. PE.Color = ColorSequence.new(BRICKC("Really blue").Color,BRICKC("Really blue").Color)
  545. PE.Size=NumberSequence.new(EyeSizes)
  546. PE.Transparency=NumberSequence.new(EyeTrans)
  547. PE.Lifetime=NumberRange.new(0.35,1)
  548. PE.Rotation=NumberRange.new(0,360)
  549. PE.Rate=100
  550. PE.VelocitySpread = 10000
  551. PE.Acceleration = Vector3.new(0,85,0)
  552. PE.Drag = 5
  553. PE.Speed = NumberRange.new(0.1,5)
  554. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  555. PE.ZOffset = 0.5
  556. PE.Name = "PE"
  557. PE.Enabled = false
  558.  
  559. function Fire(art)
  560. local PARTICLES = PE:Clone()
  561. PARTICLES.Parent = art
  562. PARTICLES.Enabled = true
  563. return PARTICLES
  564. end
  565.  
  566. function CFrameFromTopBack(at, top, back)
  567. local right = top:Cross(back)
  568. 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)
  569. end
  570.  
  571. --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})
  572. function WACKYEFFECT(Table)
  573. local TYPE = (Table.EffectType or "Sphere")
  574. local SIZE = (Table.Size or VT(1,1,1))
  575. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  576. local TRANSPARENCY = (Table.Transparency or 0)
  577. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  578. local CFRAME = (Table.CFrame or Torso.CFrame)
  579. local MOVEDIRECTION = (Table.MoveToPos or nil)
  580. local ROTATION1 = (Table.RotationX or 0)
  581. local ROTATION2 = (Table.RotationY or 0)
  582. local ROTATION3 = (Table.RotationZ or 0)
  583. local MATERIAL = (Table.Material or "Neon")
  584. local COLOR = (Table.Color or C3(1,1,1))
  585. local TIME = (Table.Time or 45)
  586. local SOUNDID = (Table.SoundID or nil)
  587. local SOUNDPITCH = (Table.SoundPitch or nil)
  588. local SOUNDVOLUME = (Table.SoundVolume or nil)
  589. coroutine.resume(coroutine.create(function()
  590. local PLAYSSOUND = false
  591. local SOUND = nil
  592. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really blue"), "Effect", VT(1,1,1), true)
  593. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  594. PLAYSSOUND = true
  595. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  596. end
  597. EFFECT.Color = COLOR
  598. local MSH = nil
  599. if TYPE == "Sphere" then
  600. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  601. elseif TYPE == "Block" or TYPE == "Box" then
  602. MSH = IT("BlockMesh",EFFECT)
  603. MSH.Scale = SIZE
  604. elseif TYPE == "Wave" then
  605. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  606. elseif TYPE == "Ring" then
  607. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  608. elseif TYPE == "Slash" then
  609. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  610. elseif TYPE == "Round Slash" then
  611. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  612. elseif TYPE == "Swirl" then
  613. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  614. elseif TYPE == "Skull" then
  615. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  616. elseif TYPE == "Crystal" then
  617. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  618. end
  619. if MSH ~= nil then
  620. local MOVESPEED = nil
  621. if MOVEDIRECTION ~= nil then
  622. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  623. end
  624. local GROWTH = SIZE - ENDSIZE
  625. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  626. if TYPE == "Block" then
  627. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  628. else
  629. EFFECT.CFrame = CFRAME
  630. end
  631. for LOOP = 1, TIME+1 do
  632. Swait()
  633. MSH.Scale = MSH.Scale - GROWTH/TIME
  634. if TYPE == "Wave" then
  635. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  636. end
  637. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  638. if TYPE == "Block" then
  639. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  640. else
  641. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  642. end
  643. if MOVEDIRECTION ~= nil then
  644. local ORI = EFFECT.Orientation
  645. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  646. EFFECT.Orientation = ORI
  647. end
  648. end
  649. if PLAYSSOUND == false then
  650. EFFECT:remove()
  651. else
  652. repeat wait(1) until SOUND.Playing == false
  653. EFFECT:remove()
  654. end
  655. else
  656. if PLAYSSOUND == false then
  657. EFFECT:remove()
  658. else
  659. repeat Swait() until SOUND.Playing == false
  660. EFFECT:remove()
  661. end
  662. end
  663. end))
  664. end
  665.  
  666. function MakeForm(PART,TYPE)
  667. if TYPE == "Cyl" then
  668. local MSH = IT("CylinderMesh",PART)
  669. elseif TYPE == "Ball" then
  670. local MSH = IT("SpecialMesh",PART)
  671. MSH.MeshType = "Sphere"
  672. elseif TYPE == "Wedge" then
  673. local MSH = IT("SpecialMesh",PART)
  674. MSH.MeshType = "Wedge"
  675. end
  676. end
  677.  
  678. Debris = game:GetService("Debris")
  679.  
  680. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  681. local DIRECTION = CF(StartPos,EndPos).lookVector
  682. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  683. end
  684.  
  685. local HATWELD = nil
  686. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  687. PLAYMAINANIM = false
  688. if WhichPose == "Cast1" then
  689. for i=0, Time, 0.1 / Animation_Speed do
  690. Swait()
  691. if Magic == true then
  692. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  693. end
  694. if Gyro ~= nil and Gyro ~= false then
  695. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  696. end
  697. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  698. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  699. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  700. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  701. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  702. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  703. end
  704. elseif WhichPose == "Cast2" then
  705. for i=0, Time, 0.1 / Animation_Speed do
  706. Swait()
  707. if Magic == true then
  708. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  709. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  710. end
  711. if Gyro ~= nil and Gyro ~= false then
  712. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  713. end
  714. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  715. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  716. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  717. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  718. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  719. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  720. end
  721. elseif WhichPose == "RightArmUp" then
  722. for i=0, Time, 0.1 / Animation_Speed do
  723. Swait()
  724. if Magic == true then
  725. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  726. end
  727. if Gyro ~= nil and Gyro ~= false then
  728. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  729. end
  730. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  731. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  732. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  733. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  734. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  735. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  736. end
  737. elseif WhichPose == "Taunt" then
  738. for i=0, Time, 0.1 / Animation_Speed do
  739. Swait()
  740. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  741. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  742. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  743. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  744. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  745. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  746. end
  747. HATWELD.Part0 = RightArm
  748. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  749. CreateSound(221057812,Torso,10,1,false)
  750. for i=0, Time*2, 0.1 / Animation_Speed do
  751. Swait()
  752. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  753. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  754. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  755. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  756. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  757. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  758. end
  759. for i=0, Time, 0.1 / Animation_Speed do
  760. Swait()
  761. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  762. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  763. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  764. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  765. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  766. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  767. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  768. end
  769. HATWELD.Part0 = Head
  770. HATWELD.C0 = CF(0,0.35,0)
  771. elseif WhichPose == "Prepare key" then
  772. for i=0, Time, 0.1 / Animation_Speed do
  773. Swait()
  774. if Gyro ~= nil and Gyro ~= false then
  775. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  776. end
  777. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  778. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  779. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  780. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  781. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  782. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  783. end
  784. elseif WhichPose == "Turn key" then
  785. for i=0, Time, 0.1 / Animation_Speed do
  786. Swait()
  787. if Gyro ~= nil and Gyro ~= false then
  788. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  789. end
  790. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  791. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  792. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  793. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  794. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  795. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  796. end
  797. end
  798. PLAYMAINANIM = true
  799. end
  800.  
  801. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  802. function Lightning(Table)
  803. local Color = Table.Color or C3(1,1,1)
  804. local StartPos = Table.Start or Torso.Position
  805. local EndPos = Table.End or Mouse.Hit.p
  806. local SegmentLength = Table.SegmentL or 2
  807. local Thickness = Table.Thickness or 0.1
  808. local Dissapear = Table.DoesFade or false
  809. local Parent = Table.Ignore or Character
  810. local MaxDist = Table.MaxDist or 400
  811. local Branches = Table.Branches or false
  812. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  813. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  814. local LIGHTNINGMODEL = IT("Model",Effects)
  815. LIGHTNINGMODEL.Name = "Lightning"
  816. local LastBolt = nil
  817. for E = 1, DISTANCE do
  818. local ExtraSize = (DISTANCE-E)/15
  819. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Really blue"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  820. PART.Color = Color
  821. MakeForm(PART,"Cyl")
  822. if LastBolt == nil then
  823. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  824. else
  825. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  826. end
  827. LastBolt = PART
  828. if Branches == true then
  829. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  830. if CHOICE == 1 then
  831. local LASTBRANCH = nil
  832. for i = 1, MRANDOM(2,5) do
  833. local ExtraSize2 = ((DISTANCE-E)/25)/i
  834. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Really blue"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  835. PART.Color = Color
  836. MakeForm(PART,"Cyl")
  837. if LASTBRANCH == nil then
  838. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  839. else
  840. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  841. end
  842. LASTBRANCH = PART
  843. end
  844. end
  845. end
  846. end
  847. if Dissapear == true then
  848. coroutine.resume(coroutine.create(function()
  849. for i = 1, 10 do
  850. Swait()
  851. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  852. if c.ClassName == "Part" then
  853. c.Transparency = i/10
  854. end
  855. end
  856. end
  857. LIGHTNINGMODEL:remove()
  858. end))
  859. elseif Dissapear == false then
  860. Debris:AddItem(LIGHTNINGMODEL,0.1)
  861. end
  862. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  863. end
  864.  
  865. --//=================================\\
  866. --|| WEAPON CREATION
  867. --\\=================================//
  868.  
  869. for i = 1, 15 do
  870. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  871. FACE.Color = C3(0,0,0)
  872. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  873. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  874. end
  875. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  876. MakeForm(HAT1,"Cyl")
  877. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  878. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  879. BELT.Color = C3(15/255,15/255,15/255)
  880. MakeForm(BELT,"Cyl")
  881. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  882. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  883. MakeForm(HAT2,"Cyl")
  884. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  885. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  886. BELT.Color = C3(15/255,15/255,15/255)
  887. MakeForm(BELT,"Cyl")
  888. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  889. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Gem", VT(0.25,0.25,0.1),false)
  890. MakeForm(GEM,"Ball")
  891. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  892. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Gem", VT(0.25,0.25,0.1),false)
  893. MakeForm(GEM,"Ball")
  894. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  895. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Gem", VT(0.1,0.25,0.25),false)
  896. MakeForm(GEM,"Ball")
  897. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  898. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Gem", VT(0.1,0.25,0.25),false)
  899. MakeForm(GEM,"Ball")
  900. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  901. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  902. BELT.Color = C3(15/255,15/255,15/255)
  903. MakeForm(BELT,"Cyl")
  904. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  905. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  906. BELT.Color = C3(15/255,15/255,15/255)
  907. MakeForm(BELT,"Cyl")
  908. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  909. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  910. BELT.Color = C3(15/255,15/255,15/255)
  911. MakeForm(BELT,"Cyl")
  912. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  913. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  914. BELT.Color = C3(15/255,15/255,15/255)
  915. MakeForm(BELT,"Cyl")
  916. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  917. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  918. MakeForm(BELT,"Ball")
  919. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  920. Humanoid.DisplayDistanceType = "None"
  921. local naeeym2 = IT("BillboardGui",Character)
  922. naeeym2.AlwaysOnTop = true
  923. naeeym2.Size = UDim2.new(5,35,2,15)
  924. naeeym2.StudsOffset = Vector3.new(0,3,0)
  925. naeeym2.MaxDistance = 75
  926. naeeym2.Adornee = Character.Head
  927. naeeym2.Name = "Name"
  928. naeeym2.PlayerToHideFrom = Player
  929. local tecks2 = IT("TextLabel",naeeym2)
  930. tecks2.BackgroundTransparency = 1
  931. tecks2.TextScaled = true
  932. tecks2.BorderSizePixel = 0
  933. tecks2.Text = "Warden"
  934. tecks2.Font = "Bodoni"
  935. tecks2.TextSize = 30
  936. tecks2.TextStrokeTransparency = 0.5
  937. tecks2.TextColor3 = C3(0,0,0)
  938. tecks2.TextStrokeColor3 = BRICKC"Really blue".Color
  939. tecks2.Size = UDim2.new(1,0,0.5,0)
  940. tecks2.Parent = naeeym2
  941. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.6,0.1,1)/2,false)
  942. MakeForm(EYE,"Ball")
  943. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  944. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.6,0.1,1)/2,false)
  945. MakeForm(EYE,"Ball")
  946. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  947. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.1,1,1)/2,false)
  948. MakeForm(EYE,"Ball")
  949. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  950. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "FaceGradient", VT(0.1,1,1)/2,false)
  951. MakeForm(EYE,"Ball")
  952. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  953.  
  954. local top = Instance.new("Shirt")
  955. top.ShirtTemplate = "rbxassetid://133284214"
  956. top.Parent = Character
  957. top.Name = "Cloth"
  958. local bottom = Instance.new("Pants")
  959. bottom.PantsTemplate = "rbxassetid://15224239"
  960. bottom.Parent = Character
  961. bottom.Name = "Cloth"
  962. for _, c in pairs(Character:GetChildren()) do
  963. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  964. c.Material = "Neon"
  965. if c:FindFirstChildOfClass("ParticleEmitter") then
  966. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  967. end
  968. c.Color = C3(1,1,1)
  969. if c == Head then
  970. if c:FindFirstChild("face") then
  971. c.face:remove()
  972. end
  973. end
  974. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  975. c:remove()
  976. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  977. c:remove()
  978. end
  979. end
  980. local BODY = {}
  981. for _, c in pairs(Character:GetDescendants()) do
  982. if c:IsA("BasePart") and c.Name ~= "Handle" then
  983. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  984. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  985. end
  986. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  987. elseif c:IsA("JointInstance") then
  988. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  989. end
  990. end
  991.  
  992. wait(1/60)
  993. Effects = { }
  994. Player = owner
  995. Character=Player.Character
  996. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  997. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  998. do
  999. print("FE Compatibility code by Mokiros")
  1000. script.Parent = Player.Character
  1001.  
  1002. --RemoteEvent for communicating
  1003. local Event = Instance.new("RemoteEvent")
  1004. Event.Name = "UserInput_Event"
  1005.  
  1006. --Fake event to make stuff like Mouse.KeyDown work
  1007. local function fakeEvent()
  1008. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  1009. t.connect = t.Connect
  1010. return t
  1011. end
  1012.  
  1013. --Creating fake input objects with fake variables
  1014. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1015. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1016. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  1017. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  1018. end}
  1019. --Merged 2 functions into one by checking amount of arguments
  1020. CAS.UnbindAction = CAS.BindAction
  1021.  
  1022. --This function will trigger the events that have been :Connect()'ed
  1023. local function te(self,ev,...)
  1024. local t = m[ev]
  1025. if t and t._fakeEvent and t.Function then
  1026. t.Function(...)
  1027. end
  1028. end
  1029. m.TrigEvent = te
  1030. UIS.TrigEvent = te
  1031.  
  1032. Event.OnServerEvent:Connect(function(plr,io)
  1033. if plr~=Player then return end
  1034. if io.isMouse then
  1035. m.Target = io.Target
  1036. m.Hit = io.Hit
  1037. else
  1038. local b = io.UserInputState == Enum.UserInputState.Begin
  1039. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  1040. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  1041. end
  1042. for _,t in pairs(CAS.Actions) do
  1043. for _,k in pairs(t.Keys) do
  1044. if k==io.KeyCode then
  1045. t.Function(t.Name,io.UserInputState,io)
  1046. end
  1047. end
  1048. end
  1049. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  1050. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  1051. end
  1052. end)
  1053. Event.Parent = NLS([==[
  1054. local Player = game:GetService("Players").LocalPlayer
  1055. local Event = script:WaitForChild("UserInput_Event")
  1056.  
  1057. local UIS = game:GetService("UserInputService")
  1058. local input = function(io,a)
  1059. if a then return end
  1060. --Since InputObject is a client-side instance, we create and pass table instead
  1061. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  1062. end
  1063. UIS.InputBegan:Connect(input)
  1064. UIS.InputEnded:Connect(input)
  1065.  
  1066. local Mouse = Player:GetMouse()
  1067. local h,t
  1068. --Give the server mouse data 30 times every second, but only if the values changed
  1069. --If player is not moving their mouse, client won't fire events
  1070. while wait(1/30) do
  1071. if h~=Mouse.Hit or t~=Mouse.Target then
  1072. h,t=Mouse.Hit,Mouse.Target
  1073. Event:FireServer({isMouse=true,Target=t,Hit=h})
  1074. end
  1075. end]==],Player.Character)
  1076. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1077. end
  1078. m=Instance.new('Model',Character)
  1079. local function weldBetween(a, b)
  1080. local weldd = Instance.new("ManualWeld")
  1081. weldd.Part0 = a
  1082. weldd.Part1 = b
  1083. weldd.C0 = CFrame.new()
  1084. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1085. weldd.Parent = a
  1086. return weldd
  1087. end
  1088.  
  1089. it=Instance.new
  1090.  
  1091. function nooutline(part)
  1092. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1093. end
  1094.  
  1095. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1096. local fp=it("Part")
  1097. fp.formFactor=formfactor
  1098. fp.Parent=parent
  1099. fp.Reflectance=reflectance
  1100. fp.Transparency=transparency
  1101. fp.CanCollide=false
  1102. fp.Locked=true
  1103. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1104. fp.Name=name
  1105. fp.Size=size
  1106. fp.Position=Character.Torso.Position
  1107. nooutline(fp)
  1108. fp.Material=material
  1109. fp:BreakJoints()
  1110. return fp
  1111. end
  1112.  
  1113. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1114. local mesh=it(Mesh)
  1115. mesh.Parent=part
  1116. if Mesh=="SpecialMesh" then
  1117. mesh.MeshType=meshtype
  1118. mesh.MeshId=meshid
  1119. end
  1120. mesh.Offset=offset
  1121. mesh.Scale=scale
  1122. return mesh
  1123. end
  1124.  
  1125. function weld(parent,part0,part1,c0,c1)
  1126. local weld=it("Weld")
  1127. weld.Parent=parent
  1128. weld.Part0=part0
  1129. weld.Part1=part1
  1130. weld.C0=c0
  1131. weld.C1=c1
  1132. return weld
  1133. end
  1134.  
  1135. handle=part(Enum.FormFactor.Brick,m,Enum.Material.Plastic,0,0,"Really red","Handle",Vector3.new(4, 1, 2))
  1136. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.61954498, 0.610899925, 1.40690994, -0.258819044, 0, -0.965925813, 0, 1, 0, 0.965925813, 0, -0.258819044))
  1137. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"rbxassetid://1553468234",Vector3.new(0, 0, 0),Vector3.new(0.0480000004, 0.0480000004, 0.0480000004))
  1138.  
  1139. Player = owner
  1140. Character=Player.Character
  1141. m=Instance.new('Model',Character)
  1142. local function weldBetween(a, b)
  1143. local weldd = Instance.new("ManualWeld")
  1144. weldd.Part0 = a
  1145. weldd.Part1 = b
  1146. weldd.C0 = CFrame.new()
  1147. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1148. weldd.Parent = a
  1149. return weldd
  1150. end
  1151.  
  1152. it=Instance.new
  1153.  
  1154. function nooutline(part)
  1155. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1156. end
  1157.  
  1158. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1159. local fp=it("Part")
  1160. fp.formFactor=formfactor
  1161. fp.Parent=parent
  1162. fp.Reflectance=reflectance
  1163. fp.Transparency=transparency
  1164. fp.CanCollide=false
  1165. fp.Locked=true
  1166. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1167. fp.Name=name
  1168. fp.Size=size
  1169. fp.Position=Character.Torso.Position
  1170. nooutline(fp)
  1171. fp.Material=material
  1172. fp:BreakJoints()
  1173. return fp
  1174. end
  1175.  
  1176. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1177. local mesh=it(Mesh)
  1178. mesh.Parent=part
  1179. if Mesh=="SpecialMesh" then
  1180. mesh.MeshType=meshtype
  1181. mesh.MeshId=meshid
  1182. end
  1183. mesh.Offset=offset
  1184. mesh.Scale=scale
  1185. return mesh
  1186. end
  1187.  
  1188. function weld(parent,part0,part1,c0,c1)
  1189. local weld=it("Weld")
  1190. weld.Parent=parent
  1191. weld.Part0=part0
  1192. weld.Part1=part1
  1193. weld.C0=c0
  1194. weld.C1=c1
  1195. return weld
  1196. end
  1197.  
  1198.  
  1199. handle=part(Enum.FormFactor.Brick,m,Enum.Material.Plastic,0,0,"Really blue","Handle",Vector3.new(4, 1, 2))
  1200. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.72890472, 0.675598145, -1.43186569, 0.258819073, 0, -0.965925813, 0, 1, 0, 0.965925813, 0, 0.258819073))
  1201. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"rbxassetid://1553468709",Vector3.new(0, 0, 0),Vector3.new(0.0480000004, 0.0480000004, 0.0480000004))
  1202. Player = owner
  1203. local chara = Player.Character
  1204. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  1205. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  1206. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  1207. do
  1208. print("FE Compatibility code by Mokiros")
  1209. script.Parent = Player.Character
  1210.  
  1211. --RemoteEvent for communicating
  1212. local Event = Instance.new("RemoteEvent")
  1213. Event.Name = "UserInput_Event"
  1214.  
  1215. --Fake event to make stuff like Mouse.KeyDown work
  1216. local function fakeEvent()
  1217. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  1218. t.connect = t.Connect
  1219. return t
  1220. end
  1221.  
  1222. --Creating fake input objects with fake variables
  1223. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1224. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1225. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  1226. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  1227. end}
  1228. --Merged 2 functions into one by checking amount of arguments
  1229. CAS.UnbindAction = CAS.BindAction
  1230.  
  1231. --This function will trigger the events that have been :Connect()'ed
  1232. local function te(self,ev,...)
  1233. local t = m[ev]
  1234. if t and t._fakeEvent and t.Function then
  1235. t.Function(...)
  1236. end
  1237. end
  1238. m.TrigEvent = te
  1239. UIS.TrigEvent = te
  1240.  
  1241. Event.OnServerEvent:Connect(function(plr,io)
  1242. if plr~=Player then return end
  1243. if io.isMouse then
  1244. m.Target = io.Target
  1245. m.Hit = io.Hit
  1246. else
  1247. local b = io.UserInputState == Enum.UserInputState.Begin
  1248. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  1249. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  1250. end
  1251. for _,t in pairs(CAS.Actions) do
  1252. for _,k in pairs(t.Keys) do
  1253. if k==io.KeyCode then
  1254. t.Function(t.Name,io.UserInputState,io)
  1255. end
  1256. end
  1257. end
  1258. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  1259. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  1260. end
  1261. end)
  1262. Event.Parent = NLS([==[
  1263. local Player = game:GetService("Players").LocalPlayer
  1264. local Event = script:WaitForChild("UserInput_Event")
  1265.  
  1266. local UIS = game:GetService("UserInputService")
  1267. local input = function(io,a)
  1268. if a then return end
  1269. --Since InputObject is a client-side instance, we create and pass table instead
  1270. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  1271. end
  1272. UIS.InputBegan:Connect(input)
  1273. UIS.InputEnded:Connect(input)
  1274.  
  1275. local Mouse = Player:GetMouse()
  1276. local h,t
  1277. --Give the server mouse data 30 times every second, but only if the values changed
  1278. --If player is not moving their mouse, client won't fire events
  1279. while wait(1/30) do
  1280. if h~=Mouse.Hit or t~=Mouse.Target then
  1281. h,t=Mouse.Hit,Mouse.Target
  1282. Event:FireServer({isMouse=true,Target=t,Hit=h})
  1283. end
  1284. end]==],Player.Character)
  1285. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1286. end
  1287. local LeftArm = chara["Left Arm"]
  1288. local RightArm = chara["Right Arm"]
  1289. local LeftLeg = chara["Left Leg"]
  1290. local RightLeg = chara["Right Leg"]
  1291. local Head = chara.Head
  1292. local Torso = chara.Torso
  1293. local RootPart = chara.HumanoidRootPart
  1294. local RootJoint = RootPart.RootJoint
  1295. local attack = false
  1296. local Anim = 'Idle'
  1297. local attacktype = 1
  1298. local delays = false
  1299. local play = true
  1300. local targetted = nil
  1301. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1302. local velocity = RootPart.Velocity.y
  1303. local sine = 0
  1304. local change = 1
  1305. local doe = 0
  1306. local Create = LoadLibrary("RbxUtility").Create
  1307. Humanoid.WalkSpeed = 16
  1308.  
  1309.  
  1310.  
  1311. Humanoid.Animator.Parent = nil
  1312. chara.Animate.Parent = nil
  1313.  
  1314. local pos = Vector3.new(0,0,-50)
  1315.  
  1316. local newMotor = function(part0, part1, c0, c1)
  1317. local w = Create('Motor'){
  1318. Parent = part0,
  1319. Part0 = part0,
  1320. Part1 = part1,
  1321. C0 = c0,
  1322. C1 = c1,
  1323. }
  1324. return w
  1325. end
  1326.  
  1327. function clerp(a, b, t)
  1328. return a:lerp(b, t)
  1329. end
  1330.  
  1331. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1332. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1333.  
  1334. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  1335. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  1336. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  1337. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  1338. RootJoint.C1 = CFrame.new(0, 0, 0)
  1339. RootJoint.C0 = CFrame.new(0, 0, 0)
  1340. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1341. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1342.  
  1343.  
  1344. local rarmc1 = RW.C1
  1345. local larmc1 = LW.C1
  1346. local rlegc1 = RH.C1
  1347. local llegc1 = LH.C1
  1348.  
  1349. local resetc1 = false
  1350.  
  1351. function PlayAnimationFromTable(table, speed, bool)
  1352. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  1353. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  1354. RW.C0 = clerp(RW.C0, table[3], speed)
  1355. LW.C0 = clerp(LW.C0, table[4], speed)
  1356. RH.C0 = clerp(RH.C0, table[5], speed)
  1357. LH.C0 = clerp(LH.C0, table[6], speed)
  1358. if bool == true then
  1359. if resetc1 == false then
  1360. resetc1 = true
  1361. RootJoint.C1 = RootJoint.C1
  1362. Torso.Neck.C1 = Torso.Neck.C1
  1363. RW.C1 = rarmc1
  1364. LW.C1 = larmc1
  1365. RH.C1 = rlegc1
  1366. LH.C1 = llegc1
  1367. end
  1368. end
  1369. end
  1370.  
  1371.  
  1372. ArtificialHB = Instance.new("BindableEvent", script)
  1373. ArtificialHB.Name = "Heartbeat"
  1374. script:WaitForChild("Heartbeat")
  1375. frame = 0.03333333333333
  1376. tf = 0
  1377. allowframeloss = false
  1378. tossremainder = false
  1379. lastframe = tick()
  1380. script.Heartbeat:Fire()
  1381. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1382. tf = tf + s
  1383. if tf >= frame then
  1384. if allowframeloss then
  1385. script.Heartbeat:Fire()
  1386. lastframe = tick()
  1387. else
  1388. for i = 1, math.floor(tf / frame) do
  1389. script.Heartbeat:Fire()
  1390. end
  1391. lastframe = tick()
  1392. end
  1393. if tossremainder then
  1394. tf = 0
  1395. else
  1396. tf = tf - frame * math.floor(tf / frame)
  1397. end
  1398. end
  1399. end)
  1400. function swait(num)
  1401. if num == 0 or num == nil then
  1402. ArtificialHB.Event:wait()
  1403. else
  1404. for i = 0, num do
  1405. ArtificialHB.Event:wait()
  1406. end
  1407. end
  1408. end
  1409.  
  1410. function RemoveOutlines(part)
  1411. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1412. end
  1413.  
  1414.  
  1415. CFuncs = {
  1416. ["Part"] = {
  1417. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1418. local Part = Create("Part"){
  1419. Parent = Parent,
  1420. Reflectance = Reflectance,
  1421. Transparency = Transparency,
  1422. CanCollide = false,
  1423. Locked = true,
  1424. BrickColor = BrickColor.new(tostring(BColor)),
  1425. Name = Name,
  1426. Size = Size,
  1427. Material = Material,
  1428. }
  1429. RemoveOutlines(Part)
  1430. return Part
  1431. end;
  1432. };
  1433.  
  1434. ["Mesh"] = {
  1435. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1436. local Msh = Create(Mesh){
  1437. Parent = Part,
  1438. Offset = OffSet,
  1439. Scale = Scale,
  1440. }
  1441. if Mesh == "SpecialMesh" then
  1442. Msh.MeshType = MeshType
  1443. Msh.MeshId = MeshId
  1444. end
  1445. return Msh
  1446. end;
  1447. };
  1448.  
  1449. ["Mesh"] = {
  1450. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1451. local Msh = Create(Mesh){
  1452. Parent = Part,
  1453. Offset = OffSet,
  1454. Scale = Scale,
  1455. }
  1456. if Mesh == "SpecialMesh" then
  1457. Msh.MeshType = MeshType
  1458. Msh.MeshId = MeshId
  1459. end
  1460. return Msh
  1461. end;
  1462. };
  1463.  
  1464. ["Weld"] = {
  1465. Create = function(Parent, Part0, Part1, C0, C1)
  1466. local Weld = Create("Weld"){
  1467. Parent = Parent,
  1468. Part0 = Part0,
  1469. Part1 = Part1,
  1470. C0 = C0,
  1471. C1 = C1,
  1472. }
  1473. return Weld
  1474. end;
  1475. };
  1476.  
  1477. ["ParticleEmitter"] = {
  1478. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1479. local fp = Create("ParticleEmitter"){
  1480. Parent = Parent,
  1481. Color = ColorSequence.new(Color1, Color2),
  1482. LightEmission = LightEmission,
  1483. Size = Size,
  1484. Texture = Texture,
  1485. Transparency = Transparency,
  1486. ZOffset = ZOffset,
  1487. Acceleration = Accel,
  1488. Drag = Drag,
  1489. LockedToPart = LockedToPart,
  1490. VelocityInheritance = VelocityInheritance,
  1491. EmissionDirection = EmissionDirection,
  1492. Enabled = Enabled,
  1493. Lifetime = LifeTime,
  1494. Rate = Rate,
  1495. Rotation = Rotation,
  1496. RotSpeed = RotSpeed,
  1497. Speed = Speed,
  1498. VelocitySpread = VelocitySpread,
  1499. }
  1500. return fp
  1501. end;
  1502. };
  1503.  
  1504. CreateTemplate = {
  1505.  
  1506. };
  1507. }
  1508.  
  1509.  
  1510. function so(id,par,pit,vol)
  1511. local sou = Instance.new("Sound", par or workspace)
  1512. if par == chara then
  1513. sou.Parent = chara.Torso
  1514. end
  1515. sou.Volume = vol
  1516. sou.Pitch = pit or 1
  1517. sou.SoundId = "rbxassetid://" .. id
  1518. sou.PlayOnRemove = true
  1519. sou:Destroy()
  1520. end
  1521.  
  1522. local mus = Instance.new("Sound",Head)
  1523. mus.Name = "mus"
  1524. mus.SoundId = "rbxassetid://1494340971"
  1525. mus.Looped = true
  1526. mus.Volume = 1
  1527. mus:Play()
  1528.  
  1529. New = function(Object, Parent, Name, Data)
  1530. local Object = Instance.new(Object)
  1531. for Index, Value in pairs(Data or {}) do
  1532. Object[Index] = Value
  1533. end
  1534. Object.Parent = Parent
  1535. Object.Name = Name
  1536. return Object
  1537. end
  1538.  
  1539.  
  1540. local sh = Instance.new("Shirt",chara)
  1541. local pn = Instance.new("Pants",chara)
  1542. sh.ShirtTemplate = "rbxassetid://133284214"
  1543. pn.PantsTemplate = "rbxassetid://15224239"
  1544.  
  1545.  
  1546. bdefc0 = CFrame.new(.8,-1,0)*CFrame.Angles(math.rad(30),0,0)
  1547. gdefc0 = CFrame.new(-.8,-1,0)*CFrame.Angles(math.rad(130),0,0)
  1548.  
  1549. local baton = Instance.new("Part",chara)
  1550. baton.Name = "Baton"
  1551. baton.Size = Vector3.new(.2,.2,3.2)
  1552. baton.BrickColor = BrickColor.new("Really black")
  1553. baton.CanCollide = false
  1554. CFuncs.Mesh.Create("SpecialMesh", baton, "FileMesh", "rbxassetid://11820238", Vector3.new(), Vector3.new(1.5,1.5,1.5))
  1555.  
  1556. local bweld = Instance.new("Weld",baton)
  1557. bweld.Part0 = Torso
  1558. bweld.Part1 = baton
  1559. bweld.C0 = bdefc0
  1560.  
  1561. local att1 = Instance.new("Attachment",baton)
  1562. att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2)
  1563. local att2 = Instance.new("Attachment",baton)
  1564. att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2)
  1565. local tr1 = Instance.new("Trail",baton)
  1566. tr1.Color = ColorSequence.new(Color3.new(1,1,1))
  1567. tr1.Transparency = NumberSequence.new(0,1)
  1568. tr1.Lifetime = .5
  1569. tr1.Enabled = false
  1570. tr1.LightEmission = 1
  1571. tr1.Attachment0 = att1
  1572. tr1.Attachment1 = att2
  1573. local att3 = Instance.new("Attachment",RightLeg)
  1574. att3.Position = Vector3.new(0,1,0)
  1575. local att4 = Instance.new("Attachment",RightLeg)
  1576. att4.Position = Vector3.new(0,-1,0)
  1577. local tr2 = Instance.new("Trail",RightLeg)
  1578. tr2.Color = ColorSequence.new(Color3.new(1,1,1))
  1579. tr2.Transparency = NumberSequence.new(0,1)
  1580. tr2.Lifetime = .5
  1581. tr2.Enabled = false
  1582. tr2.LightEmission = 1
  1583. tr2.Attachment0 = att3
  1584. tr2.Attachment1 = att4
  1585.  
  1586. local gun = Instance.new("Part",chara)
  1587. gun.Name = "Gun"
  1588. gun.Size = Vector3.new(.2,.2,.2)
  1589. gun.BrickColor = BrickColor.new("Really black")
  1590. gun.CanCollide = false
  1591. CFuncs.Mesh.Create("SpecialMesh", gun, "FileMesh", "rbxassetid://72012879", Vector3.new(), Vector3.new(2,2,2))
  1592.  
  1593. local gweld = Instance.new("Weld",gun)
  1594. gweld.Part0 = Torso
  1595. gweld.Part1 = gun
  1596. gweld.C0 = gdefc0
  1597.  
  1598. function rayCast(Position, Direction, Range, Ignore)
  1599. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1600. end
  1601.  
  1602. function mdmg(Part, Magnitude, HitType)
  1603. for _, c in pairs(workspace:GetDescendants()) do
  1604. local hum = c:FindFirstChildOfClass("Humanoid")
  1605. if hum ~= nil then
  1606. local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
  1607. if head ~= nil then
  1608. local targ = head.Position - Part.Position
  1609. local mag = targ.magnitude
  1610. if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then
  1611. if c.Name ~= chara then
  1612. if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then
  1613. local val = Instance.new("BoolValue",c)
  1614. val.Name = "MagDmgd"
  1615. local asd = Instance.new("ParticleEmitter",head)
  1616. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1617. asd.LightEmission = .1
  1618. asd.Size = NumberSequence.new(0.2)
  1619. asd.Texture = "rbxassetid://771221224"
  1620. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
  1621. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1622. asd.Transparency = bbb
  1623. asd.Size = aaa
  1624. asd.ZOffset = .9
  1625. asd.Acceleration = Vector3.new(0, -5, 0)
  1626. asd.LockedToPart = false
  1627. asd.EmissionDirection = "Back"
  1628. asd.Lifetime = NumberRange.new(1, 2)
  1629. asd.Rate = 1000
  1630. asd.Rotation = NumberRange.new(-100, 100)
  1631. asd.RotSpeed = NumberRange.new(-100, 100)
  1632. asd.Speed = NumberRange.new(6)
  1633. asd.VelocitySpread = 10000
  1634. asd.Enabled = false
  1635. asd:Emit(20)
  1636. game:service'Debris':AddItem(asd,3)
  1637. --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  1638. if HitType == "Blunt" then
  1639. so(386946017,head,.95,3)
  1640. game:service'Debris':AddItem(val,1)
  1641. elseif HitType == "Shot" then
  1642. so(144884872,head,.9,3)
  1643. game:service'Debris':AddItem(val,.05)
  1644. end
  1645. local soaa = Instance.new("Sound",c.Head)
  1646. soaa.Volume = .5
  1647. local cho = math.random(1,5)
  1648. if cho == 1 then
  1649. soaa.SoundId = "rbxassetid://111896685"
  1650. elseif cho == 2 then
  1651. soaa.SoundId = "rbxassetid://535528169"
  1652. elseif cho == 3 then
  1653. soaa.SoundId = "rbxassetid://1080363252"
  1654. elseif cho == 4 then
  1655. soaa.SoundId = "rbxassetid://147758746"
  1656. elseif cho == 5 then
  1657. soaa.SoundId = "rbxassetid://626777433"
  1658. soaa.Volume = .2
  1659. soaa.TimePosition = 1
  1660. end
  1661. game:service'Debris':AddItem(soaa,6)
  1662. soaa:Play()
  1663. for i,v in pairs(c:children()) do
  1664. if v:IsA("LocalScript") or v:IsA("Tool") then
  1665. v:Destroy()
  1666. end
  1667. end
  1668. hum.PlatformStand = true
  1669. head.Velocity = RootPart.CFrame.lookVector*50
  1670. head.RotVelocity = Vector3.new(10,0,0)
  1671. chatfunc("Let that be a warning!")
  1672. coroutine.wrap(function()
  1673. swait(5)
  1674. c:BreakJoints() end)()
  1675. else
  1676. end
  1677. end
  1678. end
  1679. end
  1680. end
  1681. end
  1682. end
  1683.  
  1684. --[[FindNearestTorso = function(pos)
  1685. local list = (game.workspace:GetDescendants())
  1686. local torso = nil
  1687. local dist = 1000
  1688. local temp, human, temp2 = nil, nil, nil
  1689. for x = 1, #list do
  1690. temp2 = list[x]
  1691. if temp2.className == "Model" and temp2.Name ~= chara.Name then
  1692. temp = temp2:findFirstChild("Torso")
  1693. human = temp2:FindFirstChildOfClass("Humanoid")
  1694. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  1695. local dohit = true
  1696. if dohit == true then
  1697. torso = temp
  1698. dist = (temp.Position - pos).magnitude
  1699. end
  1700. end
  1701. end
  1702. end
  1703. return torso, dist
  1704. end]]
  1705.  
  1706.  
  1707. function FindNearestTorso(Position, Distance, SinglePlayer)
  1708. if SinglePlayer then
  1709. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  1710. end
  1711. local List = {}
  1712. for i, v in pairs(workspace:GetDescendants()) do
  1713. if v:IsA("Model") then
  1714. if v:findFirstChild("Head") then
  1715. if v ~= chara then
  1716. if (v.Head.Position - Position).magnitude <= Distance then
  1717. table.insert(List, v)
  1718. end
  1719. end
  1720. end
  1721. end
  1722. end
  1723. return List
  1724. end
  1725.  
  1726.  
  1727. --Chat Function--
  1728. Player = owner
  1729. PlayerGui = Player.PlayerGui
  1730. Cam = workspace.CurrentCamera
  1731. Backpack = Player.Backpack
  1732. Character = Player.Character
  1733. Humanoid = Character.Humanoid
  1734. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  1735. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  1736. do
  1737. print("FE Compatibility code by Mokiros")
  1738. script.Parent = Player.Character
  1739.  
  1740. --RemoteEvent for communicating
  1741. local Event = Instance.new("RemoteEvent")
  1742. Event.Name = "UserInput_Event"
  1743.  
  1744. --Fake event to make stuff like Mouse.KeyDown work
  1745. local function fakeEvent()
  1746. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  1747. t.connect = t.Connect
  1748. return t
  1749. end
  1750.  
  1751. --Creating fake input objects with fake variables
  1752. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1753. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1754. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  1755. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  1756. end}
  1757. --Merged 2 functions into one by checking amount of arguments
  1758. CAS.UnbindAction = CAS.BindAction
  1759.  
  1760. --This function will trigger the events that have been :Connect()'ed
  1761. local function te(self,ev,...)
  1762. local t = m[ev]
  1763. if t and t._fakeEvent and t.Function then
  1764. t.Function(...)
  1765. end
  1766. end
  1767. m.TrigEvent = te
  1768. UIS.TrigEvent = te
  1769.  
  1770. Event.OnServerEvent:Connect(function(plr,io)
  1771. if plr~=Player then return end
  1772. if io.isMouse then
  1773. m.Target = io.Target
  1774. m.Hit = io.Hit
  1775. else
  1776. local b = io.UserInputState == Enum.UserInputState.Begin
  1777. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  1778. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  1779. end
  1780. for _,t in pairs(CAS.Actions) do
  1781. for _,k in pairs(t.Keys) do
  1782. if k==io.KeyCode then
  1783. t.Function(t.Name,io.UserInputState,io)
  1784. end
  1785. end
  1786. end
  1787. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  1788. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  1789. end
  1790. end)
  1791. Event.Parent = NLS([==[
  1792. local Player = game:GetService("Players").LocalPlayer
  1793. local Event = script:WaitForChild("UserInput_Event")
  1794.  
  1795. local UIS = game:GetService("UserInputService")
  1796. local input = function(io,a)
  1797. if a then return end
  1798. --Since InputObject is a client-side instance, we create and pass table instead
  1799. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  1800. end
  1801. UIS.InputBegan:Connect(input)
  1802. UIS.InputEnded:Connect(input)
  1803.  
  1804. local Mouse = Player:GetMouse()
  1805. local h,t
  1806. --Give the server mouse data 30 times every second, but only if the values changed
  1807. --If player is not moving their mouse, client won't fire events
  1808. while wait(1/30) do
  1809. if h~=Mouse.Hit or t~=Mouse.Target then
  1810. h,t=Mouse.Hit,Mouse.Target
  1811. Event:FireServer({isMouse=true,Target=t,Hit=h})
  1812. end
  1813. end]==],Player.Character)
  1814. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  1815. end
  1816. RootPart = Character["HumanoidRootPart"]
  1817. Torso = Character["Torso"]
  1818. Head = Character["Head"]
  1819. RightArm = Character["Right Arm"]
  1820. LeftArm = Character["Left Arm"]
  1821. RightLeg = Character["Right Leg"]
  1822. LeftLeg = Character["Left Leg"]
  1823. RootJoint = RootPart["RootJoint"]
  1824. Neck = Torso["Neck"]
  1825. RightShoulder = Torso["Right Shoulder"]
  1826. LeftShoulder = Torso["Left Shoulder"]
  1827. RightHip = Torso["Right Hip"]
  1828. LeftHip = Torso["Left Hip"]
  1829. local Weapon = Instance.new("Model")
  1830. Weapon.Name = "Adds"
  1831. Weapon.Parent = Character
  1832.  
  1833. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1834. local NEWPART = Instance.new("Part")
  1835. NEWPART.formFactor = FORMFACTOR
  1836. NEWPART.Reflectance = REFLECTANCE
  1837. NEWPART.Transparency = TRANSPARENCY
  1838. NEWPART.CanCollide = false
  1839. NEWPART.Locked = true
  1840. NEWPART.Anchored = true
  1841. if ANCHOR == false then
  1842. NEWPART.Anchored = false
  1843. end
  1844. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1845. NEWPART.Name = NAME
  1846. NEWPART.Size = SIZE
  1847. NEWPART.Position = Torso.Position
  1848. NEWPART.Material = MATERIAL
  1849. NEWPART:BreakJoints()
  1850. NEWPART.Parent = PARENT
  1851. return NEWPART
  1852. end
  1853.  
  1854. local function weldBetween(a, b)
  1855. local weldd = Instance.new("ManualWeld")
  1856. weldd.Part0 = a
  1857. weldd.Part1 = b
  1858. weldd.C0 = CFrame.new()
  1859. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1860. weldd.Parent = a
  1861. return weldd
  1862. end
  1863.  
  1864. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1865. local NEWWELD = Instance.new(TYPE)
  1866. NEWWELD.Part0 = PART0
  1867. NEWWELD.Part1 = PART1
  1868. NEWWELD.C0 = C0
  1869. NEWWELD.C1 = C1
  1870. NEWWELD.Parent = PARENT
  1871. return NEWWELD
  1872. end
  1873.  
  1874. IT = Instance.new
  1875. CF = CFrame.new
  1876. VT = Vector3.new
  1877. RAD = math.rad
  1878. C3 = Color3.new
  1879. UD2 = UDim2.new
  1880. BRICKC = BrickColor.new
  1881. ANGLES = CFrame.Angles
  1882. EULER = CFrame.fromEulerAnglesXYZ
  1883. COS = math.cos
  1884. ACOS = math.acos
  1885. SIN = math.sin
  1886. ASIN = math.asin
  1887. ABS = math.abs
  1888. MRANDOM = math.random
  1889. FLOOR = math.floor
  1890.  
  1891. function MakeForm(PART,TYPE)
  1892. if TYPE == "Cyl" then
  1893. local MSH = Instance.new("CylinderMesh",PART)
  1894. elseif TYPE == "Ball" then
  1895. local MSH = Instance.new("SpecialMesh",PART)
  1896. MSH.MeshType = "Sphere"
  1897. elseif TYPE == "Wedge" then
  1898. local MSH = Instance.new("SpecialMesh",PART)
  1899. MSH.MeshType = "Wedge"
  1900. end
  1901. end
  1902.  
  1903. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1904. for i = 1, 8 do
  1905. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1906. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1907. end
  1908. RightArm.Transparency = 1
  1909. local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false)
  1910. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1911. local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false)
  1912. MakeForm(Sphere,"Ball")
  1913. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1914. local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false)
  1915. MakeForm(LaserPart,"Ball")
  1916. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1917. local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.3,0.2),false)
  1918. MakeForm(Bump,"Ball")
  1919. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1920. local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false)
  1921. MakeForm(BottomLaser,"Cyl")
  1922. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1923. local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
  1924. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1925. local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Part", VT(0,0.5,0.5),false)
  1926. CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0))
  1927. local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
  1928. CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0))
  1929. local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Part", VT(0,0.56,0.5),false)
  1930. CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0))
  1931. local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
  1932. CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0))
  1933. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false)
  1934. CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0))
  1935. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Part", VT(0,0.3,0.5),false)
  1936. CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0))
  1937. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
  1938. MakeForm(Part,"Cyl")
  1939. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1940. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Part", VT(1.4,0,1.4),false)
  1941. MakeForm(Part,"Cyl")
  1942. CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  1943. local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really blue", "Part", VT(0.3,1.6,0.7),false)
  1944. MakeForm(Sphere,"Ball")
  1945. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1946.  
  1947. function chatfunc(text)
  1948. coroutine.wrap(function()
  1949. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  1950. chara:FindFirstChild("TalkingBillBoard"):destroy()
  1951. end
  1952. local naeeym2 = Instance.new("BillboardGui",chara)
  1953. naeeym2.Size = UDim2.new(0,100,0,40)
  1954. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1955. naeeym2.Adornee = chara.Head
  1956. naeeym2.Name = "TalkingBillBoard"
  1957. local tecks2 = Instance.new("TextLabel",naeeym2)
  1958. tecks2.BackgroundTransparency = 1
  1959. tecks2.BorderSizePixel = 0
  1960. tecks2.Text = ""
  1961. tecks2.Font = "Fantasy"
  1962. tecks2.FontSize = "Size24"
  1963. tecks2.TextStrokeTransparency = 0
  1964. tecks2.TextColor3 = Color3.new(1,1,1)
  1965. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1966. tecks2.Size = UDim2.new(1,0,0.5,0)
  1967. for i = 1,string.len(text),1 do
  1968. tecks2.Text = string.sub(text,1,i)
  1969. swait()
  1970. end
  1971. swait(30)
  1972. for i = 1, 5 do
  1973. swait()
  1974. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1975. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1976. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1977. end
  1978. naeeym2:Destroy()
  1979. end)()
  1980. end
  1981.  
  1982.  
  1983.  
  1984. EffectModel = Create("Model"){
  1985. Parent = chara,
  1986. Name = "Effects",
  1987. }
  1988.  
  1989.  
  1990. Effects = {
  1991. Block = {
  1992. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1993. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1994. prt.Anchored = true
  1995. prt.CFrame = cframe
  1996. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1997. game:GetService("Debris"):AddItem(prt, 10)
  1998. if Type == 1 or Type == nil then
  1999. table.insert(Effects, {
  2000. prt,
  2001. "Block1",
  2002. delay,
  2003. x3,
  2004. y3,
  2005. z3,
  2006. msh
  2007. })
  2008. elseif Type == 2 then
  2009. table.insert(Effects, {
  2010. prt,
  2011. "Block2",
  2012. delay,
  2013. x3,
  2014. y3,
  2015. z3,
  2016. msh
  2017. })
  2018. end
  2019. end;
  2020. };
  2021.  
  2022. Cylinder = {
  2023. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2024. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2025. prt.Anchored = true
  2026. prt.CFrame = cframe
  2027. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2028. game:GetService("Debris"):AddItem(prt, 10)
  2029. table.insert(Effects, {
  2030. prt,
  2031. "Cylinder",
  2032. delay,
  2033. x3,
  2034. y3,
  2035. z3,
  2036. msh
  2037. })
  2038. end;
  2039. };
  2040. Head = {
  2041. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2042. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2043. prt.Anchored = true
  2044. prt.CFrame = cframe
  2045. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2046. game:GetService("Debris"):AddItem(prt, 10)
  2047. table.insert(Effects, {
  2048. prt,
  2049. "Cylinder",
  2050. delay,
  2051. x3,
  2052. y3,
  2053. z3,
  2054. msh
  2055. })
  2056. end;
  2057. };
  2058.  
  2059. Sphere = {
  2060. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2061. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2062. prt.Anchored = true
  2063. prt.CFrame = cframe
  2064. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2065. game:GetService("Debris"):AddItem(prt, 10)
  2066. table.insert(Effects, {
  2067. prt,
  2068. "Cylinder",
  2069. delay,
  2070. x3,
  2071. y3,
  2072. z3,
  2073. msh
  2074. })
  2075. end;
  2076. };
  2077.  
  2078. Elect = {
  2079. Create = function(cff, x, y, z)
  2080. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  2081. prt.Anchored = true
  2082. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2083. prt.CFrame = CFrame.new(prt.Position)
  2084. game:GetService("Debris"):AddItem(prt, 2)
  2085. local xval = math.random() / 2
  2086. local yval = math.random() / 2
  2087. local zval = math.random() / 2
  2088. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  2089. table.insert(Effects, {
  2090. prt,
  2091. "Elec",
  2092. 0.1,
  2093. x,
  2094. y,
  2095. z,
  2096. xval,
  2097. yval,
  2098. zval
  2099. })
  2100. end;
  2101.  
  2102. };
  2103.  
  2104. Ring = {
  2105. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2106. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2107. prt.Anchored = true
  2108. prt.CFrame = cframe
  2109. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2110. game:GetService("Debris"):AddItem(prt, 10)
  2111. table.insert(Effects, {
  2112. prt,
  2113. "Cylinder",
  2114. delay,
  2115. x3,
  2116. y3,
  2117. z3,
  2118. msh
  2119. })
  2120. end;
  2121. };
  2122.  
  2123.  
  2124. Wave = {
  2125. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2126. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2127. prt.Anchored = true
  2128. prt.CFrame = cframe
  2129. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2130. game:GetService("Debris"):AddItem(prt, 10)
  2131. table.insert(Effects, {
  2132. prt,
  2133. "Cylinder",
  2134. delay,
  2135. x3,
  2136. y3,
  2137. z3,
  2138. msh
  2139. })
  2140. end;
  2141. };
  2142.  
  2143. Break = {
  2144. Create = function(brickcolor, cframe, x1, y1, z1)
  2145. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2146. prt.Anchored = true
  2147. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2148. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2149. local num = math.random(10, 50) / 1000
  2150. game:GetService("Debris"):AddItem(prt, 10)
  2151. table.insert(Effects, {
  2152. prt,
  2153. "Shatter",
  2154. num,
  2155. prt.CFrame,
  2156. math.random() - math.random(),
  2157. 0,
  2158. math.random(50, 100) / 100
  2159. })
  2160. end;
  2161. };
  2162.  
  2163. Fire = {
  2164. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  2165. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2166. prt.Anchored = true
  2167. prt.CFrame = cframe
  2168. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2169. game:GetService("Debris"):AddItem(prt, 10)
  2170. table.insert(Effects, {
  2171. prt,
  2172. "Fire",
  2173. delay,
  2174. 1,
  2175. 1,
  2176. 1,
  2177. msh
  2178. })
  2179. end;
  2180. };
  2181.  
  2182. FireWave = {
  2183. Create = function(brickcolor, cframe, x1, y1, z1)
  2184. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  2185. prt.Anchored = true
  2186. prt.CFrame = cframe
  2187. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2188. local d = Create("Decal"){
  2189. Parent = prt,
  2190. Texture = "rbxassetid://26356434",
  2191. Face = "Top",
  2192. }
  2193. local d = Create("Decal"){
  2194. Parent = prt,
  2195. Texture = "rbxassetid://26356434",
  2196. Face = "Bottom",
  2197. }
  2198. game:GetService("Debris"):AddItem(prt, 10)
  2199. table.insert(Effects, {
  2200. prt,
  2201. "FireWave",
  2202. 1,
  2203. 30,
  2204. math.random(400, 600) / 100,
  2205. msh
  2206. })
  2207. end;
  2208. };
  2209.  
  2210. Lightning = {
  2211. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  2212. local magz = (p0 - p1).magnitude
  2213. local curpos = p0
  2214. local trz = {
  2215. -ofs,
  2216. ofs
  2217. }
  2218. for i = 1, tym do
  2219. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  2220. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2221. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2222. li.Material = "Neon"
  2223. if tym == i then
  2224. local magz2 = (curpos - p1).magnitude
  2225. li.Size = Vector3.new(th, th, magz2)
  2226. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2227. table.insert(Effects, {
  2228. li,
  2229. "Disappear",
  2230. last
  2231. })
  2232. else
  2233. do
  2234. do
  2235. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2236. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2237. game.Debris:AddItem(li, 10)
  2238. table.insert(Effects, {
  2239. li,
  2240. "Disappear",
  2241. last
  2242. })
  2243. end
  2244. end
  2245. end
  2246. end
  2247. end
  2248. };
  2249.  
  2250. EffectTemplate = {
  2251.  
  2252. };
  2253. }
  2254.  
  2255.  
  2256. function smek()
  2257. attack = true
  2258. bweld.Part0 = RightArm
  2259. bweld.C0 = CFrame.new(-.2,-2,.4)*CFrame.Angles(math.rad(90),0,math.rad(180))
  2260. Humanoid.WalkSpeed = 40
  2261. for i=0,1,.2 do
  2262. swait()
  2263. PlayAnimationFromTable({
  2264. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  2265. CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  2266. CFrame.new(1.6195364, 0.256343663, -3.60019794e-06, 0.939692736, -0.342020124, -8.94069672e-08, 0.342020154, 0.939692676, -4.35416268e-07, 2.08616257e-07, 3.87430191e-07, 1),
  2267. CFrame.new(-1.65980804, 0.323206544, 5.72385352e-06, 0.866025329, 0.500000238, -2.98023224e-07, -0.500000179, 0.866025388, -1.34623383e-06, -4.47034836e-07, 1.29640102e-06, 1.00000012),
  2268. CFrame.new(0.500001073, -2.00000095, -1.57952309e-06, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616),
  2269. CFrame.new(-0.499998212, -2.00000095, 1.49011612e-06, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544),
  2270. }, .3, false)
  2271. end
  2272. Humanoid.WalkSpeed = 2
  2273. tr1.Enabled = true
  2274. so(536642316,baton,1,1)
  2275. for i=0,1,.1 do
  2276. swait()
  2277. PlayAnimationFromTable({
  2278. CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992),
  2279. CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992),
  2280. CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854),
  2281. CFrame.new(-1.59605861, 0.10887894, 1.11486224e-06, 0.984807909, 0.173648059, -2.23517418e-06, -0.173648059, 0.984807849, 3.82394944e-07, 2.29477882e-06, 1.86264515e-08, 1),
  2282. CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368e-07, 0.336824894, -0.0593915246, 0.939692438),
  2283. CFrame.new(-0.499999702, -2.00000095, 8.68737698e-06, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511),
  2284. }, .3, false)
  2285. mdmg(baton,3,"Blunt")
  2286. end
  2287. swait(5)
  2288. bweld.Part0 = Torso
  2289. bweld.C0 = bdefc0
  2290. Humanoid.WalkSpeed = 16
  2291. tr1.Enabled = false
  2292. attack = false
  2293. end
  2294.  
  2295. function asmek()
  2296. attack = true
  2297. --local par
  2298. --coroutine.wrap(function()
  2299. --repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0
  2300. --tr2.Enabled = false
  2301. --attack = false
  2302. --end)()
  2303. --for i=0,1,.2 do
  2304. --swait()
  2305. --PlayAnimationFromTable({
  2306. --CFrame.new(0, -0.0460019112, -0.0689063296, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  2307. --CFrame.new(0, 1.52556431, -0.222140759, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  2308. --CFrame.new(1.59158015, 0.575856388, 6.13234874e-07, 0.642787039, -0.766044974, -4.38231467e-07, 0.766045034, 0.642787039, 1.78813934e-07, 1.63912773e-07, -4.39584255e-07, 1.00000012),
  2309. --CFrame.new(-1.59158027, 0.575856209, 6.13234988e-07, 0.642787039, 0.766044974, 4.38231467e-07, -0.766045034, 0.642787039, 1.78813934e-07, -1.63912773e-07, -4.39584255e-07, 1.00000012),
  2310. --CFrame.new(0.499998927, -1.99999928, 3.81469772e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2311. --CFrame.new(-0.5, -1.41182017, 0.232474089, 1, 0, 0, 0, 0.642786622, 0.766045392, 0, -0.766045392, 0.642786622),
  2312. --}, .3, false)
  2313. --end
  2314. tr2.Enabled = true
  2315. so(536642316,RightLeg,1,1)
  2316. for i=0,1.5,.1 do
  2317. swait()
  2318. PlayAnimationFromTable({
  2319. CFrame.new(0, -0.11843279, 0.00109164417, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414)*CFrame.Angles(math.rad(-360*i),0,0),
  2320. CFrame.new(0, 1.36002374, -0.491580963, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457),
  2321. CFrame.new(1.59157825, 0.575854659, 4.30346518e-06, 0.64278698, -0.766045034, -1.0103544e-07, 0.766045094, 0.64278698, -5.36441803e-07, 5.06639481e-07, 2.98023224e-07, 1.00000012),
  2322. CFrame.new(-1.59158015, 0.575855613, 2.39611677e-06, 0.64278698, 0.766045034, 1.0103544e-07, -0.766045094, 0.64278698, -5.36441803e-07, -5.06639481e-07, 2.98023224e-07, 1.00000012),
  2323. CFrame.new(0.399999022, -1.92074621, -0.716740668, 1, 0, 0, 0, 0.766044736, -0.642787457, 0, 0.642787457, 0.766044736),
  2324. CFrame.new(-0.5, -1.41181993, 0.232477784, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457),
  2325. }, .3, false)
  2326. if i >= .4 then
  2327. mdmg(RightLeg,3.5,"Blunt")
  2328. end
  2329. end
  2330. tr2.Enabled = false
  2331. attack = false
  2332. end
  2333.  
  2334. local shots = 7
  2335. zhold = true
  2336. function shoot()
  2337. attack = true
  2338. so(169799883,gun,1,1)
  2339. for i=0,1,.1 do
  2340. swait()
  2341. PlayAnimationFromTable({
  2342. CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  2343. CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562),
  2344. CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329),
  2345. CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
  2346. CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  2347. CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
  2348. }, .3, false)
  2349. end
  2350. Humanoid.WalkSpeed = 2
  2351. local ref = Instance.new("Part",chara)
  2352. ref.Size = Vector3.new(0,0,0)
  2353. ref.Anchored = true
  2354. ref.CanCollide = false
  2355. ref.Transparency = 1
  2356. gweld.Part0 = RightArm
  2357. gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40))
  2358. for i=0,1,.1 do
  2359. swait()
  2360. PlayAnimationFromTable({
  2361. CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2362. CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2363. CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
  2364. CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
  2365. CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2366. CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2367. }, .3, false)
  2368. end
  2369. swait(5)
  2370. repeat
  2371. so(470245800,gun,1,1)
  2372. ref.CFrame = Mouse.Hit
  2373. mdmg(ref,3,"Shot")
  2374. local hitpt = Instance.new("Part",EffectModel)
  2375. hitpt.Size = Vector3.new(0,0,.3)
  2376. local bf = Instance.new("BodyVelocity",hitpt)
  2377. bf.P = 10000
  2378. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  2379. game:service'Debris':AddItem(bf,.1)
  2380. hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0)
  2381. bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10
  2382. local hitm = Instance.new("SpecialMesh",hitpt)
  2383. hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
  2384. hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
  2385. hitm.Scale = Vector3.new(3,3,3.5)
  2386. coroutine.wrap(function()
  2387. swait(120)
  2388. for i = 0,1.1 do
  2389. swait()
  2390. hitpt.Transparency = i
  2391. end
  2392. hitpt:Destroy()
  2393. end)()
  2394. Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05)
  2395. shots = shots - 1
  2396. for i=0,1,.2 do
  2397. swait()
  2398. PlayAnimationFromTable({
  2399. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2400. CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2401. CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
  2402. CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772),
  2403. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2404. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2405. }, .3, false)
  2406. end
  2407. for i=0,1,.2 do
  2408. swait()
  2409. PlayAnimationFromTable({
  2410. CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2411. CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2412. CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
  2413. CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
  2414. CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2415. CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2416. }, .3, false)
  2417. end
  2418. if shots == 0 then
  2419. so(147323220,gun,1,1)
  2420. for i=0,1.3,.1 do
  2421. swait()
  2422. PlayAnimationFromTable({
  2423. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2424. CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2425. CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
  2426. CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
  2427. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2428. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2429. }, .3, false)
  2430. end
  2431. local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2432. MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0)
  2433. coroutine.wrap(function()
  2434. swait(5)
  2435. MagPartt.CanCollide = true
  2436. swait(120)
  2437. for i = 0,1.1 do
  2438. swait()
  2439. MagPartt.Transparency = i
  2440. end
  2441. MagPartt:Destroy()
  2442. end)()
  2443. swait(10)
  2444. local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(.2,.4,1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2445. local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(0)),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
  2446. for i=0,1.4,.2 do
  2447. swait()
  2448. PlayAnimationFromTable({
  2449. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2450. CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2451. CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
  2452. CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772),
  2453. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2454. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2455. }, .3, false)
  2456. end
  2457. MagPart:Destroy()
  2458. swait(5)
  2459. for i=0,1,.2 do
  2460. swait()
  2461. PlayAnimationFromTable({
  2462. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2463. CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2464. CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
  2465. CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
  2466. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2467. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2468. }, .3, false)
  2469. end
  2470. so(506273075,gun,1,1)
  2471. for i=0,1,.2 do
  2472. swait()
  2473. PlayAnimationFromTable({
  2474. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2475. CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2476. CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
  2477. CFrame.new(-0.629361629, 0.793605626, -0.495871037, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
  2478. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2479. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2480. }, .3, false)
  2481. end
  2482. for i=0,1,.2 do
  2483. swait()
  2484. PlayAnimationFromTable({
  2485. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2486. CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2487. CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
  2488. CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
  2489. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2490. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2491. }, .3, false)
  2492. end
  2493. shots = 7
  2494. swait(10)
  2495. for i=0,1,.2 do
  2496. swait()
  2497. PlayAnimationFromTable({
  2498. CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2499. CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
  2500. CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
  2501. CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
  2502. CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2503. CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  2504. }, .3, false)
  2505. end
  2506. end
  2507. until zhold == false
  2508. swait(5)
  2509. ref:Destroy()
  2510. so(211134014,gun,1,1)
  2511. for i=0,1,.1 do
  2512. swait()
  2513. PlayAnimationFromTable({
  2514. CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  2515. CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562),
  2516. CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329),
  2517. CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
  2518. CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  2519. CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
  2520. }, .3, false)
  2521. end
  2522. gweld.Part0 = Torso
  2523. gweld.C0 = gdefc0
  2524. Humanoid.WalkSpeed = 16
  2525. attack = false
  2526. end
  2527.  
  2528. local Jails = Instance.new("Model",chara)
  2529. Jails.Name = "Jails"
  2530. function arrest()
  2531. attack = true
  2532. if Mouse.Target~= nil then
  2533. local dude = Mouse.Target.Parent
  2534. local ply = game:service'Players':GetPlayerFromCharacter(dude)
  2535. if dude:FindFirstChildOfClass("Humanoid") then
  2536. Humanoid.WalkSpeed = 0
  2537. for i,v in pairs(dude:children()) do
  2538. if v:IsA("LocalScript") or v:IsA("Tool") then
  2539. v:Destroy()
  2540. end
  2541. end
  2542. local haed = dude:FindFirstChild("Head")
  2543. local JailCell = New("Model",Jails,"JailCell",{})
  2544. local SpawnPart = New("Part",JailCell,"SpawnPart",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-76.1000137, 3.00000596, -1.99999905, 1, 0, 0, 0, 0, 1, 0, -1, 0),Anchored = true,CanCollide = false,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2545. local removescriptspart = New("Part",JailCell,"removescriptspart",{Transparency = 1,Transparency = 1,Size = Vector3.new(16, 9, 13),CFrame = CFrame.new(-69.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,CanCollide = false,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2546. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(6, 9, 1),CFrame = CFrame.new(-75.0999985, 5.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2547. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(19, 1, 16),CFrame = CFrame.new(-69.5999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2548. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-68.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2549. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2550. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 9, 16),CFrame = CFrame.new(-78.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2551. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-77.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2552. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2553. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-69.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2554. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2555. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-62.3000031, 2.70000601, 0.600000381, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2556. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(-61.5, 3.10000563, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  2557. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(35, 1, 6),CFrame = CFrame.new(-69.5999985, 0.50000602, 12, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2558. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 2.50000572, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2559. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.400000006, 0.400000006, 0.400000036),CFrame = CFrame.new(-61.2999992, 3.40000558, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  2560. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 5.5000062, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2561. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 16),CFrame = CFrame.new(-85.0999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2562. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-65.8999939, 2.10000563, -4.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2563. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.200000003, 2.00000024),CFrame = CFrame.new(-62.1000023, 2.30000591, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2564. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.19999993, 0.600000024, 0.400000036),CFrame = CFrame.new(-65.1000061, 2.10000563, -4.19999886, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2565. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.600000143, 0.400000155),CFrame = CFrame.new(-61.3000031, 2.70000529, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2566. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-62.3000031, 2.70000505, 2.19999886, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2567. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.Granite,Size = Vector3.new(1.19999981, 0.400000036, 1.20000005),CFrame = CFrame.new(-62.1000023, 2.60000587, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0509804, 0.411765, 0.67451),})
  2568. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.Glass,Reflectance = 1,Size = Vector3.new(2, 2.80000019, 0.200000003),CFrame = CFrame.new(-61.1999969, 5.20000648, 1.40000057, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),})
  2569. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Metal,Size = Vector3.new(0.599999964, 0.200000033, 0.200000003),CFrame = CFrame.new(-64.5999985, 3.70000505, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  2570. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.39999998, 1.20000005, 1.39999998),CFrame = CFrame.new(-61.8000031, 1.6000061, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2571. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.19999993, 0.600000024, 0.400000036),CFrame = CFrame.new(-62.9000015, 2.70000601, 1.3999958, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2572. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-71.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2573. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2574. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.200000003, 2.00000024),CFrame = CFrame.new(-65.0999985, 1.70000601, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2575. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.39999998, 0.600000024, 1.39999998),CFrame = CFrame.new(-65.0999985, 1.30000627, -5.29999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2576. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-67.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2577. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2578. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-74.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2579. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2580. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-71.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2581. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2582. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(19, 1, 16),CFrame = CFrame.new(-69.5999985, 10.5000114, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2583. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.Granite,Size = Vector3.new(1.19999981, 0.400000036, 1.20000005),CFrame = CFrame.new(-65.0999985, 2.00000572, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0509804, 0.411765, 0.67451),})
  2584. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-72.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2585. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2586. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-76.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2587. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2588. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-75.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2589. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2590. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.99999976, 0.400000095, 6),CFrame = CFrame.new(-76.1000137, 2.6000061, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2591. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 2.40000033, 0.400000155),CFrame = CFrame.new(-65.0999985, 3.00000525, -5.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2592. Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-64.3000031, 2.10000491, -4.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2593. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-81.0999985, 0.50000602, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2594. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-70.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2595. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2596. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-73.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2597. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2598. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(3.99999976, 0.400000036, 8),CFrame = CFrame.new(-76.1000137, 2.20000601, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  2599. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 9, 16),CFrame = CFrame.new(-60.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2600. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-77.5999985, 1.50000584, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2601. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2602. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-70.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2603. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2604. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.99999976, 0.400000095, 2),CFrame = CFrame.new(-76.1000137, 2.6000061, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  2605. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 4.50000572, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2606. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 3.50000572, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2607. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 1.50000584, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2608. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 7.5000062, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2609. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 6.5000062, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2610. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 9.50000572, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2611. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 3, 1),CFrame = CFrame.new(-81.0999985, 2.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2612. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-81.0999985, 0.50000602, 7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2613. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 3, 21),CFrame = CFrame.new(-86.5999985, 2.50000596, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2614. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 8.50000572, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2615. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(6, 9, 1),CFrame = CFrame.new(-64.0999985, 5.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2616. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(5, 3, 1),CFrame = CFrame.new(-69.5999985, 2.50000572, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2617. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(5, 2, 1),CFrame = CFrame.new(-69.5999985, 9.00000572, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2618. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 10.5000114, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2619. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-62.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2620. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2621. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-74.5999985, 1.50000584, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2622. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2623. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-74.5999985, 1.50000584, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2624. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2625. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-77.5999985, 1.50000584, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2626. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2627. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-69.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2628. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2629. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-66.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2630. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2631. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-67.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2632. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2633. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-65.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2634. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2635. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-68.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2636. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2637. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-64.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2638. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2639. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-63.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2640. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2641. Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-61.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
  2642. Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
  2643. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 6.5000062, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2644. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 2.50000572, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2645. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 10.5000114, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2646. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 4.50000572, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2647. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 3.50000572, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2648. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 8.50000572, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2649. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 9.50000572, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2650. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 16),CFrame = CFrame.new(-54.0999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2651. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-58.0999985, 0.50000602, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2652. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 5.5000062, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2653. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-58.0999985, 0.50000602, 7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2654. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 7.5000062, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2655. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 1.50000584, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2656. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 3, 21),CFrame = CFrame.new(-52.5999985, 2.50000596, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2657. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 3, 1),CFrame = CFrame.new(-58.0999985, 2.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2658. Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(35, 3, 1),CFrame = CFrame.new(-69.5999985, 2.50000596, 14.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  2659. JailCell:MoveTo(pos)
  2660. removescriptspart.Touched:connect(function(hit)
  2661. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= chara then
  2662. for i,v in pairs(hit.Parent:children()) do
  2663. if v:IsA("LocalScript") or v:IsA("Tool") then
  2664. v:Destroy()
  2665. end
  2666. end
  2667. end
  2668. end)
  2669. for _, v in pairs(chara:children()) do
  2670. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
  2671. do
  2672. local p = v:clone()
  2673. p.Name = "trail"
  2674. p.Parent = workspace
  2675. p.Transparency = 0.5
  2676. p.Anchored = true
  2677. p.BrickColor = BrickColor.White()
  2678. p.Material = "Neon"
  2679. p:BreakJoints()
  2680. p.CanCollide = false
  2681. if v == chara.Head then
  2682. for a, b in pairs(p:children()) do
  2683. if b:IsA("Sound") then
  2684. b:Destroy()
  2685. end
  2686. end
  2687. end
  2688. coroutine.resume(coroutine.create(function()
  2689. for i = 1, 50 do
  2690. swait()
  2691. p.Transparency = i / 50
  2692. end
  2693. p:Destroy()
  2694. end))
  2695. end
  2696. end
  2697. if v.className == "Accessory" then
  2698. end
  2699. end
  2700. so(1055279036,Torso,1,3)
  2701. if haed~=nil then
  2702. haed.Anchored = true
  2703. Head.CFrame = haed.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,math.rad(180),0)
  2704. end
  2705. for i=0,1,.1 do
  2706. swait()
  2707. PlayAnimationFromTable({
  2708. CFrame.new(0.174721688, 0, -0.147934705, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  2709. CFrame.new(3.35276127e-06, 1.44895828, -0.0894558877, 0.939692616, 3.12924385e-07, -0.342020482, 0.0593909845, 0.98480773, 0.163176119, 0.336824477, -0.173648328, 0.925416529),
  2710. CFrame.new(1.5, 0.499998093, -0.40000084, 0.939692676, -0.342020601, 0, 0, 0, -1, 0.342020601, 0.939692676, 0),
  2711. CFrame.new(-1.52924228, 0.286380947, -3.51718177e-06, 0.939692855, 0.342019916, 2.08616257e-07, -0.342019856, 0.939692736, -1.5155652e-07, -2.08616257e-07, 8.94069672e-08, 1.00000024),
  2712. CFrame.new(0.499998987, -2.00000095, -1.14738941e-06, 0.939692676, 0, -0.342020601, 0, 1, 0, 0.342020601, 0, 0.939692676),
  2713. CFrame.new(-0.499998212, -2.00000095, 1.90734909e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024),
  2714. }, .3, false)
  2715. end
  2716. chatfunc("You are under arrest! Now face your sentence!")
  2717. swait(50)
  2718. local soaa = Instance.new("Sound",haed)
  2719. soaa.Volume = 1
  2720. local cho = math.random(1,5)
  2721. if cho == 1 then
  2722. soaa.SoundId = "rbxassetid://111896685"
  2723. elseif cho == 2 then
  2724. soaa.SoundId = "rbxassetid://535528169"
  2725. elseif cho == 3 then
  2726. soaa.SoundId = "rbxassetid://1080363252"
  2727. elseif cho == 4 then
  2728. soaa.SoundId = "rbxassetid://147758746"
  2729. elseif cho == 5 then
  2730. soaa.SoundId = "rbxassetid://626777433"
  2731. soaa.Volume = .3
  2732. soaa.TimePosition = 1
  2733. end
  2734. game:service'Debris':AddItem(soaa,6)
  2735. soaa:Play()
  2736. if haed~=nil then
  2737. haed.Anchored = false
  2738. end
  2739. Humanoid.WalkSpeed = 16
  2740. local jc = JailCell
  2741. if ply~=nil then
  2742. local p = ply
  2743. coroutine.wrap(function()
  2744. while true do
  2745. swait()
  2746. if p~=nil and p.Character ~= nil and p.Character:FindFirstChild("Head") and jc ~= nil then
  2747. if (p.Character:FindFirstChild("Head").Position - removescriptspart.Position).magnitude >= 10 then
  2748. p.Character:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0)
  2749. end
  2750. elseif p==nil then
  2751. jc:Destroy()
  2752. break
  2753. elseif jc==nil then
  2754. break
  2755. end
  2756. end
  2757. end)()
  2758. coroutine.wrap(function()
  2759. while true do
  2760. swait()
  2761. if p~=nil and p.Character ~= nil then
  2762. for i,v in pairs(p.Character:children()) do
  2763. if v:IsA("LocalScript") or v:IsA("Tool") then
  2764. if v:IsA("LocalScript") then
  2765. v.Disabled = true
  2766. end
  2767. v:Destroy()
  2768. end
  2769. end
  2770. end
  2771. end
  2772. end)()
  2773. p.CharacterAdded:connect(function()
  2774. if p~=nil and p.Character ~= nil and p.Character:FindFirstChild("Head") and jc~=nil then
  2775. p.Character:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0)
  2776. end
  2777. end)
  2778. elseif ply == nil then
  2779. coroutine.wrap(function()
  2780. local ch = dude
  2781. while true do
  2782. swait()
  2783. if ch ~= nil and ch:FindFirstChild("Head") and jc~=nil and jc:FindFirstChild("SpawnPart")~=nil then
  2784. if (ch:FindFirstChild("Head").Position - removescriptspart.Position).magnitude >= 10 then
  2785. ch:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0)
  2786. end
  2787. elseif ch.Parent==nil then
  2788. jc:Destroy()
  2789. break
  2790. elseif jc.Parent==nil then
  2791. break
  2792. end
  2793. end
  2794. end)()
  2795. end
  2796. end
  2797. end
  2798. attack = false
  2799. end
  2800.  
  2801.  
  2802. qhold = false
  2803. justsprinted = false
  2804. function sprint()
  2805. attack = true
  2806. --print("supurinto?")
  2807. --justsprinted = true
  2808. --coroutine.wrap(function()
  2809. --swait(10)
  2810. --justsprinted = false
  2811. --end)()
  2812. repeat
  2813. swait()
  2814. PlayAnimationFromTable({
  2815. CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0),
  2816. CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2817. CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, -.6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
  2818. CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, .6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
  2819. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
  2820. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
  2821. }, .3, false)
  2822. Humanoid.WalkSpeed = 40
  2823. until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
  2824. --print'sutoppu'
  2825. Humanoid.WalkSpeed = 16
  2826. attack = false
  2827. end
  2828.  
  2829.  
  2830. function movejails()
  2831. pos = Mouse.Hit.p
  2832. for i,v in pairs(Jails:children()) do
  2833. swait(5)
  2834. v:MoveTo(pos)
  2835. end
  2836. end
  2837.  
  2838. Mouse.Button1Down:connect(function()
  2839. if attack == false then
  2840. if Anim == "Jump" or Anim == "Fall" then
  2841. asmek()
  2842. else
  2843. smek()
  2844. end
  2845. end
  2846. end)
  2847.  
  2848. local sprintt = 0
  2849.  
  2850.  
  2851. Mouse.KeyDown:connect(function(k)
  2852. k = k:lower()
  2853. if k=='m' then
  2854. if mus.IsPlaying == true then
  2855. mus:Stop()
  2856. elseif mus.IsPaused == true then
  2857. mus:Play()
  2858. end
  2859. end
  2860. if attack == false then
  2861. if k == 'q' then
  2862. qhold = true
  2863. sprint()
  2864. elseif k == 'x' then
  2865. arrest()
  2866. elseif k == 'z' then
  2867. zhold = true
  2868. shoot()
  2869. elseif k == 'p' then
  2870. movejails()
  2871. end
  2872. end
  2873. end)
  2874.  
  2875.  
  2876. Mouse.KeyUp:connect(function(k)
  2877. k = k:lower()
  2878. if k == 'q' then
  2879. qhold = false
  2880. elseif k == 'z' then
  2881. zhold = false
  2882. end
  2883. end)
  2884.  
  2885.  
  2886. coroutine.wrap(function()
  2887. while 1 do
  2888. swait()
  2889. if doe <= 360 then
  2890. doe = doe + 2
  2891. else
  2892. doe = 0
  2893. end
  2894. end
  2895. end)()
  2896. while true do
  2897. swait()
  2898. for i, v in pairs(chara:GetChildren()) do
  2899. if v:IsA("Part") then
  2900. v.Material = "SmoothPlastic"
  2901. elseif v:IsA("Accessory") then
  2902. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2903. end
  2904. end
  2905. while true do
  2906. swait()
  2907. if sprintt >= 1 then
  2908. sprintt = sprintt - 1
  2909. end
  2910.  
  2911. if Head:FindFirstChild("mus")==nil then
  2912. mus = Instance.new("Sound",Head)
  2913. mus.Name = "mus"
  2914. mus.SoundId = "rbxassetid://345868687"
  2915. mus.Looped = true
  2916. mus.Volume = 1
  2917. mus:Play()
  2918. end
  2919. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2920. velocity = RootPart.Velocity.y
  2921. sine = sine + change
  2922. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  2923. if RootPart.Velocity.y > 1 and hit == nil then
  2924. Anim = "Jump"
  2925. if attack == false then
  2926. PlayAnimationFromTable({
  2927. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  2928. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  2929. CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
  2930. CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
  2931. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2932. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  2933. }, .3, false)
  2934. end
  2935. elseif RootPart.Velocity.y < -1 and hit == nil then
  2936. Anim = "Fall"
  2937. if attack == false then
  2938. PlayAnimationFromTable({
  2939. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  2940. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  2941. CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
  2942. CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
  2943. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2944. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  2945. }, .3, false)
  2946. end
  2947. elseif Torsovelocity < 1 and hit ~= nil then
  2948. Anim = "Idle"
  2949. if attack == false then
  2950. change = 1
  2951. PlayAnimationFromTable({
  2952. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  2953. CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  2954. CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971),
  2955. CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971),
  2956. CFrame.new(0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  2957. CFrame.new(-0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  2958. }, .3, false)
  2959. end
  2960. elseif Torsovelocity > 2 and hit ~= nil then
  2961. Anim = "Walk"
  2962. if attack == false then
  2963. PlayAnimationFromTable({
  2964. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0),
  2965. CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
  2966. CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971),
  2967. CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971),
  2968. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  2969. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  2970. }, .3, false)
  2971. end
  2972. end
  2973. if 0 < #Effects then
  2974. for e = 1, #Effects do
  2975. if Effects[e] ~= nil then
  2976. local Thing = Effects[e]
  2977. if Thing ~= nil then
  2978. local Part = Thing[1]
  2979. local Mode = Thing[2]
  2980. local Delay = Thing[3]
  2981. local IncX = Thing[4]
  2982. local IncY = Thing[5]
  2983. local IncZ = Thing[6]
  2984. if Thing[2] == "Shoot" then
  2985. local Look = Thing[1]
  2986. local move = 30
  2987. if Thing[8] == 3 then
  2988. move = 10
  2989. end
  2990. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  2991. if Thing[10] ~= nil then
  2992. da = pos
  2993. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  2994. cfa = CFrame.new(Thing[4], pos)
  2995. tehCF = cfa:lerp(cf2, 0.2)
  2996. Thing[1] = tehCF.lookVector
  2997. end
  2998. local mag = (Thing[4] - pos).magnitude
  2999. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  3000. if Thing[8] == 2 then
  3001. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  3002. end
  3003. Thing[4] = Thing[4] + Look * move
  3004. Thing[3] = Thing[3] - 1
  3005. if 2 < Thing[5] then
  3006. Thing[5] = Thing[5] - 0.3
  3007. Thing[6] = Thing[6] - 0.3
  3008. end
  3009. if hit ~= nil then
  3010. Thing[3] = 0
  3011. if Thing[8] == 1 or Thing[8] == 3 then
  3012. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  3013. else
  3014. if Thing[8] == 2 then
  3015. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  3016. if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
  3017. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  3018. ref.Anchored = true
  3019. ref.CFrame = CFrame.new(pos)
  3020. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  3021. game:GetService("Debris"):AddItem(ref, 0.2)
  3022. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  3023. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  3024. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  3025. end
  3026. end
  3027. end
  3028. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  3029. ref.Anchored = true
  3030. ref.CFrame = CFrame.new(pos)
  3031. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  3032. game:GetService("Debris"):AddItem(ref, 1)
  3033. end
  3034. if Thing[3] <= 0 then
  3035. table.remove(Effects, e)
  3036. end
  3037. end
  3038. do
  3039. do
  3040. if Thing[2] == "FireWave" then
  3041. if Thing[3] <= Thing[4] then
  3042. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  3043. Thing[3] = Thing[3] + 1
  3044. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  3045. else
  3046. Part.Parent = nil
  3047. table.remove(Effects, e)
  3048. end
  3049. end
  3050. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  3051. if Thing[1].Transparency <= 1 then
  3052. if Thing[2] == "Block1" then
  3053. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3054. Mesh = Thing[7]
  3055. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3056. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3057. else
  3058. if Thing[2] == "Block2" then
  3059. Thing[1].CFrame = Thing[1].CFrame
  3060. Mesh = Thing[7]
  3061. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3062. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3063. else
  3064. if Thing[2] == "Fire" then
  3065. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  3066. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3067. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3068. else
  3069. if Thing[2] == "Cylinder" then
  3070. Mesh = Thing[7]
  3071. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3072. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3073. else
  3074. if Thing[2] == "Blood" then
  3075. Mesh = Thing[7]
  3076. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  3077. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3078. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3079. else
  3080. if Thing[2] == "Elec" then
  3081. Mesh = Thing[10]
  3082. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  3083. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3084. else
  3085. if Thing[2] == "Disappear" then
  3086. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3087. else
  3088. if Thing[2] == "Shatter" then
  3089. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3090. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  3091. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3092. Thing[6] = Thing[6] + Thing[5]
  3093. end
  3094. end
  3095. end
  3096. end
  3097. end
  3098. end
  3099. end
  3100. end
  3101. else
  3102. Part.Parent = nil
  3103. table.remove(Effects, e)
  3104. end
  3105. end
  3106. end
  3107. end
  3108. end
  3109. end
  3110. end
  3111. end
  3112. end
  3113. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement