The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Fe Cop script pastebin roblox
By Fe Cop on 2024-11-27 08:00 am | Syntax: LUA | Views: 13



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --[[ Make sure to be wearing both of these hats in order to use the script
  2. https://www.roblox.com/catalog/4776608503/Miami-Sunshine-Slugger
  3. https://www.roblox.com/catalog/4933294084/Type-37-Pulse-Rifle
  4. ]]--
  5. --[[ Options ]]--
  6. _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
  7. _G.GodMode = true --Set to true if you want godmode.
  8. _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
  9. --[[Reanimate]]--
  10. loadstring(game:HttpGet("https://paste.ee/r/uk77k/0"))()
  11. -----------------
  12. repeat wait() until _G.MSG ~= nil
  13. repeat wait() until _G.MSG.Text == ""
  14. -----------------
  15. getgenv().LoadLibrary = function(a)
  16. local t = {}
  17.  
  18. ------------------------------------------------------------------------------------------------------------------------
  19. ------------------------------------------------------------------------------------------------------------------------
  20. ------------------------------------------------------------------------------------------------------------------------
  21. ------------------------------------------------JSON Functions Begin----------------------------------------------------
  22. ------------------------------------------------------------------------------------------------------------------------
  23. ------------------------------------------------------------------------------------------------------------------------
  24. ------------------------------------------------------------------------------------------------------------------------
  25.  
  26. --JSON Encoder and Parser for Lua 5.1
  27. --
  28. --Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
  29. --All Rights Reserved.
  30.  
  31. --Permission is hereby granted, free of charge, to any person
  32. --obtaining a copy of this software to deal in the Software without
  33. --restriction, including without limitation the rights to use,
  34. --copy, modify, merge, publish, distribute, sublicense, and/or
  35. --sell copies of the Software, and to permit persons to whom the
  36. --Software is furnished to do so, subject to the following conditions:
  37.  
  38. --The above copyright notice and this permission notice shall be
  39. --included in all copies or substantial portions of the Software.
  40. --If you find this software useful please give www.chipmunkav.com a mention.
  41.  
  42. --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  43. --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  44. --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  45. --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
  46. --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  47. --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  48. --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  49.  
  50. local string = string
  51. local math = math
  52. local table = table
  53. local error = error
  54. local tonumber = tonumber
  55. local tostring = tostring
  56. local type = type
  57. local setmetatable = setmetatable
  58. local pairs = pairs
  59. local ipairs = ipairs
  60. local assert = assert
  61.  
  62.  
  63. local StringBuilder = {
  64. buffer = {}
  65. }
  66.  
  67. function StringBuilder:New()
  68. local o = {}
  69. setmetatable(o, self)
  70. self.__index = self
  71. o.buffer = {}
  72. return o
  73. end
  74.  
  75. function StringBuilder:Append(s)
  76. self.buffer[#self.buffer+1] = s
  77. end
  78.  
  79. function StringBuilder:ToString()
  80. return table.concat(self.buffer)
  81. end
  82.  
  83. local JsonWriter = {
  84. backslashes = {
  85. ['\b'] = "\\b",
  86. ['\t'] = "\\t",
  87. ['\n'] = "\\n",
  88. ['\f'] = "\\f",
  89. ['\r'] = "\\r",
  90. ['"'] = "\\\"",
  91. ['\\'] = "\\\\",
  92. ['/'] = "\\/"
  93. }
  94. }
  95.  
  96. function JsonWriter:New()
  97. local o = {}
  98. o.writer = StringBuilder:New()
  99. setmetatable(o, self)
  100. self.__index = self
  101. return o
  102. end
  103.  
  104. function JsonWriter:Append(s)
  105. self.writer:Append(s)
  106. end
  107.  
  108. function JsonWriter:ToString()
  109. return self.writer:ToString()
  110. end
  111.  
  112. function JsonWriter:Write(o)
  113. local t = type(o)
  114. if t == "nil" then
  115. self:WriteNil()
  116. elseif t == "boolean" then
  117. self:WriteString(o)
  118. elseif t == "number" then
  119. self:WriteString(o)
  120. elseif t == "string" then
  121. self:ParseString(o)
  122. elseif t == "table" then
  123. self:WriteTable(o)
  124. elseif t == "function" then
  125. self:WriteFunction(o)
  126. elseif t == "thread" then
  127. self:WriteError(o)
  128. elseif t == "userdata" then
  129. self:WriteError(o)
  130. end
  131. end
  132.  
  133. function JsonWriter:WriteNil()
  134. self:Append("null")
  135. end
  136.  
  137. function JsonWriter:WriteString(o)
  138. self:Append(tostring(o))
  139. end
  140.  
  141. function JsonWriter:ParseString(s)
  142. self:Append('"')
  143. self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
  144. local c = self.backslashes[n]
  145. if c then return c end
  146. return string.format("\\u%.4X", string.byte(n))
  147. end))
  148. self:Append('"')
  149. end
  150.  
  151. function JsonWriter:IsArray(t)
  152. local count = 0
  153. local isindex = function(k)
  154. if type(k) == "number" and k > 0 then
  155. if math.floor(k) == k then
  156. return true
  157. end
  158. end
  159. return false
  160. end
  161. for k,v in pairs(t) do
  162. if not isindex(k) then
  163. return false, '{', '}'
  164. else
  165. count = math.max(count, k)
  166. end
  167. end
  168. return true, '[', ']', count
  169. end
  170.  
  171. function JsonWriter:WriteTable(t)
  172. local ba, st, et, n = self:IsArray(t)
  173. self:Append(st)
  174. if ba then
  175. for i = 1, n do
  176. self:Write(t[i])
  177. if i < n xss=removed xss=removed xss=removed xss=removed s = "" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed result = "" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed selectionContainer.Name = "SelectionContainer" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed selectionPart.Name = "SelectionPart" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 0 then
  178. selectionPartClone = reusableAdorns[1]["part"]
  179. selectionBoxClone = reusableAdorns[1]["box"]
  180. table.remove(reusableAdorns,1)
  181.  
  182. selectionBoxClone.Visible = true
  183. else
  184. selectionPartClone = selectionPart:Clone()
  185. selectionPartClone.Archivable = false
  186.  
  187. selectionBoxClone = selectionBox:Clone()
  188. selectionBoxClone.Archivable = false
  189.  
  190. selectionBoxClone.Adornee = selectionPartClone
  191. selectionBoxClone.Parent = selectionContainer
  192.  
  193. selectionBoxClone.Adornee = selectionPartClone
  194.  
  195. selectionBoxClone.Parent = selectionContainer
  196. end
  197.  
  198. if theColor then
  199. selectionBoxClone.Color = theColor
  200. end
  201.  
  202. return selectionPartClone, selectionBoxClone
  203. end
  204.  
  205. -- iterates through all current adornments and deletes any that don't have latest tag
  206. function cleanUpAdornments()
  207. for cellPos, adornTable in pairs(adornments) do
  208.  
  209. if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
  210. adornTable.SelectionBox.Visible = false
  211. table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
  212. adornments[cellPos] = nil
  213. end
  214. end
  215. end
  216.  
  217. -- helper function to update tag
  218. function incrementAliveCounter()
  219. aliveCounter = aliveCounter + 1
  220. if aliveCounter > 1000000 then
  221. aliveCounter = 0
  222. end
  223. return aliveCounter
  224. end
  225.  
  226. -- finds full cells in region and adorns each cell with a box, with the argument color
  227. function adornFullCellsInRegion(region, color)
  228. local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
  229. local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
  230.  
  231. local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
  232. local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
  233.  
  234. currentKeepAliveTag = incrementAliveCounter()
  235. for y = cellPosBegin.y, cellPosEnd.y do
  236. for z = cellPosBegin.z, cellPosEnd.z do
  237. for x = cellPosBegin.x, cellPosEnd.x do
  238. local cellMaterial = GetCell(terrain, x, y, z)
  239.  
  240. if cellMaterial ~= emptyMaterial then
  241. local cframePos = CellCenterToWorld(terrain, x, y, z)
  242. local cellPos = Vector3int16.new(x,y,z)
  243.  
  244. local updated = false
  245. for cellPosAdorn, adornTable in pairs(adornments) do
  246. if cellPosAdorn == cellPos then
  247. adornTable.KeepAlive = currentKeepAliveTag
  248. if color then
  249. adornTable.SelectionBox.Color = color
  250. end
  251. updated = true
  252. break
  253. end
  254. end
  255.  
  256. if not updated then
  257. local selectionPart, selectionBox = createAdornment(color)
  258. selectionPart.Size = Vector3.new(4,4,4)
  259. selectionPart.CFrame = CFrame.new(cframePos)
  260. local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
  261. adornments[cellPos] = adornTable
  262. end
  263. end
  264. end
  265. end
  266. end
  267. cleanUpAdornments()
  268. end
  269.  
  270.  
  271. ------------------------------------- setup code ------------------------------
  272. lastRegion = regionToSelect
  273.  
  274. if selectEmptyCells then -- use one big selection to represent the area selected
  275. local selectionPart, selectionBox = createAdornment(color)
  276.  
  277. selectionPart.Size = regionToSelect.Size
  278. selectionPart.CFrame = regionToSelect.CFrame
  279.  
  280. adornments.SelectionPart = selectionPart
  281. adornments.SelectionBox = selectionBox
  282.  
  283. updateSelection =
  284. function (newRegion, color)
  285. if newRegion and newRegion ~= lastRegion then
  286. lastRegion = newRegion
  287. selectionPart.Size = newRegion.Size
  288. selectionPart.CFrame = newRegion.CFrame
  289. end
  290. if color then
  291. selectionBox.Color = color
  292. end
  293. end
  294. else -- use individual cell adorns to represent the area selected
  295. adornFullCellsInRegion(regionToSelect, color)
  296. updateSelection =
  297. function (newRegion, color)
  298. if newRegion and newRegion ~= lastRegion then
  299. lastRegion = newRegion
  300. adornFullCellsInRegion(newRegion, color)
  301. end
  302. end
  303.  
  304. end
  305.  
  306. local destroyFunc = function()
  307. updateSelection = nil
  308. if selectionContainer then selectionContainer:Destroy() end
  309. adornments = nil
  310. end
  311.  
  312. return updateSelection, destroyFunc
  313. end
  314.  
  315. -----------------------------Terrain Utilities End-----------------------------
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323. ------------------------------------------------------------------------------------------------------------------------
  324. ------------------------------------------------------------------------------------------------------------------------
  325. ------------------------------------------------------------------------------------------------------------------------
  326. ------------------------------------------------Signal class begin------------------------------------------------------
  327. ------------------------------------------------------------------------------------------------------------------------
  328. ------------------------------------------------------------------------------------------------------------------------
  329. ------------------------------------------------------------------------------------------------------------------------
  330. --[[
  331. A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
  332. can be used to create "custom events" for user-made code.
  333. API:
  334. Method :connect( function handler )
  335. Arguments: The function to connect to.
  336. Returns: A new connection object which can be used to disconnect the connection
  337. Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
  338. the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
  339. connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
  340. NOT mean that the first will be called before the second as a result of a call to |fire|.
  341.  
  342. Method :disconnect()
  343. Arguments: None
  344. Returns: None
  345. Description: Disconnects all of the functions connected to this signal.
  346.  
  347. Method :fire( ... )
  348. Arguments: Any arguments are accepted
  349. Returns: None
  350. Description: Calls all of the currently connected functions with the given arguments.
  351.  
  352. Method :wait()
  353. Arguments: None
  354. Returns: The arguments given to fire
  355. Description: This call blocks until
  356. ]]
  357.  
  358. function t.CreateSignal()
  359. local this = {}
  360.  
  361. local mBindableEvent = Instance.new('BindableEvent')
  362. local mAllCns = {} --all connection objects returned by mBindableEvent::connect
  363.  
  364. --main functions
  365. function this:connect(func)
  366. if self ~= this then error("connect must be called with `:`, not `.`", 2) end
  367. if type(func) ~= 'function' then
  368. error("Argument #1 of connect must be a function, got a "..type(func), 2)
  369. end
  370. local cn = mBindableEvent.Event:Connect(func)
  371. mAllCns[cn] = true
  372. local pubCn = {}
  373. function pubCn:disconnect()
  374. cn:Disconnect()
  375. mAllCns[cn] = nil
  376. end
  377. pubCn.Disconnect = pubCn.disconnect
  378.  
  379. return pubCn
  380. end
  381.  
  382. function this:disconnect()
  383. if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
  384. for cn, _ in pairs(mAllCns) do
  385. cn:Disconnect()
  386. mAllCns[cn] = nil
  387. end
  388. end
  389.  
  390. function this:wait()
  391. if self ~= this then error("wait must be called with `:`, not `.`", 2) end
  392. return mBindableEvent.Event:Wait()
  393. end
  394.  
  395. function this:fire(...)
  396. if self ~= this then error("fire must be called with `:`, not `.`", 2) end
  397. mBindableEvent:Fire(...)
  398. end
  399.  
  400. this.Connect = this.connect
  401. this.Disconnect = this.disconnect
  402. this.Wait = this.wait
  403. this.Fire = this.fire
  404.  
  405. return this
  406. end
  407.  
  408. ------------------------------------------------- Sigal class End ------------------------------------------------------
  409.  
  410.  
  411.  
  412.  
  413. ------------------------------------------------------------------------------------------------------------------------
  414. ------------------------------------------------------------------------------------------------------------------------
  415. ------------------------------------------------------------------------------------------------------------------------
  416. -----------------------------------------------Create Function Begins---------------------------------------------------
  417. ------------------------------------------------------------------------------------------------------------------------
  418. ------------------------------------------------------------------------------------------------------------------------
  419. ------------------------------------------------------------------------------------------------------------------------
  420. --[[
  421. A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
  422. the object to be created. The function then returns another function which either accepts accepts no arguments, in
  423. which case it simply creates an object of the given type, or a table argument that may contain several types of data,
  424. in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
  425. type of data and what operation each will perform:
  426. 1) A string key mapping to some value:
  427. Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
  428. ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
  429. |Create| call's body.
  430.  
  431. 2) An integral key mapping to another Instance:
  432. Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
  433. parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
  434. need for temporary variables to store references to those objects.
  435.  
  436. 3) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
  437. The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
  438. for those who really want such a functionality. The name of the event whose name is passed to
  439. Create.E( string )
  440.  
  441. 4) A key which is the Create function itself, and a value which is a function
  442. The function will be run with the argument of the object itself after all other initialization of the object is
  443. done by create. This provides a way to do arbitrary things involving the object from withing the create
  444. hierarchy.
  445. Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
  446. it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
  447. constructor callback function is possible, it is probably not a good design choice.
  448. Note: Since the constructor function is called after all other initialization, a Create block cannot have two
  449. constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
  450.  
  451.  
  452. Some example usages:
  453.  
  454. A simple example which uses the Create function to create a model object and assign two of it's properties.
  455. local model = Create'Model'{
  456. Name = 'A New model',
  457. Parent = game.Workspace,
  458. }
  459.  
  460.  
  461. An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
  462. Model_Container
  463. |-ObjectValue
  464. | |
  465. | `-BoolValueChild
  466. `-IntValue
  467.  
  468. local model = Create'Model'{
  469. Name = 'Model_Container',
  470. Create'ObjectValue'{
  471. Create'BoolValue'{
  472. Name = 'BoolValueChild',
  473. },
  474. },
  475. Create'IntValue'{},
  476. }
  477.  
  478.  
  479. An example using the event syntax:
  480.  
  481. local part = Create'Part'{
  482. [Create.E'Touched'] = function(part)
  483. print("I was touched by "..part.Name)
  484. end,
  485. }
  486.  
  487.  
  488. An example using the general constructor syntax:
  489.  
  490. local model = Create'Part'{
  491. [Create] = function(this)
  492. print("Constructor running!")
  493. this.Name = GetGlobalFoosAndBars(this)
  494. end,
  495. }
  496.  
  497.  
  498. Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
  499. any unexpected behavior. EG:
  500. local partCreatingFunction = Create'Part'
  501. local part = partCreatingFunction()
  502. ]]
  503.  
  504. --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
  505. --will be created in several steps rather than as a single function declaration.
  506. local function Create_PrivImpl(objectType)
  507. if type(objectType) ~= 'string' then
  508. error("Argument of Create must be a string", 2)
  509. end
  510. --return the proxy function that gives us the nice Create'string'{data} syntax
  511. --The first function call is a function call using Lua's single-string-argument syntax
  512. --The second function call is using Lua's single-table-argument syntax
  513. --Both can be chained together for the nice effect.
  514. return function(dat)
  515. --default to nothing, to handle the no argument given case
  516. dat = dat or {}
  517.  
  518. --make the object to mutate
  519. local obj = Instance.new(objectType)
  520. local parent = nil
  521.  
  522. --stored constructor function to be called after other initialization
  523. local ctor = nil
  524.  
  525. for k, v in pairs(dat) do
  526. --add property
  527. if type(k) == 'string' then
  528. if k == 'Parent' then
  529. -- Parent should always be set last, setting the Parent of a new object
  530. -- immediately makes performance worse for all subsequent property updates.
  531. parent = v
  532. else
  533. obj[k] = v
  534. end
  535.  
  536.  
  537. --add child
  538. elseif type(k) == 'number' then
  539. if type(v) ~= 'userdata' then
  540. error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
  541. end
  542. v.Parent = obj
  543.  
  544.  
  545. --event connect
  546. elseif type(k) == 'table' and k.__eventname then
  547. if type(v) ~= 'function' then
  548. error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
  549. got: "..tostring(v), 2)
  550. end
  551. obj[k.__eventname]:connect(v)
  552.  
  553.  
  554. --define constructor function
  555. elseif k == t.Create then
  556. if type(v) ~= 'function' then
  557. error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
  558. got: "..tostring(v), 2)
  559. elseif ctor then
  560. --ctor already exists, only one allowed
  561. error("Bad entry in Create body: Only one constructor function is allowed", 2)
  562. end
  563. ctor = v
  564.  
  565.  
  566. else
  567. error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
  568. end
  569. end
  570.  
  571. --apply constructor function if it exists
  572. if ctor then
  573. ctor(obj)
  574. end
  575.  
  576. if parent then
  577. obj.Parent = parent
  578. end
  579.  
  580. --return the completed object
  581. return obj
  582. end
  583. end
  584.  
  585. --now, create the functor:
  586. t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
  587.  
  588. --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
  589. --function can recognize as special.
  590. t.Create.E = function(eventName)
  591. return {__eventname = eventName}
  592. end
  593.  
  594. -------------------------------------------------Create function End----------------------------------------------------
  595.  
  596.  
  597.  
  598.  
  599. ------------------------------------------------------------------------------------------------------------------------
  600. ------------------------------------------------------------------------------------------------------------------------
  601. ------------------------------------------------------------------------------------------------------------------------
  602. ------------------------------------------------Documentation Begin-----------------------------------------------------
  603. ------------------------------------------------------------------------------------------------------------------------
  604. ------------------------------------------------------------------------------------------------------------------------
  605. ------------------------------------------------------------------------------------------------------------------------
  606.  
  607. t.Help =
  608. function(funcNameOrFunc)
  609. --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
  610. if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
  611. return "Function DecodeJSON. " ..
  612. "Arguments: (string). " ..
  613. "Side effect: returns a table with all parsed JSON values"
  614. end
  615. if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
  616. return "Function EncodeJSON. " ..
  617. "Arguments: (table). " ..
  618. "Side effect: returns a string composed of argument table in JSON data format"
  619. end
  620. if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
  621. return "Function MakeWedge. " ..
  622. "Arguments: (x, y, z, [default material]). " ..
  623. "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
  624. "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
  625. "Returns true if made a wedge, false if the cell remains a block "
  626. end
  627. if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
  628. return "Function SelectTerrainRegion. " ..
  629. "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
  630. "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
  631. "(this should be a region3 value). The selection box color is detemined by the color argument " ..
  632. "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
  633. "SelectEmptyCells is bool, when true will select all cells in the " ..
  634. "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
  635. "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
  636. "Also returns a second function that takes no arguments and destroys the selection"
  637. end
  638. if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
  639. return "Function CreateSignal. "..
  640. "Arguments: None. "..
  641. "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
  642. "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
  643. "Lua code. "..
  644. "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
  645. "For more info you can pass the method name to the Help function, or view the wiki page "..
  646. "for this library. EG: Help('Signal:connect')."
  647. end
  648. if funcNameOrFunc == "Signal:connect" then
  649. return "Method Signal:connect. "..
  650. "Arguments: (function handler). "..
  651. "Return: A connection object which can be used to disconnect the connection to this handler. "..
  652. "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
  653. "handler function will be called with the arguments passed to |fire|."
  654. end
  655. if funcNameOrFunc == "Signal:wait" then
  656. return "Method Signal:wait. "..
  657. "Arguments: None. "..
  658. "Returns: The arguments passed to the next call to |fire|. "..
  659. "Description: This call does not return until the next call to |fire| is made, at which point it "..
  660. "will return the values which were passed as arguments to that |fire| call."
  661. end
  662. if funcNameOrFunc == "Signal:fire" then
  663. return "Method Signal:fire. "..
  664. "Arguments: Any number of arguments of any type. "..
  665. "Returns: None. "..
  666. "Description: This call will invoke any connected handler functions, and notify any waiting code "..
  667. "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
  668. "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
  669. "it takes the connected handler functions to complete."
  670. end
  671. if funcNameOrFunc == "Signal:disconnect" then
  672. return "Method Signal:disconnect. "..
  673. "Arguments: None. "..
  674. "Returns: None. "..
  675. "Description: This call disconnects all handlers attacched to this function, note however, it "..
  676. "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
  677. "can also be called on the connection object which is returned from Signal:connect to only "..
  678. "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
  679. end
  680. if funcNameOrFunc == "Create" then
  681. return "Function Create. "..
  682. "Arguments: A table containing information about how to construct a collection of objects. "..
  683. "Returns: The constructed objects. "..
  684. "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
  685. "is best described via example, please see the wiki page for a description of how to use it."
  686. end
  687. end
  688.  
  689. --------------------------------------------Documentation Ends----------------------------------------------------------
  690.  
  691. return t
  692. end
  693.  
  694. local pistol = game:GetService("Players").LocalPlayer.Character["Black Type-37 Pulse Rifle"]
  695. pistol.Handle.CustomAtt0:Destroy()
  696. pistol.Handle.CustomAtt1:Destroy()
  697.  
  698. local bat = game:GetService("Players").LocalPlayer.Character["Jackette's SluggerAccessory"]
  699. bat.Handle.CustomAtt0:Destroy()
  700. bat.Handle.CustomAtt1:Destroy()
  701.  
  702. local function weld(part0, part1)
  703. local attachment0 = Instance.new("Attachment", part0)
  704. if part0 == pistol.Handle then
  705. attachment0.Rotation = Vector3.new(-90, -60, -270)
  706. elseif part0 == bat.Handle then
  707. attachment0.Position = Vector3.new(0, 0.5, 0)
  708. attachment0.Rotation = Vector3.new(0, -90, 0)
  709. end
  710. local attachment1 = Instance.new("Attachment", part1)
  711. local weldpos = Instance.new("AlignPosition", part0)
  712. weldpos.Attachment0 = attachment0
  713. weldpos.Attachment1 = attachment1
  714. weldpos.RigidityEnabled = false
  715. weldpos.ReactionForceEnabled = false
  716. weldpos.ApplyAtCenterOfMass = false
  717. weldpos.MaxForce = 10000
  718. weldpos.MaxVelocity = 10000
  719. weldpos.Responsiveness = 10000
  720. local weldrot = Instance.new("AlignOrientation", part0)
  721. weldrot.Attachment0 = attachment0
  722. weldrot.Attachment1 = attachment1
  723. weldrot.ReactionTorqueEnabled = true
  724. weldrot.PrimaryAxisOnly = false
  725. weldrot.MaxTorque = 10000
  726. weldrot.MaxAngularVelocity = 10000
  727. weldrot.Responsiveness = 10000
  728. end
  729.  
  730. ----------------------------------------------------------------
  731. --WATCH OUT HERE COMES THE COPPAS--
  732. ----------------------------------------------------------------
  733. --By CKbackup (Sugarie Saffron) --
  734. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  735. --Discord: Sugarie Saffron#4705 --
  736. ----------------------------------------------------------------
  737.  
  738. print([[
  739. --Script Cop--
  740. By CKbackup (Sugarie Saffron)
  741. YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
  742. Discord: Sugarie Saffron#4705
  743. --------------------------------
  744. As I've been demoted from my SB
  745. Mod rank in VSB, I don't see the
  746. need to hold this back any longer.
  747.  
  748. Also, if the anims look weird or
  749. the weapon looks out of place,
  750. it's because it's actually modeled
  751. off a scaled rig with a package.
  752. It looks better with the Boy
  753. package.
  754. --------------------------------
  755. (Keys)
  756. M - Mute/Play Music
  757.  
  758. (Hold) Q - Run
  759.  
  760. Click - Baton Swing
  761. Z - Pistol Shoot (You can also hold)
  762. ]])
  763.  
  764. wait(1/60)
  765. Effects = { }
  766. local attackm = nil
  767. local Player = game:service'Players'.localPlayer
  768. local chara = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
  769. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  770. local Mouse = Player:GetMouse()
  771. local LeftArm = chara["Left Arm"]
  772. local RightArm = chara["Right Arm"]
  773. local LeftLeg = chara["Left Leg"]
  774. local RightLeg = chara["Right Leg"]
  775. local Head = chara.Head
  776. local Torso = chara.Torso
  777. local RootPart = chara.HumanoidRootPart
  778. local RootJoint = RootPart.RootJoint
  779. local attack = false
  780. local Anim = 'Idle'
  781. local attacktype = 1
  782. local delays = false
  783. local play = true
  784. local targetted = nil
  785. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  786. local velocity = RootPart.Velocity.y
  787. local sine = 0
  788. local change = 1
  789. local doe = 0
  790. local Create = LoadLibrary("RbxUtility").Create
  791.  
  792. local plrs = game:GetService("Players")
  793. local plr = plrs.LocalPlayer
  794. local char = plr.Character
  795. local hrp = char.HumanoidRootPart
  796.  
  797. hrp.Name = "HumanoidRootPart"
  798. hrp.Transparency = 0.5
  799. hrp.Anchored = false
  800. if hrp:FindFirstChildOfClass("AlignPosition") then
  801. hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
  802. end
  803. if hrp:FindFirstChildOfClass("AlignOrientation") then
  804. hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
  805. end
  806. local bp = Instance.new("BodyPosition", hrp)
  807. bp.Position = hrp.Position
  808. bp.D = 9999999
  809. bp.P = 999999999999999
  810. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  811. local flinger = Instance.new("BodyAngularVelocity",hrp)
  812. flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  813. flinger.P = 1000000000000000000000000000
  814. flinger.AngularVelocity = Vector3.new(10000,10000,10000)
  815.  
  816. spawn(function()
  817. while game:GetService("RunService").Heartbeat:Wait() do
  818. if attack == false then
  819. bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].HumanoidRootPart.Position
  820. end
  821. end
  822. end)
  823.  
  824. plr:GetMouse().Button1Down:Connect(function()
  825. repeat wait() until attack == true
  826. repeat
  827. game:GetService("RunService").Heartbeat:Wait()
  828. if attackm == "baton" then
  829. bp.Position = bat.Handle.Position
  830. end
  831. until attack == false
  832. end)
  833.  
  834. plr:GetMouse().KeyDown:Connect(function(key)
  835. if key == "z" then
  836. repeat wait() until attack == true
  837. repeat
  838. game:GetService("RunService").Heartbeat:Wait()
  839. if attackm == "gun" then
  840. if plr:GetMouse().Target ~= nil then
  841. bp.Position = plr:GetMouse().Hit.p
  842. end
  843. end
  844. until attack == false
  845. end
  846. end)
  847.  
  848. Humanoid.WalkSpeed = 16
  849.  
  850. Humanoid.Animator.Parent = nil
  851. chara.Animate.Parent = nil
  852.  
  853. local pos = Vector3.new(0,0,-50)
  854.  
  855. local newMotor = function(part0, part1, c0, c1)
  856. local w = Create('Motor'){
  857. Parent = part0,
  858. Part0 = part0,
  859. Part1 = part1,
  860. C0 = c0,
  861. C1 = c1,
  862. }
  863. return w
  864. end
  865.  
  866. function clerp(a, b, t)
  867. return a:lerp(b, t)
  868. end
  869.  
  870. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  871. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  872.  
  873. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  874. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  875. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  876. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  877. RootJoint.C1 = CFrame.new(0, 0, 0)
  878. RootJoint.C0 = CFrame.new(0, 0, 0)
  879. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  880. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  881.  
  882.  
  883. local rarmc1 = RW.C1
  884. local larmc1 = LW.C1
  885. local rlegc1 = RH.C1
  886. local llegc1 = LH.C1
  887.  
  888. local resetc1 = false
  889.  
  890. function PlayAnimationFromTable(table, speed, bool)
  891. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  892. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  893. RW.C0 = clerp(RW.C0, table[3], speed)
  894. LW.C0 = clerp(LW.C0, table[4], speed)
  895. RH.C0 = clerp(RH.C0, table[5], speed)
  896. LH.C0 = clerp(LH.C0, table[6], speed)
  897. if bool == true then
  898. if resetc1 == false then
  899. resetc1 = true
  900. RootJoint.C1 = RootJoint.C1
  901. Torso.Neck.C1 = Torso.Neck.C1
  902. RW.C1 = rarmc1
  903. LW.C1 = larmc1
  904. RH.C1 = rlegc1
  905. LH.C1 = llegc1
  906. end
  907. end
  908. end
  909.  
  910.  
  911. frame = 0.03333333333333
  912. tf = 0
  913. allowframeloss = false
  914. tossremainder = false
  915. lastframe = tick()
  916. game:GetService("RunService").Heartbeat:connect(function(s, p)
  917. tf = tf + s
  918. if tf >= frame then
  919. if allowframeloss then
  920. lastframe = tick()
  921. else
  922. lastframe = tick()
  923. end
  924. if tossremainder then
  925. tf = 0
  926. else
  927. tf = tf - frame * math.floor(tf / frame)
  928. end
  929. end
  930. end)
  931. function swait(num)
  932. if num == 0 or num == nil then
  933. game:GetService("RunService").Heartbeat:Wait()
  934. else
  935. for i = 0, num do
  936. game:GetService("RunService").Heartbeat:Wait()
  937. end
  938. end
  939. end
  940.  
  941. function RemoveOutlines(part)
  942. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  943. end
  944.  
  945.  
  946. CFuncs = {
  947. ["Part"] = {
  948. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  949. local Part = Create("Part"){
  950. Parent = Parent,
  951. Reflectance = Reflectance,
  952. Transparency = Transparency,
  953. CanCollide = false,
  954. Locked = true,
  955. BrickColor = BrickColor.new(tostring(BColor)),
  956. Name = Name,
  957. Size = Size,
  958. Material = Material,
  959. }
  960. RemoveOutlines(Part)
  961. return Part
  962. end;
  963. };
  964.  
  965. ["Mesh"] = {
  966. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  967. local Msh = Create(Mesh){
  968. Parent = Part,
  969. Offset = OffSet,
  970. Scale = Scale,
  971. }
  972. if Mesh == "SpecialMesh" then
  973. Msh.MeshType = MeshType
  974. Msh.MeshId = MeshId
  975. end
  976. return Msh
  977. end;
  978. };
  979.  
  980. ["Mesh"] = {
  981. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  982. local Msh = Create(Mesh){
  983. Parent = Part,
  984. Offset = OffSet,
  985. Scale = Scale,
  986. }
  987. if Mesh == "SpecialMesh" then
  988. Msh.MeshType = MeshType
  989. Msh.MeshId = MeshId
  990. end
  991. return Msh
  992. end;
  993. };
  994.  
  995. ["Weld"] = {
  996. Create = function(Parent, Part0, Part1, C0, C1)
  997. local Weld = Create("Weld"){
  998. Parent = Parent,
  999. Part0 = Part0,
  1000. Part1 = Part1,
  1001. C0 = C0,
  1002. C1 = C1,
  1003. }
  1004. return Weld
  1005. end;
  1006. };
  1007.  
  1008. ["ParticleEmitter"] = {
  1009. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1010. local fp = Create("ParticleEmitter"){
  1011. Parent = Parent,
  1012. Color = ColorSequence.new(Color1, Color2),
  1013. LightEmission = LightEmission,
  1014. Size = Size,
  1015. Texture = Texture,
  1016. Transparency = Transparency,
  1017. ZOffset = ZOffset,
  1018. Acceleration = Accel,
  1019. Drag = Drag,
  1020. LockedToPart = LockedToPart,
  1021. VelocityInheritance = VelocityInheritance,
  1022. EmissionDirection = EmissionDirection,
  1023. Enabled = Enabled,
  1024. Lifetime = LifeTime,
  1025. Rate = Rate,
  1026. Rotation = Rotation,
  1027. RotSpeed = RotSpeed,
  1028. Speed = Speed,
  1029. VelocitySpread = VelocitySpread,
  1030. }
  1031. return fp
  1032. end;
  1033. };
  1034.  
  1035. CreateTemplate = {
  1036.  
  1037. };
  1038. }
  1039.  
  1040.  
  1041. function so(id,par,pit,vol)
  1042. local sou = Instance.new("Sound", par or workspace)
  1043. if par == chara then
  1044. sou.Parent = chara.Torso
  1045. end
  1046. sou.Volume = vol
  1047. sou.Pitch = pit or 1
  1048. sou.SoundId = "rbxassetid://" .. id
  1049. sou.PlayOnRemove = true
  1050. sou:Destroy()
  1051. end
  1052.  
  1053. local mus = Instance.new("Sound",Head)
  1054. mus.Name = "mus"
  1055. mus.SoundId = "rbxassetid://345868687"
  1056. mus.Looped = true
  1057. mus.Volume = 1
  1058. mus:Play()
  1059.  
  1060. New = function(Object, Parent, Name, Data)
  1061. local Object = Instance.new(Object)
  1062. for Index, Value in pairs(Data or {}) do
  1063. Object[Index] = Value
  1064. end
  1065. Object.Parent = Parent
  1066. Object.Name = Name
  1067. return Object
  1068. end
  1069.  
  1070. local PoliceHat = New("Part",chara,"PoliceHat",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.400000006, 1),CFrame = CFrame.new(18.3999939, 1.20000005, -23.1000061, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1071. local Mesh = New("SpecialMesh",PoliceHat,"Mesh",{Scale = Vector3.new(1.10000002, 1.20000005, 1.10000002),MeshId = "rbxassetid://1028788",TextureId = "rbxassetid://152240477",MeshType = Enum.MeshType.FileMesh,})
  1072. local Weld = New("ManualWeld",PoliceHat,"Weld",{Part0 = PoliceHat,Part1 = Head,C1 = CFrame.new(0, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1073. for i, v in pairs(chara:children()) do
  1074. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
  1075. v:Destroy()
  1076. elseif v.Name == "FakeHeadM" then
  1077. v.Ahoge.Mesh.Scale = Vector3.new()
  1078. elseif v.Name == "Chest" then
  1079. for a, b in pairs(v:children()) do
  1080. if b.Name ~= "Tail" then
  1081. b.Transparency = 1
  1082. end
  1083. end
  1084. end
  1085. end
  1086. local sh = Instance.new("Shirt",chara)
  1087. local pn = Instance.new("Pants",chara)
  1088. sh.ShirtTemplate = "rbxassetid://133284214"
  1089. pn.PantsTemplate = "rbxassetid://15224239"
  1090.  
  1091.  
  1092. bdefc0 = CFrame.new(.8,-1,0)*CFrame.Angles(math.rad(30),0,0)
  1093. gdefc0 = CFrame.new(-.8,-1,0)*CFrame.Angles(math.rad(130),0,0)
  1094.  
  1095. local baton = Instance.new("Part",chara)
  1096. baton.Name = "Baton"
  1097. baton.Size = Vector3.new(.2,.2,3.2)
  1098. baton.BrickColor = BrickColor.new("Really black")
  1099. baton.CanCollide = false
  1100. CFuncs.Mesh.Create("SpecialMesh", baton, "FileMesh", "rbxassetid://11820238", Vector3.new(), Vector3.new(1.5,1.5,1.5))
  1101.  
  1102. local bweld = Instance.new("Weld",baton)
  1103. bweld.Part0 = Torso
  1104. bweld.Part1 = baton
  1105. bweld.C0 = bdefc0
  1106.  
  1107. local gun = Instance.new("Part", chara)
  1108. gun.Name = "Gun"
  1109. gun.Size = Vector3.new(.2,.2,.2)
  1110. gun.BrickColor = BrickColor.new("Really black")
  1111. gun.CanCollide = false
  1112. CFuncs.Mesh.Create("SpecialMesh", gun, "FileMesh", "rbxassetid://72012879", Vector3.new(), Vector3.new(2,2,2))
  1113.  
  1114. local gweld = Instance.new("Weld", gun)
  1115. gweld.Part0 = Torso
  1116. gweld.Part1 = gun
  1117. gweld.C0 = gdefc0
  1118.  
  1119. weld(pistol.Handle, gun)
  1120. weld(bat.Handle, baton)
  1121.  
  1122. local att1 = Instance.new("Attachment",baton)
  1123. att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2)
  1124. local att2 = Instance.new("Attachment",baton)
  1125. att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2)
  1126. local tr1 = Instance.new("Trail",baton)
  1127. tr1.Color = ColorSequence.new(Color3.new(1,1,1))
  1128. tr1.Transparency = NumberSequence.new(0,1)
  1129. tr1.Lifetime = .5
  1130. tr1.Enabled = false
  1131. tr1.LightEmission = 1
  1132. tr1.Attachment0 = att1
  1133. tr1.Attachment1 = att2
  1134. local att3 = Instance.new("Attachment",RightLeg)
  1135. att3.Position = Vector3.new(0,1,0)
  1136. local att4 = Instance.new("Attachment",RightLeg)
  1137. att4.Position = Vector3.new(0,-1,0)
  1138. local tr2 = Instance.new("Trail",RightLeg)
  1139. tr2.Color = ColorSequence.new(Color3.new(1,1,1))
  1140. tr2.Transparency = NumberSequence.new(0,1)
  1141. tr2.Lifetime = .5
  1142. tr2.Enabled = false
  1143. tr2.LightEmission = 1
  1144. tr2.Attachment0 = att3
  1145. tr2.Attachment1 = att4
  1146.  
  1147. function rayCast(Position, Direction, Range, Ignore)
  1148. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1149. end
  1150.  
  1151. function mdmg(Part, Magnitude, HitType)
  1152. for _, c in pairs(workspace:GetDescendants()) do
  1153. local hum = c:FindFirstChildOfClass("Humanoid")
  1154. if hum ~= nil then
  1155. local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
  1156. if head ~= nil then
  1157. local targ = head.Position - Part.Position
  1158. local mag = targ.magnitude
  1159. if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then
  1160. if c.Name ~= chara then
  1161. if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then
  1162. local val = Instance.new("BoolValue",c)
  1163. val.Name = "MagDmgd"
  1164. local asd = Instance.new("ParticleEmitter",head)
  1165. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1166. asd.LightEmission = .1
  1167. asd.Size = NumberSequence.new(0.2)
  1168. asd.Texture = "rbxassetid://771221224"
  1169. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
  1170. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1171. asd.Transparency = bbb
  1172. asd.Size = aaa
  1173. asd.ZOffset = .9
  1174. asd.Acceleration = Vector3.new(0, -5, 0)
  1175. asd.LockedToPart = false
  1176. asd.EmissionDirection = "Back"
  1177. asd.Lifetime = NumberRange.new(1, 2)
  1178. asd.Rate = 1000
  1179. asd.Rotation = NumberRange.new(-100, 100)
  1180. asd.RotSpeed = NumberRange.new(-100, 100)
  1181. asd.Speed = NumberRange.new(6)
  1182. asd.VelocitySpread = 10000
  1183. asd.Enabled = false
  1184. asd:Emit(20)
  1185. game:service'Debris':AddItem(asd,3)
  1186. --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  1187. if HitType == "Blunt" then
  1188. so(386946017,head,.95,3)
  1189. game:service'Debris':AddItem(val,1)
  1190. elseif HitType == "Shot" then
  1191. so(144884872,head,.9,3)
  1192. game:service'Debris':AddItem(val,.05)
  1193. end
  1194. local soaa = Instance.new("Sound",c.Head)
  1195. soaa.Volume = .5
  1196. local cho = math.random(1,5)
  1197. if cho == 1 then
  1198. soaa.SoundId = "rbxassetid://111896685"
  1199. elseif cho == 2 then
  1200. soaa.SoundId = "rbxassetid://535528169"
  1201. elseif cho == 3 then
  1202. soaa.SoundId = "rbxassetid://1080363252"
  1203. elseif cho == 4 then
  1204. soaa.SoundId = "rbxassetid://147758746"
  1205. elseif cho == 5 then
  1206. soaa.SoundId = "rbxassetid://626777433"
  1207. soaa.Volume = .2
  1208. soaa.TimePosition = 1
  1209. end
  1210. game:service'Debris':AddItem(soaa,6)
  1211. soaa:Play()
  1212. for i,v in pairs(c:children()) do
  1213. if v:IsA("LocalScript") or v:IsA("Tool") then
  1214. v:Destroy()
  1215. end
  1216. end
  1217. hum.PlatformStand = true
  1218. head.Velocity = RootPart.CFrame.lookVector*50
  1219. head.RotVelocity = Vector3.new(10,0,0)
  1220. chatfunc("Let that be a warning!")
  1221. coroutine.wrap(function()
  1222. swait(5)
  1223. c:BreakJoints() end)()
  1224. else
  1225. end
  1226. end
  1227. end
  1228. end
  1229. end
  1230. end
  1231. end
  1232.  
  1233. --[[FindNearestTorso = function(pos)
  1234. local list = (game.workspace:GetDescendants())
  1235. local torso = nil
  1236. local dist = 1000
  1237. local temp, human, temp2 = nil, nil, nil
  1238. for x = 1, #list do
  1239. temp2 = list[x]
  1240. if temp2.className == "Model" and temp2.Name ~= chara.Name then
  1241. temp = temp2:findFirstChild("Torso")
  1242. human = temp2:FindFirstChildOfClass("Humanoid")
  1243. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed naeeym2.Name = "TalkingBillBoard" xss=removed xss=removed xss=removed tecks2.Text = "" tecks2.Font = "Fantasy" tecks2.FontSize = "Size24" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Name = "Effects" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed Texture = "rbxassetid://26356434" Face = "Top" xss=removed xss=removed Texture = "rbxassetid://26356434" Face = "Bottom" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed li.Material = "Neon" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed i=0,1,.2 xss=removed xss=removed i=0,1,.1 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed par~=nil xss=removed xss=removed xss=removed i=0,1,.2 xss=removed i=0,1.5,.1>= .4 then
  1244. chatfunc("Let that be a warning!")
  1245. end
  1246. end
  1247. tr2.Enabled = false
  1248. attack = false
  1249. end
  1250.  
  1251. local shots = 7
  1252. zhold = true
  1253. function shoot()
  1254. attackm = "gun"
  1255. attack = true
  1256. so(169799883,gun,1,1)
  1257. for i=0,1,.1 do
  1258. swait()
  1259. PlayAnimationFromTable({
  1260. CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1261. 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),
  1262. 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),
  1263. 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),
  1264. CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1265. CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
  1266. }, .3, false)
  1267. end
  1268. Humanoid.WalkSpeed = 2
  1269. local ref = Instance.new("Part",chara)
  1270. ref.Size = Vector3.new(0,0,0)
  1271. ref.Anchored = true
  1272. ref.CanCollide = false
  1273. ref.Transparency = 1
  1274. gweld.Part0 = RightArm
  1275. gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40))
  1276. chatfunc("Let that be a warning!")
  1277. for i=0,1,.1 do
  1278. swait()
  1279. PlayAnimationFromTable({
  1280. CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1281. 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),
  1282. 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),
  1283. 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),
  1284. CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1285. CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1286. }, .3, false)
  1287. end
  1288. swait(5)
  1289. repeat
  1290. so(470245800,gun,1,1)
  1291. ref.CFrame = Mouse.Hit
  1292. local hitpt = Instance.new("Part",EffectModel)
  1293. hitpt.Size = Vector3.new(0,0,.3)
  1294. local bf = Instance.new("BodyVelocity",hitpt)
  1295. bf.P = 10000
  1296. bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
  1297. game:service'Debris':AddItem(bf,.1)
  1298. hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0)
  1299. bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10
  1300. local hitm = Instance.new("SpecialMesh",hitpt)
  1301. hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
  1302. hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
  1303. hitm.Scale = Vector3.new(3,3,3.5)
  1304. coroutine.wrap(function()
  1305. swait(120)
  1306. for i = 0,1.1 do
  1307. swait()
  1308. hitpt.Transparency = i
  1309. end
  1310. hitpt:Destroy()
  1311. end)()
  1312. Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05)
  1313. shots = shots - 1
  1314. for i=0,1,.2 do
  1315. swait()
  1316. PlayAnimationFromTable({
  1317. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1318. 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),
  1319. 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),
  1320. 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),
  1321. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1322. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1323. }, .3, false)
  1324. end
  1325. for i=0,1,.2 do
  1326. swait()
  1327. PlayAnimationFromTable({
  1328. CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1329. 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),
  1330. 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),
  1331. 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),
  1332. CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1333. CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1334. }, .3, false)
  1335. end
  1336. if shots == 0 then
  1337. so(147323220,gun,1,1)
  1338. for i=0,1.3,.1 do
  1339. swait()
  1340. PlayAnimationFromTable({
  1341. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1342. 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),
  1343. 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),
  1344. 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),
  1345. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1346. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1347. }, .3, false)
  1348. end
  1349. 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),})
  1350. MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0)
  1351. coroutine.wrap(function()
  1352. swait(5)
  1353. MagPartt.CanCollide = true
  1354. swait(120)
  1355. for i = 0,1.1 do
  1356. swait()
  1357. MagPartt.Transparency = i
  1358. end
  1359. MagPartt:Destroy()
  1360. end)()
  1361. swait(10)
  1362. 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),})
  1363. 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),})
  1364. for i=0,1.4,.2 do
  1365. swait()
  1366. PlayAnimationFromTable({
  1367. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1368. 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),
  1369. 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),
  1370. 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),
  1371. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1372. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1373. }, .3, false)
  1374. end
  1375. MagPart:Destroy()
  1376. swait(5)
  1377. for i=0,1,.2 do
  1378. swait()
  1379. PlayAnimationFromTable({
  1380. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1381. 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),
  1382. 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),
  1383. 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),
  1384. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1385. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1386. }, .3, false)
  1387. end
  1388. so(506273075,gun,1,1)
  1389. for i=0,1,.2 do
  1390. swait()
  1391. PlayAnimationFromTable({
  1392. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1393. 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),
  1394. 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),
  1395. 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),
  1396. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1397. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1398. }, .3, false)
  1399. end
  1400. for i=0,1,.2 do
  1401. swait()
  1402. PlayAnimationFromTable({
  1403. CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1404. 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),
  1405. 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),
  1406. 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),
  1407. CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1408. CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1409. }, .3, false)
  1410. end
  1411. shots = 7
  1412. swait(10)
  1413. for i=0,1,.2 do
  1414. swait()
  1415. PlayAnimationFromTable({
  1416. CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1417. 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),
  1418. 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),
  1419. 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),
  1420. CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1421. CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1422. }, .3, false)
  1423. end
  1424. end
  1425. until zhold == false
  1426. swait(5)
  1427. ref:Destroy()
  1428. so(211134014,gun,1,1)
  1429. for i=0,1,.1 do
  1430. swait()
  1431. PlayAnimationFromTable({
  1432. CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1433. 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),
  1434. 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),
  1435. 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),
  1436. CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1437. CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
  1438. }, .3, false)
  1439. end
  1440. gweld.Part0 = Torso
  1441. gweld.C0 = gdefc0
  1442. Humanoid.WalkSpeed = 16
  1443. attack = false
  1444. end
  1445.  
  1446. qhold = false
  1447. justsprinted = false
  1448. function sprint()
  1449. attack = true
  1450. --print("supurinto?")
  1451. --justsprinted = true
  1452. --coroutine.wrap(function()
  1453. --swait(10)
  1454. --justsprinted = false
  1455. --end)()
  1456. repeat
  1457. swait()
  1458. PlayAnimationFromTable({
  1459. 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),
  1460. CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1461. 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),
  1462. 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),
  1463. 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),
  1464. 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),
  1465. }, .3, false)
  1466. Humanoid.WalkSpeed = 40
  1467. until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
  1468. --print'sutoppu'
  1469. Humanoid.WalkSpeed = 16
  1470. attack = false
  1471. end
  1472.  
  1473. Mouse.Button1Down:connect(function()
  1474. if attack == false then
  1475. attackm = "baton"
  1476. if Anim == "Jump" or Anim == "Fall" then
  1477. asmek()
  1478. else
  1479. smek()
  1480. end
  1481. end
  1482. end)
  1483.  
  1484. local sprintt = 0
  1485.  
  1486.  
  1487. Mouse.KeyDown:connect(function(k)
  1488. k = k:lower()
  1489. if k=='m' then
  1490. if mus.IsPlaying == true then
  1491. mus:Stop()
  1492. elseif mus.IsPaused == true then
  1493. mus:Play()
  1494. end
  1495. end
  1496. if attack == false then
  1497. if k == 'q' then
  1498. qhold = true
  1499. sprint()
  1500. elseif k == 'z' then
  1501. zhold = true
  1502. shoot()
  1503. end
  1504. end
  1505. end)
  1506.  
  1507.  
  1508. Mouse.KeyUp:connect(function(k)
  1509. k = k:lower()
  1510. if k == 'q' then
  1511. qhold = false
  1512. elseif k == 'z' then
  1513. zhold = false
  1514. end
  1515. end)
  1516.  
  1517.  
  1518. coroutine.wrap(function()
  1519. while 1 do
  1520. swait()
  1521. if doe <= 360 then
  1522. doe = doe + 2
  1523. else
  1524. doe = 0
  1525. end
  1526. end
  1527. end)()
  1528. while true do
  1529. swait()
  1530. for i, v in pairs(chara:GetChildren()) do
  1531. if v:IsA("Part") then
  1532. v.Material = "SmoothPlastic"
  1533. elseif v:IsA("Accessory") then
  1534. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1535. end
  1536. end
  1537. while true do
  1538. swait()
  1539. if sprintt >= 1 then
  1540. sprintt = sprintt - 1
  1541. end
  1542.  
  1543. if Head:FindFirstChild("mus")==nil then
  1544. mus = Instance.new("Sound",Head)
  1545. mus.Name = "mus"
  1546. mus.SoundId = "rbxassetid://345868687"
  1547. mus.Looped = true
  1548. mus.Volume = 1
  1549. mus:Play()
  1550. end
  1551. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1552. velocity = RootPart.Velocity.y
  1553. sine = sine + change
  1554. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  1555. if RootPart.Velocity.y > 1 and hit == nil then
  1556. Anim = "Jump"
  1557. if attack == false then
  1558. PlayAnimationFromTable({
  1559. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1560. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  1561. 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),
  1562. 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),
  1563. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1564. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1565. }, .3, false)
  1566. end
  1567. elseif RootPart.Velocity.y < -1 and hit == nil then
  1568. Anim = "Fall"
  1569. if attack == false then
  1570. PlayAnimationFromTable({
  1571. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1572. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1573. 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),
  1574. 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),
  1575. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1576. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1577. }, .3, false)
  1578. end
  1579. elseif Torsovelocity < 1 xss=removed Anim = "Idle" xss=removed xss=removed> 2 and hit ~= nil then
  1580. Anim = "Walk"
  1581. if attack == false then
  1582. PlayAnimationFromTable({
  1583. 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),
  1584. CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
  1585. 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),
  1586. 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),
  1587. 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),
  1588. 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),
  1589. }, .3, false)
  1590. end
  1591. end
  1592. if 0 < #Effects then
  1593. for e = 1, #Effects do
  1594. if Effects[e] ~= nil then
  1595. local Thing = Effects[e]
  1596. if Thing ~= nil then
  1597. local Part = Thing[1]
  1598. local Mode = Thing[2]
  1599. local Delay = Thing[3]
  1600. local IncX = Thing[4]
  1601. local IncY = Thing[5]
  1602. local IncZ = Thing[6]
  1603. if Thing[2] == "Shoot" then
  1604. local Look = Thing[1]
  1605. local move = 30
  1606. if Thing[8] == 3 then
  1607. move = 10
  1608. end
  1609. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1610. if Thing[10] ~= nil then
  1611. da = pos
  1612. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1613. cfa = CFrame.new(Thing[4], pos)
  1614. tehCF = cfa:lerp(cf2, 0.2)
  1615. Thing[1] = tehCF.lookVector
  1616. end
  1617. local mag = (Thing[4] - pos).magnitude
  1618. 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)
  1619. if Thing[8] == 2 then
  1620. 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)
  1621. end
  1622. Thing[4] = Thing[4] + Look * move
  1623. Thing[3] = Thing[3] - 1
  1624. if 2 < Thing[5] then
  1625. Thing[5] = Thing[5] - 0.3
  1626. Thing[6] = Thing[6] - 0.3
  1627. end
  1628. if hit ~= nil then
  1629. Thing[3] = 0
  1630. if Thing[8] == 1 or Thing[8] == 3 then
  1631. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1632. else
  1633. if Thing[8] == 2 then
  1634. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1635. if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
  1636. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1637. ref.Anchored = true
  1638. ref.CFrame = CFrame.new(pos)
  1639. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1640. game:GetService("Debris"):AddItem(ref, 0.2)
  1641. 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)
  1642. 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)
  1643. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1644. end
  1645. end
  1646. end
  1647. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1648. ref.Anchored = true
  1649. ref.CFrame = CFrame.new(pos)
  1650. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1651. game:GetService("Debris"):AddItem(ref, 1)
  1652. end
  1653. if Thing[3] <= 0 then
  1654. table.remove(Effects, e)
  1655. end
  1656. end
  1657. do
  1658. do
  1659. if Thing[2] == "FireWave" then
  1660. if Thing[3] <= Thing[4] then
  1661. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1662. Thing[3] = Thing[3] + 1
  1663. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1664. else
  1665. Part.Parent = nil
  1666. table.remove(Effects, e)
  1667. end
  1668. end
  1669. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1670. if Thing[1].Transparency <= 1 then
  1671. if Thing[2] == "Block1" then
  1672. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1673. Mesh = Thing[7]
  1674. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1675. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1676. else
  1677. if Thing[2] == "Block2" then
  1678. Thing[1].CFrame = Thing[1].CFrame
  1679. Mesh = Thing[7]
  1680. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1681. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1682. else
  1683. if Thing[2] == "Fire" then
  1684. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1685. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1686. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1687. else
  1688. if Thing[2] == "Cylinder" then
  1689. Mesh = Thing[7]
  1690. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1691. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1692. else
  1693. if Thing[2] == "Blood" then
  1694. Mesh = Thing[7]
  1695. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1696. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1697. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1698. else
  1699. if Thing[2] == "Elec" then
  1700. Mesh = Thing[10]
  1701. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1702. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1703. else
  1704. if Thing[2] == "Disappear" then
  1705. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1706. else
  1707. if Thing[2] == "Shatter" then
  1708. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1709. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1710. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1711. Thing[6] = Thing[6] + Thing[5]
  1712. end
  1713. end
  1714. end
  1715. end
  1716. end
  1717. end
  1718. end
  1719. end
  1720. else
  1721. Part.Parent = nil
  1722. table.remove(Effects, e)
  1723. end
  1724. end
  1725. end
  1726. end
  1727. end
  1728. end
  1729. end
  1730. end
  1731. end
  1732. end



  • Recent Roblox Scripts