- --[[ Make sure to be wearing both of these hats in order to use the script
- https://www.roblox.com/catalog/4776608503/Miami-Sunshine-Slugger
- https://www.roblox.com/catalog/4933294084/Type-37-Pulse-Rifle
- ]]--
- --[[ Options ]]--
- _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
- _G.GodMode = true --Set to true if you want godmode.
- _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
- --[[Reanimate]]--
- loadstring(game:HttpGet("https://paste.ee/r/uk77k/0"))()
- -----------------
- repeat wait() until _G.MSG ~= nil
- repeat wait() until _G.MSG.Text == ""
- -----------------
- getgenv().LoadLibrary = function(a)
- local t = {}
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------JSON Functions Begin----------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- --JSON Encoder and Parser for Lua 5.1
- --
- --Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
- --All Rights Reserved.
- --Permission is hereby granted, free of charge, to any person
- --obtaining a copy of this software to deal in the Software without
- --restriction, including without limitation the rights to use,
- --copy, modify, merge, publish, distribute, sublicense, and/or
- --sell copies of the Software, and to permit persons to whom the
- --Software is furnished to do so, subject to the following conditions:
- --The above copyright notice and this permission notice shall be
- --included in all copies or substantial portions of the Software.
- --If you find this software useful please give www.chipmunkav.com a mention.
- --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
- --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
- --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- local string = string
- local math = math
- local table = table
- local error = error
- local tonumber = tonumber
- local tostring = tostring
- local type = type
- local setmetatable = setmetatable
- local pairs = pairs
- local ipairs = ipairs
- local assert = assert
- local StringBuilder = {
- buffer = {}
- }
- function StringBuilder:New()
- local o = {}
- setmetatable(o, self)
- self.__index = self
- o.buffer = {}
- return o
- end
- function StringBuilder:Append(s)
- self.buffer[#self.buffer+1] = s
- end
- function StringBuilder:ToString()
- return table.concat(self.buffer)
- end
- local JsonWriter = {
- backslashes = {
- ['\b'] = "\\b",
- ['\t'] = "\\t",
- ['\n'] = "\\n",
- ['\f'] = "\\f",
- ['\r'] = "\\r",
- ['"'] = "\\\"",
- ['\\'] = "\\\\",
- ['/'] = "\\/"
- }
- }
- function JsonWriter:New()
- local o = {}
- o.writer = StringBuilder:New()
- setmetatable(o, self)
- self.__index = self
- return o
- end
- function JsonWriter:Append(s)
- self.writer:Append(s)
- end
- function JsonWriter:ToString()
- return self.writer:ToString()
- end
- function JsonWriter:Write(o)
- local t = type(o)
- if t == "nil" then
- self:WriteNil()
- elseif t == "boolean" then
- self:WriteString(o)
- elseif t == "number" then
- self:WriteString(o)
- elseif t == "string" then
- self:ParseString(o)
- elseif t == "table" then
- self:WriteTable(o)
- elseif t == "function" then
- self:WriteFunction(o)
- elseif t == "thread" then
- self:WriteError(o)
- elseif t == "userdata" then
- self:WriteError(o)
- end
- end
- function JsonWriter:WriteNil()
- self:Append("null")
- end
- function JsonWriter:WriteString(o)
- self:Append(tostring(o))
- end
- function JsonWriter:ParseString(s)
- self:Append('"')
- self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
- local c = self.backslashes[n]
- if c then return c end
- return string.format("\\u%.4X", string.byte(n))
- end))
- self:Append('"')
- end
- function JsonWriter:IsArray(t)
- local count = 0
- local isindex = function(k)
- if type(k) == "number" and k > 0 then
- if math.floor(k) == k then
- return true
- end
- end
- return false
- end
- for k,v in pairs(t) do
- if not isindex(k) then
- return false, '{', '}'
- else
- count = math.max(count, k)
- end
- end
- return true, '[', ']', count
- end
- function JsonWriter:WriteTable(t)
- local ba, st, et, n = self:IsArray(t)
- self:Append(st)
- if ba then
- for i = 1, n do
- self:Write(t[i])
- 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
- selectionPartClone = reusableAdorns[1]["part"]
- selectionBoxClone = reusableAdorns[1]["box"]
- table.remove(reusableAdorns,1)
- selectionBoxClone.Visible = true
- else
- selectionPartClone = selectionPart:Clone()
- selectionPartClone.Archivable = false
- selectionBoxClone = selectionBox:Clone()
- selectionBoxClone.Archivable = false
- selectionBoxClone.Adornee = selectionPartClone
- selectionBoxClone.Parent = selectionContainer
- selectionBoxClone.Adornee = selectionPartClone
- selectionBoxClone.Parent = selectionContainer
- end
- if theColor then
- selectionBoxClone.Color = theColor
- end
- return selectionPartClone, selectionBoxClone
- end
- -- iterates through all current adornments and deletes any that don't have latest tag
- function cleanUpAdornments()
- for cellPos, adornTable in pairs(adornments) do
- if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
- adornTable.SelectionBox.Visible = false
- table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
- adornments[cellPos] = nil
- end
- end
- end
- -- helper function to update tag
- function incrementAliveCounter()
- aliveCounter = aliveCounter + 1
- if aliveCounter > 1000000 then
- aliveCounter = 0
- end
- return aliveCounter
- end
- -- finds full cells in region and adorns each cell with a box, with the argument color
- function adornFullCellsInRegion(region, color)
- local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
- local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
- local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
- local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
- currentKeepAliveTag = incrementAliveCounter()
- for y = cellPosBegin.y, cellPosEnd.y do
- for z = cellPosBegin.z, cellPosEnd.z do
- for x = cellPosBegin.x, cellPosEnd.x do
- local cellMaterial = GetCell(terrain, x, y, z)
- if cellMaterial ~= emptyMaterial then
- local cframePos = CellCenterToWorld(terrain, x, y, z)
- local cellPos = Vector3int16.new(x,y,z)
- local updated = false
- for cellPosAdorn, adornTable in pairs(adornments) do
- if cellPosAdorn == cellPos then
- adornTable.KeepAlive = currentKeepAliveTag
- if color then
- adornTable.SelectionBox.Color = color
- end
- updated = true
- break
- end
- end
- if not updated then
- local selectionPart, selectionBox = createAdornment(color)
- selectionPart.Size = Vector3.new(4,4,4)
- selectionPart.CFrame = CFrame.new(cframePos)
- local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
- adornments[cellPos] = adornTable
- end
- end
- end
- end
- end
- cleanUpAdornments()
- end
- ------------------------------------- setup code ------------------------------
- lastRegion = regionToSelect
- if selectEmptyCells then -- use one big selection to represent the area selected
- local selectionPart, selectionBox = createAdornment(color)
- selectionPart.Size = regionToSelect.Size
- selectionPart.CFrame = regionToSelect.CFrame
- adornments.SelectionPart = selectionPart
- adornments.SelectionBox = selectionBox
- updateSelection =
- function (newRegion, color)
- if newRegion and newRegion ~= lastRegion then
- lastRegion = newRegion
- selectionPart.Size = newRegion.Size
- selectionPart.CFrame = newRegion.CFrame
- end
- if color then
- selectionBox.Color = color
- end
- end
- else -- use individual cell adorns to represent the area selected
- adornFullCellsInRegion(regionToSelect, color)
- updateSelection =
- function (newRegion, color)
- if newRegion and newRegion ~= lastRegion then
- lastRegion = newRegion
- adornFullCellsInRegion(newRegion, color)
- end
- end
- end
- local destroyFunc = function()
- updateSelection = nil
- if selectionContainer then selectionContainer:Destroy() end
- adornments = nil
- end
- return updateSelection, destroyFunc
- end
- -----------------------------Terrain Utilities End-----------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------Signal class begin------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- --[[
- A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
- can be used to create "custom events" for user-made code.
- API:
- Method :connect( function handler )
- Arguments: The function to connect to.
- Returns: A new connection object which can be used to disconnect the connection
- Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
- the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
- connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
- NOT mean that the first will be called before the second as a result of a call to |fire|.
- Method :disconnect()
- Arguments: None
- Returns: None
- Description: Disconnects all of the functions connected to this signal.
- Method :fire( ... )
- Arguments: Any arguments are accepted
- Returns: None
- Description: Calls all of the currently connected functions with the given arguments.
- Method :wait()
- Arguments: None
- Returns: The arguments given to fire
- Description: This call blocks until
- ]]
- function t.CreateSignal()
- local this = {}
- local mBindableEvent = Instance.new('BindableEvent')
- local mAllCns = {} --all connection objects returned by mBindableEvent::connect
- --main functions
- function this:connect(func)
- if self ~= this then error("connect must be called with `:`, not `.`", 2) end
- if type(func) ~= 'function' then
- error("Argument #1 of connect must be a function, got a "..type(func), 2)
- end
- local cn = mBindableEvent.Event:Connect(func)
- mAllCns[cn] = true
- local pubCn = {}
- function pubCn:disconnect()
- cn:Disconnect()
- mAllCns[cn] = nil
- end
- pubCn.Disconnect = pubCn.disconnect
- return pubCn
- end
- function this:disconnect()
- if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
- for cn, _ in pairs(mAllCns) do
- cn:Disconnect()
- mAllCns[cn] = nil
- end
- end
- function this:wait()
- if self ~= this then error("wait must be called with `:`, not `.`", 2) end
- return mBindableEvent.Event:Wait()
- end
- function this:fire(...)
- if self ~= this then error("fire must be called with `:`, not `.`", 2) end
- mBindableEvent:Fire(...)
- end
- this.Connect = this.connect
- this.Disconnect = this.disconnect
- this.Wait = this.wait
- this.Fire = this.fire
- return this
- end
- ------------------------------------------------- Sigal class End ------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------Create Function Begins---------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- --[[
- A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
- the object to be created. The function then returns another function which either accepts accepts no arguments, in
- which case it simply creates an object of the given type, or a table argument that may contain several types of data,
- in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
- type of data and what operation each will perform:
- 1) A string key mapping to some value:
- Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
- ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
- |Create| call's body.
- 2) An integral key mapping to another Instance:
- Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
- parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
- need for temporary variables to store references to those objects.
- 3) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
- The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
- for those who really want such a functionality. The name of the event whose name is passed to
- Create.E( string )
- 4) A key which is the Create function itself, and a value which is a function
- The function will be run with the argument of the object itself after all other initialization of the object is
- done by create. This provides a way to do arbitrary things involving the object from withing the create
- hierarchy.
- Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
- it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
- constructor callback function is possible, it is probably not a good design choice.
- Note: Since the constructor function is called after all other initialization, a Create block cannot have two
- constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
- Some example usages:
- A simple example which uses the Create function to create a model object and assign two of it's properties.
- local model = Create'Model'{
- Name = 'A New model',
- Parent = game.Workspace,
- }
- An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
- Model_Container
- |-ObjectValue
- | |
- | `-BoolValueChild
- `-IntValue
- local model = Create'Model'{
- Name = 'Model_Container',
- Create'ObjectValue'{
- Create'BoolValue'{
- Name = 'BoolValueChild',
- },
- },
- Create'IntValue'{},
- }
- An example using the event syntax:
- local part = Create'Part'{
- [Create.E'Touched'] = function(part)
- print("I was touched by "..part.Name)
- end,
- }
- An example using the general constructor syntax:
- local model = Create'Part'{
- [Create] = function(this)
- print("Constructor running!")
- this.Name = GetGlobalFoosAndBars(this)
- end,
- }
- Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
- any unexpected behavior. EG:
- local partCreatingFunction = Create'Part'
- local part = partCreatingFunction()
- ]]
- --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
- --will be created in several steps rather than as a single function declaration.
- local function Create_PrivImpl(objectType)
- if type(objectType) ~= 'string' then
- error("Argument of Create must be a string", 2)
- end
- --return the proxy function that gives us the nice Create'string'{data} syntax
- --The first function call is a function call using Lua's single-string-argument syntax
- --The second function call is using Lua's single-table-argument syntax
- --Both can be chained together for the nice effect.
- return function(dat)
- --default to nothing, to handle the no argument given case
- dat = dat or {}
- --make the object to mutate
- local obj = Instance.new(objectType)
- local parent = nil
- --stored constructor function to be called after other initialization
- local ctor = nil
- for k, v in pairs(dat) do
- --add property
- if type(k) == 'string' then
- if k == 'Parent' then
- -- Parent should always be set last, setting the Parent of a new object
- -- immediately makes performance worse for all subsequent property updates.
- parent = v
- else
- obj[k] = v
- end
- --add child
- elseif type(k) == 'number' then
- if type(v) ~= 'userdata' then
- error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
- end
- v.Parent = obj
- --event connect
- elseif type(k) == 'table' and k.__eventname then
- if type(v) ~= 'function' then
- error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
- got: "..tostring(v), 2)
- end
- obj[k.__eventname]:connect(v)
- --define constructor function
- elseif k == t.Create then
- if type(v) ~= 'function' then
- error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
- got: "..tostring(v), 2)
- elseif ctor then
- --ctor already exists, only one allowed
- error("Bad entry in Create body: Only one constructor function is allowed", 2)
- end
- ctor = v
- else
- error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
- end
- end
- --apply constructor function if it exists
- if ctor then
- ctor(obj)
- end
- if parent then
- obj.Parent = parent
- end
- --return the completed object
- return obj
- end
- end
- --now, create the functor:
- t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
- --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
- --function can recognize as special.
- t.Create.E = function(eventName)
- return {__eventname = eventName}
- end
- -------------------------------------------------Create function End----------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------Documentation Begin-----------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------
- t.Help =
- function(funcNameOrFunc)
- --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
- if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
- return "Function DecodeJSON. " ..
- "Arguments: (string). " ..
- "Side effect: returns a table with all parsed JSON values"
- end
- if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
- return "Function EncodeJSON. " ..
- "Arguments: (table). " ..
- "Side effect: returns a string composed of argument table in JSON data format"
- end
- if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
- return "Function MakeWedge. " ..
- "Arguments: (x, y, z, [default material]). " ..
- "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
- "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
- "Returns true if made a wedge, false if the cell remains a block "
- end
- if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
- return "Function SelectTerrainRegion. " ..
- "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
- "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
- "(this should be a region3 value). The selection box color is detemined by the color argument " ..
- "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
- "SelectEmptyCells is bool, when true will select all cells in the " ..
- "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
- "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
- "Also returns a second function that takes no arguments and destroys the selection"
- end
- if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
- return "Function CreateSignal. "..
- "Arguments: None. "..
- "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
- "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
- "Lua code. "..
- "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
- "For more info you can pass the method name to the Help function, or view the wiki page "..
- "for this library. EG: Help('Signal:connect')."
- end
- if funcNameOrFunc == "Signal:connect" then
- return "Method Signal:connect. "..
- "Arguments: (function handler). "..
- "Return: A connection object which can be used to disconnect the connection to this handler. "..
- "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
- "handler function will be called with the arguments passed to |fire|."
- end
- if funcNameOrFunc == "Signal:wait" then
- return "Method Signal:wait. "..
- "Arguments: None. "..
- "Returns: The arguments passed to the next call to |fire|. "..
- "Description: This call does not return until the next call to |fire| is made, at which point it "..
- "will return the values which were passed as arguments to that |fire| call."
- end
- if funcNameOrFunc == "Signal:fire" then
- return "Method Signal:fire. "..
- "Arguments: Any number of arguments of any type. "..
- "Returns: None. "..
- "Description: This call will invoke any connected handler functions, and notify any waiting code "..
- "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
- "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
- "it takes the connected handler functions to complete."
- end
- if funcNameOrFunc == "Signal:disconnect" then
- return "Method Signal:disconnect. "..
- "Arguments: None. "..
- "Returns: None. "..
- "Description: This call disconnects all handlers attacched to this function, note however, it "..
- "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
- "can also be called on the connection object which is returned from Signal:connect to only "..
- "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
- end
- if funcNameOrFunc == "Create" then
- return "Function Create. "..
- "Arguments: A table containing information about how to construct a collection of objects. "..
- "Returns: The constructed objects. "..
- "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
- "is best described via example, please see the wiki page for a description of how to use it."
- end
- end
- --------------------------------------------Documentation Ends----------------------------------------------------------
- return t
- end
- local pistol = game:GetService("Players").LocalPlayer.Character["Black Type-37 Pulse Rifle"]
- pistol.Handle.CustomAtt0:Destroy()
- pistol.Handle.CustomAtt1:Destroy()
- local bat = game:GetService("Players").LocalPlayer.Character["Jackette's SluggerAccessory"]
- bat.Handle.CustomAtt0:Destroy()
- bat.Handle.CustomAtt1:Destroy()
- local function weld(part0, part1)
- local attachment0 = Instance.new("Attachment", part0)
- if part0 == pistol.Handle then
- attachment0.Rotation = Vector3.new(-90, -60, -270)
- elseif part0 == bat.Handle then
- attachment0.Position = Vector3.new(0, 0.5, 0)
- attachment0.Rotation = Vector3.new(0, -90, 0)
- end
- local attachment1 = Instance.new("Attachment", part1)
- local weldpos = Instance.new("AlignPosition", part0)
- weldpos.Attachment0 = attachment0
- weldpos.Attachment1 = attachment1
- weldpos.RigidityEnabled = false
- weldpos.ReactionForceEnabled = false
- weldpos.ApplyAtCenterOfMass = false
- weldpos.MaxForce = 10000
- weldpos.MaxVelocity = 10000
- weldpos.Responsiveness = 10000
- local weldrot = Instance.new("AlignOrientation", part0)
- weldrot.Attachment0 = attachment0
- weldrot.Attachment1 = attachment1
- weldrot.ReactionTorqueEnabled = true
- weldrot.PrimaryAxisOnly = false
- weldrot.MaxTorque = 10000
- weldrot.MaxAngularVelocity = 10000
- weldrot.Responsiveness = 10000
- end
- ----------------------------------------------------------------
- --WATCH OUT HERE COMES THE COPPAS--
- ----------------------------------------------------------------
- --By CKbackup (Sugarie Saffron) --
- --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
- --Discord: Sugarie Saffron#4705 --
- ----------------------------------------------------------------
- print([[
- --Script Cop--
- By CKbackup (Sugarie Saffron)
- YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
- Discord: Sugarie Saffron#4705
- --------------------------------
- As I've been demoted from my SB
- Mod rank in VSB, I don't see the
- need to hold this back any longer.
- Also, if the anims look weird or
- the weapon looks out of place,
- it's because it's actually modeled
- off a scaled rig with a package.
- It looks better with the Boy
- package.
- --------------------------------
- (Keys)
- M - Mute/Play Music
- (Hold) Q - Run
- Click - Baton Swing
- Z - Pistol Shoot (You can also hold)
- ]])
- wait(1/60)
- Effects = { }
- local attackm = nil
- local Player = game:service'Players'.localPlayer
- local chara = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
- local Humanoid = chara:FindFirstChildOfClass("Humanoid")
- local Mouse = Player:GetMouse()
- local LeftArm = chara["Left Arm"]
- local RightArm = chara["Right Arm"]
- local LeftLeg = chara["Left Leg"]
- local RightLeg = chara["Right Leg"]
- local Head = chara.Head
- local Torso = chara.Torso
- local RootPart = chara.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local attack = false
- local Anim = 'Idle'
- local attacktype = 1
- local delays = false
- local play = true
- local targetted = nil
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local doe = 0
- local Create = LoadLibrary("RbxUtility").Create
- local plrs = game:GetService("Players")
- local plr = plrs.LocalPlayer
- local char = plr.Character
- local hrp = char.HumanoidRootPart
- hrp.Name = "HumanoidRootPart"
- hrp.Transparency = 0.5
- hrp.Anchored = false
- if hrp:FindFirstChildOfClass("AlignPosition") then
- hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
- end
- if hrp:FindFirstChildOfClass("AlignOrientation") then
- hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
- end
- local bp = Instance.new("BodyPosition", hrp)
- bp.Position = hrp.Position
- bp.D = 9999999
- bp.P = 999999999999999
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local flinger = Instance.new("BodyAngularVelocity",hrp)
- flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- flinger.P = 1000000000000000000000000000
- flinger.AngularVelocity = Vector3.new(10000,10000,10000)
- spawn(function()
- while game:GetService("RunService").Heartbeat:Wait() do
- if attack == false then
- bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].HumanoidRootPart.Position
- end
- end
- end)
- plr:GetMouse().Button1Down:Connect(function()
- repeat wait() until attack == true
- repeat
- game:GetService("RunService").Heartbeat:Wait()
- if attackm == "baton" then
- bp.Position = bat.Handle.Position
- end
- until attack == false
- end)
- plr:GetMouse().KeyDown:Connect(function(key)
- if key == "z" then
- repeat wait() until attack == true
- repeat
- game:GetService("RunService").Heartbeat:Wait()
- if attackm == "gun" then
- if plr:GetMouse().Target ~= nil then
- bp.Position = plr:GetMouse().Hit.p
- end
- end
- until attack == false
- end
- end)
- Humanoid.WalkSpeed = 16
- Humanoid.Animator.Parent = nil
- chara.Animate.Parent = nil
- local pos = Vector3.new(0,0,-50)
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- frame = 0.03333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- lastframe = tick()
- else
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 0, num do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function so(id,par,pit,vol)
- local sou = Instance.new("Sound", par or workspace)
- if par == chara then
- sou.Parent = chara.Torso
- end
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = "rbxassetid://" .. id
- sou.PlayOnRemove = true
- sou:Destroy()
- end
- local mus = Instance.new("Sound",Head)
- mus.Name = "mus"
- mus.SoundId = "rbxassetid://345868687"
- mus.Looped = true
- mus.Volume = 1
- mus:Play()
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- 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),})
- 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,})
- 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),})
- for i, v in pairs(chara:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
- v:Destroy()
- elseif v.Name == "FakeHeadM" then
- v.Ahoge.Mesh.Scale = Vector3.new()
- elseif v.Name == "Chest" then
- for a, b in pairs(v:children()) do
- if b.Name ~= "Tail" then
- b.Transparency = 1
- end
- end
- end
- end
- local sh = Instance.new("Shirt",chara)
- local pn = Instance.new("Pants",chara)
- sh.ShirtTemplate = "rbxassetid://133284214"
- pn.PantsTemplate = "rbxassetid://15224239"
- bdefc0 = CFrame.new(.8,-1,0)*CFrame.Angles(math.rad(30),0,0)
- gdefc0 = CFrame.new(-.8,-1,0)*CFrame.Angles(math.rad(130),0,0)
- local baton = Instance.new("Part",chara)
- baton.Name = "Baton"
- baton.Size = Vector3.new(.2,.2,3.2)
- baton.BrickColor = BrickColor.new("Really black")
- baton.CanCollide = false
- CFuncs.Mesh.Create("SpecialMesh", baton, "FileMesh", "rbxassetid://11820238", Vector3.new(), Vector3.new(1.5,1.5,1.5))
- local bweld = Instance.new("Weld",baton)
- bweld.Part0 = Torso
- bweld.Part1 = baton
- bweld.C0 = bdefc0
- local gun = Instance.new("Part", chara)
- gun.Name = "Gun"
- gun.Size = Vector3.new(.2,.2,.2)
- gun.BrickColor = BrickColor.new("Really black")
- gun.CanCollide = false
- CFuncs.Mesh.Create("SpecialMesh", gun, "FileMesh", "rbxassetid://72012879", Vector3.new(), Vector3.new(2,2,2))
- local gweld = Instance.new("Weld", gun)
- gweld.Part0 = Torso
- gweld.Part1 = gun
- gweld.C0 = gdefc0
- weld(pistol.Handle, gun)
- weld(bat.Handle, baton)
- local att1 = Instance.new("Attachment",baton)
- att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2)
- local att2 = Instance.new("Attachment",baton)
- att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2)
- local tr1 = Instance.new("Trail",baton)
- tr1.Color = ColorSequence.new(Color3.new(1,1,1))
- tr1.Transparency = NumberSequence.new(0,1)
- tr1.Lifetime = .5
- tr1.Enabled = false
- tr1.LightEmission = 1
- tr1.Attachment0 = att1
- tr1.Attachment1 = att2
- local att3 = Instance.new("Attachment",RightLeg)
- att3.Position = Vector3.new(0,1,0)
- local att4 = Instance.new("Attachment",RightLeg)
- att4.Position = Vector3.new(0,-1,0)
- local tr2 = Instance.new("Trail",RightLeg)
- tr2.Color = ColorSequence.new(Color3.new(1,1,1))
- tr2.Transparency = NumberSequence.new(0,1)
- tr2.Lifetime = .5
- tr2.Enabled = false
- tr2.LightEmission = 1
- tr2.Attachment0 = att3
- tr2.Attachment1 = att4
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function mdmg(Part, Magnitude, HitType)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then
- if c.Name ~= chara then
- if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then
- local val = Instance.new("BoolValue",c)
- val.Name = "MagDmgd"
- local asd = Instance.new("ParticleEmitter",head)
- asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
- asd.LightEmission = .1
- asd.Size = NumberSequence.new(0.2)
- asd.Texture = "rbxassetid://771221224"
- aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
- bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
- asd.Transparency = bbb
- asd.Size = aaa
- asd.ZOffset = .9
- asd.Acceleration = Vector3.new(0, -5, 0)
- asd.LockedToPart = false
- asd.EmissionDirection = "Back"
- asd.Lifetime = NumberRange.new(1, 2)
- asd.Rate = 1000
- asd.Rotation = NumberRange.new(-100, 100)
- asd.RotSpeed = NumberRange.new(-100, 100)
- asd.Speed = NumberRange.new(6)
- asd.VelocitySpread = 10000
- asd.Enabled = false
- asd:Emit(20)
- game:service'Debris':AddItem(asd,3)
- --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- if HitType == "Blunt" then
- so(386946017,head,.95,3)
- game:service'Debris':AddItem(val,1)
- elseif HitType == "Shot" then
- so(144884872,head,.9,3)
- game:service'Debris':AddItem(val,.05)
- end
- local soaa = Instance.new("Sound",c.Head)
- soaa.Volume = .5
- local cho = math.random(1,5)
- if cho == 1 then
- soaa.SoundId = "rbxassetid://111896685"
- elseif cho == 2 then
- soaa.SoundId = "rbxassetid://535528169"
- elseif cho == 3 then
- soaa.SoundId = "rbxassetid://1080363252"
- elseif cho == 4 then
- soaa.SoundId = "rbxassetid://147758746"
- elseif cho == 5 then
- soaa.SoundId = "rbxassetid://626777433"
- soaa.Volume = .2
- soaa.TimePosition = 1
- end
- game:service'Debris':AddItem(soaa,6)
- soaa:Play()
- for i,v in pairs(c:children()) do
- if v:IsA("LocalScript") or v:IsA("Tool") then
- v:Destroy()
- end
- end
- hum.PlatformStand = true
- head.Velocity = RootPart.CFrame.lookVector*50
- head.RotVelocity = Vector3.new(10,0,0)
- chatfunc("Let that be a warning!")
- coroutine.wrap(function()
- swait(5)
- c:BreakJoints() end)()
- else
- end
- end
- end
- end
- end
- end
- end
- --[[FindNearestTorso = function(pos)
- local list = (game.workspace:GetDescendants())
- local torso = nil
- local dist = 1000
- local temp, human, temp2 = nil, nil, nil
- for x = 1, #list do
- temp2 = list[x]
- if temp2.className == "Model" and temp2.Name ~= chara.Name then
- temp = temp2:findFirstChild("Torso")
- human = temp2:FindFirstChildOfClass("Humanoid")
- 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
- chatfunc("Let that be a warning!")
- end
- end
- tr2.Enabled = false
- attack = false
- end
- local shots = 7
- zhold = true
- function shoot()
- attackm = "gun"
- attack = true
- so(169799883,gun,1,1)
- for i=0,1,.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
- 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),
- 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),
- 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),
- CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
- CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
- }, .3, false)
- end
- Humanoid.WalkSpeed = 2
- local ref = Instance.new("Part",chara)
- ref.Size = Vector3.new(0,0,0)
- ref.Anchored = true
- ref.CanCollide = false
- ref.Transparency = 1
- gweld.Part0 = RightArm
- gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40))
- chatfunc("Let that be a warning!")
- for i=0,1,.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- swait(5)
- repeat
- so(470245800,gun,1,1)
- ref.CFrame = Mouse.Hit
- local hitpt = Instance.new("Part",EffectModel)
- hitpt.Size = Vector3.new(0,0,.3)
- local bf = Instance.new("BodyVelocity",hitpt)
- bf.P = 10000
- bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
- game:service'Debris':AddItem(bf,.1)
- hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0)
- bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10
- local hitm = Instance.new("SpecialMesh",hitpt)
- hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
- hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
- hitm.Scale = Vector3.new(3,3,3.5)
- coroutine.wrap(function()
- swait(120)
- for i = 0,1.1 do
- swait()
- hitpt.Transparency = i
- end
- hitpt:Destroy()
- end)()
- Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05)
- shots = shots - 1
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- if shots == 0 then
- so(147323220,gun,1,1)
- for i=0,1.3,.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- 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),})
- MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0)
- coroutine.wrap(function()
- swait(5)
- MagPartt.CanCollide = true
- swait(120)
- for i = 0,1.1 do
- swait()
- MagPartt.Transparency = i
- end
- MagPartt:Destroy()
- end)()
- swait(10)
- 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),})
- 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),})
- for i=0,1.4,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- MagPart:Destroy()
- swait(5)
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- so(506273075,gun,1,1)
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- shots = 7
- swait(10)
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
- 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),
- 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),
- 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),
- CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
- }, .3, false)
- end
- end
- until zhold == false
- swait(5)
- ref:Destroy()
- so(211134014,gun,1,1)
- for i=0,1,.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
- 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),
- 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),
- 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),
- CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
- CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
- }, .3, false)
- end
- gweld.Part0 = Torso
- gweld.C0 = gdefc0
- Humanoid.WalkSpeed = 16
- attack = false
- end
- qhold = false
- justsprinted = false
- function sprint()
- attack = true
- --print("supurinto?")
- --justsprinted = true
- --coroutine.wrap(function()
- --swait(10)
- --justsprinted = false
- --end)()
- repeat
- swait()
- PlayAnimationFromTable({
- 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),
- CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- Humanoid.WalkSpeed = 40
- until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
- --print'sutoppu'
- Humanoid.WalkSpeed = 16
- attack = false
- end
- Mouse.Button1Down:connect(function()
- if attack == false then
- attackm = "baton"
- if Anim == "Jump" or Anim == "Fall" then
- asmek()
- else
- smek()
- end
- end
- end)
- local sprintt = 0
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k=='m' then
- if mus.IsPlaying == true then
- mus:Stop()
- elseif mus.IsPaused == true then
- mus:Play()
- end
- end
- if attack == false then
- if k == 'q' then
- qhold = true
- sprint()
- elseif k == 'z' then
- zhold = true
- shoot()
- end
- end
- end)
- Mouse.KeyUp:connect(function(k)
- k = k:lower()
- if k == 'q' then
- qhold = false
- elseif k == 'z' then
- zhold = false
- end
- end)
- coroutine.wrap(function()
- while 1 do
- swait()
- if doe <= 360 then
- doe = doe + 2
- else
- doe = 0
- end
- end
- end)()
- while true do
- swait()
- for i, v in pairs(chara:GetChildren()) do
- if v:IsA("Part") then
- v.Material = "SmoothPlastic"
- elseif v:IsA("Accessory") then
- v:WaitForChild("Handle").Material = "SmoothPlastic"
- end
- end
- while true do
- swait()
- if sprintt >= 1 then
- sprintt = sprintt - 1
- end
- if Head:FindFirstChild("mus")==nil then
- mus = Instance.new("Sound",Head)
- mus.Name = "mus"
- mus.SoundId = "rbxassetid://345868687"
- mus.Looped = true
- mus.Volume = 1
- mus:Play()
- end
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
- CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
- 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),
- 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),
- CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
- CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
- }, .3, false)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
- CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
- 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),
- 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),
- CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
- CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
- }, .3, false)
- end
- elseif Torsovelocity < 1 xss=removed Anim = "Idle" xss=removed xss=removed> 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- PlayAnimationFromTable({
- 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),
- CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
- 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),
- 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),
- 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),
- 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),
- }, .3, false)
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[2] == "Shoot" then
- local Look = Thing[1]
- local move = 30
- if Thing[8] == 3 then
- move = 10
- end
- local hit, pos = rayCast(Thing[4], Thing[1], move, m)
- if Thing[10] ~= nil then
- da = pos
- cf2 = CFrame.new(Thing[4], Thing[10].Position)
- cfa = CFrame.new(Thing[4], pos)
- tehCF = cfa:lerp(cf2, 0.2)
- Thing[1] = tehCF.lookVector
- end
- local mag = (Thing[4] - pos).magnitude
- 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)
- if Thing[8] == 2 then
- 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)
- end
- Thing[4] = Thing[4] + Look * move
- Thing[3] = Thing[3] - 1
- if 2 < Thing[5] then
- Thing[5] = Thing[5] - 0.3
- Thing[6] = Thing[6] - 0.3
- end
- if hit ~= nil then
- Thing[3] = 0
- if Thing[8] == 1 or Thing[8] == 3 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- else
- if Thing[8] == 2 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
- game:GetService("Debris"):AddItem(ref, 0.2)
- 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)
- 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)
- MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
- end
- end
- end
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
- game:GetService("Debris"):AddItem(ref, 1)
- end
- if Thing[3] <= 0 then
- table.remove(Effects, e)
- end
- end
- do
- do
- if Thing[2] == "FireWave" then
- if Thing[3] <= Thing[4] then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
- Thing[3] = Thing[3] + 1
- Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Fire" then
- Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Cylinder" then
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Elec" then
- Mesh = Thing[10]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- end
- end
- end
- end
- end
- end
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end