Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = owner
- if game:GetService("RunService"):IsClient()then error("RUN SCRIPT AS R/ AND NOT RL/.")end;print("FE CODE BY WAVERLYCOLE");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- wait(0.2)
- mouse = owner:GetMouse()
- local function SmoothPart(part)
- part.TopSurface = Enum.SurfaceType.Smooth
- part.BottomSurface = Enum.SurfaceType.Smooth
- part.LeftSurface = Enum.SurfaceType.Smooth
- part.RightSurface = Enum.SurfaceType.Smooth
- part.FrontSurface = Enum.SurfaceType.Smooth
- part.BackSurface = Enum.SurfaceType.Smooth
- end
- local function Effect(Length, Type, SizeStart, SizeEnd, Position, Colour, Parent, Material, CanCollide)
- local part = Instance.new("Part")
- part.Name = Type
- part.Material = Material or Enum.Material.Plastic
- part.CFrame = Position
- part.CanCollide = CanCollide or false
- part.Size = SizeStart
- part.Anchored = true
- part.BrickColor = BrickColor.new(tostring(Colour))
- part.Parent = Parent or workspace
- if Type == "Block" then
- SmoothPart(part)
- end
- if Type == "Sphere" then
- part.Shape = Enum.PartType.Ball
- SmoothPart(part)
- end
- if Type == "TwirlSwirl" or Type == "Swirl" then
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = "rbxassetid://662585058"
- mesh.Name = "SwirlMesh"
- mesh.Scale = SizeStart / Vector3.new(500, 500, 500)
- mesh.Parent = part
- end
- if Type == "Wave" or Type == "SpiralWave" then
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = "rbxassetid://20329976"
- mesh.Name = "WaveMesh"
- mesh.Scale = SizeStart / Vector3.new(4, 4, 4)
- mesh.Parent = part
- end
- if Type == "MeshSphere" then
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Parent = part
- SmoothPart(part)
- end
- if Type == "Cylinder" then
- part.Shape = Enum.PartType.Cylinder
- SmoothPart(part)
- end
- if Type == "KillSphere" then
- part.Shape = Enum.PartType.Cylinder
- part.Transparency = 1
- part.Touched:Connect(function()
- end)
- end
- spawn(function()
- local TwirlAngle = math.random(-250, 250) / 1000
- local WaveAngle = math.random(-500, 500) / 1000
- for i = 1, Length do
- game:GetService("RunService").Stepped:Wait()
- part.Transparency = part.Transparency + 1 / Length
- part.Size = part.Size + SizeEnd / Vector3.new(Length, Length, Length)
- if Type == "TwirlSwirl" then
- part.CFrame = part.CFrame * CFrame.Angles(TwirlAngle, TwirlAngle, TwirlAngle)
- part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500)
- end
- if Type == "Swirl" then
- part.CFrame = part.CFrame * CFrame.Angles(0, TwirlAngle, 0)
- part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500)
- end
- if Type == "SpiralWave" then
- part.CFrame = part.CFrame * CFrame.Angles(WaveAngle, WaveAngle, WaveAngle)
- part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4)
- end
- if Type == "Wave" then
- part.CFrame = part.CFrame * CFrame.Angles(0, WaveAngle, 0)
- part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4)
- end
- if Type == "KillSphere" then
- for i,v in pairs(part:GetTouchingParts()) do
- if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") and not v:IsDescendantOf(char) then
- v.Parent:BreakJoints()
- end
- end
- end
- end
- part:Destroy()
- end)
- end
- Player = Player
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- Character = Player.Character
- Humanoid = Character.Humanoid
- ---------
- plr = Player
- chara = plr.Character
- Create = Instance.new
- Huge = math.huge
- Player = Player
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- char = Player.Character
- Humanoid = Character.Humanoid
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- local Orin = "http://www.roblox.com/asset/?id=3170095775"
- Head.face.Texture = Orin
- function weld(a, b, acf)
- local w = Instance.new("Weld", a)
- w.Part0 = a
- w.Part1 = b
- w.C0 = acf
- end
- --------------------------------
- char.Head.face.Texture = "http://www.roblox.com/asset/?id=3180605627"
- --------------------------------
- -------------------------------------------------------
- local FavIDs = {
- 340106355, --Nefl Crystals
- 927529620, --Dimension
- 876981900, --Fantasy
- 398987889, --Ordinary Days
- 1117396305, --Oh wait, it's you.
- 885996042, --Action Winter Journey
- 919231299, --Sprawling Idiot Effigy
- 743466274, --Good Day Sunshine
- 727411183, --Knife Fight
- 1402748531, --The Earth Is Counting On You!
- 595230126 --Robot Language
- }
- --The reality of my life isn't real but a Universe -makhail07
- wait(0.2)
- local plr = Player
- print('Local User is '..plr.Name)
- print('SCRIPTNAME Loaded')
- print('SCRIPT DESCRIPTION')
- local char = plr.Character
- local hum = char.Humanoid
- local hed = char.Head
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local tors = char.Torso
- local ra = char["Right Arm"]
- local la = char["Left Arm"]
- local rl = char["Right Leg"]
- local ll = char["Left Leg"]
- local neck = tors["Neck"]
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- local maincolor = BrickColor.new("Storm blue")
- -------------------------------------------------------
- --Start Good Stuff--
- -------------------------------------------------------
- cam = game.Workspace.CurrentCamera
- CF = CFrame.new
- angles = CFrame.Angles
- attack = false
- local rooted = false
- Euler = CFrame.fromEulerAnglesXYZ
- Rad = math.rad
- IT = Instance.new
- BrickC = BrickColor.new
- Cos = math.cos
- Acos = math.acos
- Sin = math.sin
- Asin = math.asin
- Abs = math.abs
- Mrandom = math.random
- Floor = math.floor
- -------------------------------------------------------
- --End Good Stuff--
- -------------------------------------------------------
- necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RH = tors["Right Hip"]
- LH = tors["Left Hip"]
- Effects = {}
- -------------------------------------------------------
- --Start HeartBeat--
- -------------------------------------------------------
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- -------------------------------------------------------
- --End HeartBeat--
- -------------------------------------------------------
- -------------------------------------------------------
- --Start Important Functions--
- -------------------------------------------------------
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- function thread(f)
- coroutine.resume(coroutine.create(f))
- end
- function clerp(a, b, t)
- local qa = {
- QuaternionFromCFrame(a)
- }
- local qb = {
- QuaternionFromCFrame(b)
- }
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m00 < m11 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s
- return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp
- if cosTheta >= 1.0E-4 then
- if 1 - cosTheta > 1.0E-4 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / Sin(theta)
- startInterp = Sin((1 - t) * theta) * invSinTheta
- finishInterp = Sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- elseif 1 + cosTheta > 1.0E-4 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / Sin(theta)
- startInterp = Sin((t - 1) * theta) * invSinTheta
- finishInterp = Sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- -------------------------------------------------------
- --Start Damage Function--
- -------------------------------------------------------
- function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
- hit.Parent:FindFirstChild("Head"):BreakJoints()
- end
- if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- if insta == true then
- hit.Parent:FindFirstChild("Head"):BreakJoints()
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
- else
- h.Health = h.Health - (Damage / 2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "DarkUp" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- swait()
- Effects.Block.Create(BrickColor.new("Royal purple"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
- end
- end))
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function damage(range,mindam,maxdam,pos)
- for i,v in ipairs(workspace:GetChildren()) do
- if v:IsA("Model") then
- if v.Name ~= Player.Name then
- if v:FindFirstChildOfClass("Humanoid") then
- if v:FindFirstChild("Head") then
- if (v:FindFirstChild("Head").Position - pos).magnitude < 10 then
- if v:FindFirstChildOfClass("Humanoid").Health > 5000 then v:FindFirstChildOfClass("Humanoid").Health = 0 else
- v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - math.random(mindam,maxdam)
- end
- end
- end
- end
- end
- end
- end
- end
- -------------------------------------------------------
- --End Damage Function--
- -------------------------------------------------------
- -------------------------------------------------------
- --Start Damage Function Customization--
- -------------------------------------------------------
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) --Thanks, Star Glitcher!
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- local speeder = FastSpeed/10
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed/10
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- end
- rng:Destroy()
- end))
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "Bodoni",
- TextColor3 = Color,
- TextScaled = true,
- TextStrokeColor3 = Color3.fromRGB(0,0,0),
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- -------------------------------------------------------
- --End Damage Function Customization--
- -------------------------------------------------------
- function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= plr.Name then
- Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
- end
- end
- end
- end
- 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
- },
- Sound = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound")({
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace
- })
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- 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
- }
- }
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- formFactor = FormFactor,
- 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
- function CreateMesh(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
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- -------------------------------------------------------
- --Start Effect Function--
- -------------------------------------------------------
- EffectModel = Instance.new("Model", char)
- Effects = {
- Block = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- else
- table.insert(Effects, {
- prt,
- "Block3",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- },
- Sphere = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Cylinder = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Wave = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3 / 60,
- y3 / 60,
- z3 / 60,
- msh
- })
- end
- },
- Ring = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Break = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- },
- Spiral = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Push = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- }
- }
- function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
- local fp = IT("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked = true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = tors.Position
- RemoveOutlines(fp)
- fp.Material = "SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh = IT(Mesh)
- mesh.Parent = part
- if Mesh == "SpecialMesh" then
- mesh.MeshType = meshtype
- if meshid ~= "nil" then
- mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset = offset
- mesh.Scale = scale
- return mesh
- end
- function Magic(bonuspeed, type, pos, scale, value, color, MType)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = MType
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1 * value
- elseif type == "Divide" then
- scaler2 = 1 / value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 10 / bonuspeed, 0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01 * value / bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01 / value * bonuspeed
- end
- rng.Transparency = rng.Transparency + 0.01 * bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function Eviscerate(dude)
- if dude.Name ~= char then
- local bgf = IT("BodyGyro", dude.Head)
- bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
- local val = IT("BoolValue", dude)
- val.Name = "IsHit"
- local ds = coroutine.wrap(function()
- dude:WaitForChild("Head"):BreakJoints()
- wait(0.5)
- target = nil
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(dude:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- if v:IsA("Humanoid") then
- v:Destroy()
- end
- if v:IsA("CharacterMesh") then
- v:Destroy()
- end
- if v:IsA("Model") then
- v:Destroy()
- end
- if v:IsA("Part") or v:IsA("MeshPart") then
- for x, o in pairs(v:GetChildren()) do
- if o:IsA("Decal") then
- o:Destroy()
- end
- end
- coroutine.resume(coroutine.create(function()
- v.Material = "Neon"
- v.CanCollide = false
- local PartEmmit1 = IT("ParticleEmitter", v)
- PartEmmit1.LightEmission = 1
- PartEmmit1.Texture = "rbxassetid://284205403"
- PartEmmit1.Color = ColorSequence.new(maincolor.Color)
- PartEmmit1.Rate = 150
- PartEmmit1.Lifetime = NumberRange.new(1)
- PartEmmit1.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.75, 0),
- NumberSequenceKeypoint.new(1, 0, 0)
- })
- PartEmmit1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- PartEmmit1.Speed = NumberRange.new(0, 0)
- PartEmmit1.VelocitySpread = 30000
- PartEmmit1.Rotation = NumberRange.new(-500, 500)
- PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
- local BodPoss = IT("BodyPosition", v)
- BodPoss.P = 3000
- BodPoss.D = 1000
- BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
- BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
- v.Color = maincolor.Color
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait(1)
- v.Transparency = v.Transparency + 0.08
- end
- wait(0.5)
- PartEmmit1.Enabled = false
- wait(3)
- v:Destroy()
- dude:Destroy()
- end))
- end))
- end
- end
- end))
- end)
- ds()
- end
- end
- function FindNearestHead(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
- end
- local List = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
- table.insert(List, v)
- end
- end
- return List
- end
- function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = MType
- rngm.Scale = Vector3.new(x1, y1, z1)
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1 * value
- elseif type == "Divide" then
- scaler2 = 1 / value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 10 / bonuspeed, 0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01 * value / bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01 / value * bonuspeed
- end
- speeder = speeder - 0.01 * FastSpeed * bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
- rng.Transparency = rng.Transparency + 0.01 * bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- function SoulSteal(dude)
- if dude.Name ~= char then
- local bgf = IT("BodyGyro", dude.Head)
- bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
- local val = IT("BoolValue", dude)
- val.Name = "IsHit"
- local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
- local soulst = coroutine.wrap(function()
- local soul = Instance.new("Part",dude)
- soul.Size = Vector3.new(1,1,1)
- soul.CanCollide = false
- soul.Anchored = false
- soul.Position = torso.Position
- soul.Transparency = 1
- local PartEmmit1 = IT("ParticleEmitter", soul)
- PartEmmit1.LightEmission = 1
- PartEmmit1.Texture = "rbxassetid://569507414"
- PartEmmit1.Color = ColorSequence.new(maincolor.Color)
- PartEmmit1.Rate = 250
- PartEmmit1.Lifetime = NumberRange.new(1.6)
- PartEmmit1.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1, 0),
- NumberSequenceKeypoint.new(1, 0, 0)
- })
- PartEmmit1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- PartEmmit1.Speed = NumberRange.new(0, 0)
- PartEmmit1.VelocitySpread = 30000
- PartEmmit1.Rotation = NumberRange.new(-360, 360)
- PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
- local BodPoss = IT("BodyPosition", soul)
- BodPoss.P = 3000
- BodPoss.D = 1000
- BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
- BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
- wait(1.6)
- soul.Touched:connect(function(hit)
- if hit.Parent == char then
- soul:Destroy()
- end
- end)
- wait(1.2)
- while soul do
- swait()
- PartEmmit1.Color = ColorSequence.new(maincolor.Color)
- BodPoss.Position = tors.Position
- end
- end)
- soulst()
- end
- end
- function FaceMouse()
- local Cam = workspace.CurrentCamera
- return {
- CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
- Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
- }
- end
- BTAUNT = Instance.new("Sound", char.Torso)
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2545298782"
- BTAUNT.Volume = 2
- BTAUNT.Pitch = 1
- BTAUNT.Looped = true
- BTAUNT.TimePosition = 0
- BTAUNT3 = Instance.new("Sound", tors)
- BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=157016540"
- BTAUNT3.Volume = 10
- BTAUNT3.Pitch = 1
- BTAUNT3.Looped = false
- BTAUNT3.TimePosition = 0
- TEST = Instance.new("Sound", tors)
- TEST.SoundId = "http://www.roblox.com/asset/?id=2544975373"
- TEST.Volume = 25
- TEST.Pitch = 1
- TEST.Looped = false
- TEST.TimePosition = 0
- -------------------------------------------------------
- --End Effect Function--
- -------------------------------------------------------
- function Cso(ID, PARENT, VOLUME, PITCH)
- local NSound = nil
- coroutine.resume(coroutine.create(function()
- NSound = IT("Sound", PARENT)
- NSound.Volume = VOLUME
- NSound.Pitch = PITCH
- NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
- swait()
- NSound:play()
- game:GetService("Debris"):AddItem(NSound, 50)
- end))
- return NSound
- end
- function CameraEnshaking(Length, Intensity)
- coroutine.resume(coroutine.create(function()
- local intensity = 1 * Intensity
- local rotM = 0.01 * Intensity
- for i = 0, Length, 0.1 do
- swait()
- intensity = intensity - 0.05 * Intensity / Length
- rotM = rotM - 5.0E-4 * Intensity / Length
- hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
- cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
- end
- hum.CameraOffset = Vector3.new(0, 0, 0)
- end))
- end
- function CreatePart(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
- function CreateMesh(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
- function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace,"Neon",0,0,brickcolor,"Effect", Vector3.new(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh,num)
- for i=0,1,delay do
- swait()
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale + Vector3.new(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,(math.random(0,1)+math.random())/5)
- end
- function getRegion(point,range,ignore)
- return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
- end
- function GetTorso(char)
- return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
- end
- local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- function Part(parent,color,material,size,cframe,anchored,cancollide)
- local part = Instance.new("Part")
- part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
- part.Material = material or Enum.Material.SmoothPlastic
- part.TopSurface,part.BottomSurface=10,10
- part.Size = size or Vector3.new(1,1,1)
- part.CFrame = cframe or CF(0,0,0)
- part.Anchored = anchored or true
- part.CanCollide = cancollide or false
- part.Parent = parent or char
- return part
- end
- -------------------------------------------------------
- --End Important Functions--
- -------------------------------------------------------
- -------------------------------------------------------
- --Start Customization--
- -------------------------------------------------------
- local Player_Size = 1
- if Player_Size ~= 1 then
- root.Size = root.Size * Player_Size
- tors.Size = tors.Size * Player_Size
- hed.Size = hed.Size * Player_Size
- ra.Size = ra.Size * Player_Size
- la.Size = la.Size * Player_Size
- rl.Size = rl.Size * Player_Size
- ll.Size = ll.Size * Player_Size
- ----------------------------------------------------------------------------------
- rootj.Parent = root
- neck.Parent = tors
- RW.Parent = tors
- LW.Parent = tors
- RH.Parent = tors
- LH.Parent = tors
- ----------------------------------------------------------------------------------
- rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
- rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
- neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
- neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
- RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
- LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
- ----------------------------------------------------------------------------------
- RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
- LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
- RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
- LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
- --hat.Parent = Character
- end
- ----------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------
- local equipped = false
- local idle = 0
- local change = 1
- local val = 0
- local toim = 0
- local idleanim = 0.4
- local sine = 0
- local Sit = 1
- local Mode = "Normal"
- ----------------------------------------------------------------------------------
- hum.WalkSpeed = 48
- hum.JumpPower = 57
- hum.Animator.Parent = hum
- ----------------------------------------------------------------------------------
- -------------------------------------------------------
- --End Customization--
- -------------------------------------------------------
- local Blobby = Instance.new("Part", char)
- Blobby.Name = "Blob"
- Blobby.CanCollide = false
- Blobby.BrickColor = BrickColor.new("Really black")
- Blobby.Transparency = 0
- Blobby.Material = "Plastic"
- Blobby.Size = Vector3.new(1, 1, 2)
- Blobby.TopSurface = Enum.SurfaceType.Smooth
- Blobby.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Blobby)
- Weld.Part0 = la
- Weld.Part1 = Blobby
- Weld.C1 = CFrame.new(0, 0.8, 0)
- Weld.C0 = CFrame.Angles(Rad(-180),0,135)
- local M2 = Instance.new("SpecialMesh")
- M2.Parent = Blobby
- M2.MeshId = "rbxassetid://0"
- M2.TextureId = "rbxassetid://26884682"
- M2.Scale = Vector3.new(1, 0.8, 1)
- --[[local naeeym2 = Instance.new("BillboardGui",char)
- naeeym2.AlwaysOnTop = true
- naeeym2.Size = UDim2.new(5,35,2,15)
- naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
- naeeym2.Adornee = hed
- naeeym2.Name = "skid lol"
- --naeeym2.PlayerToHideFrom = Player
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Text = "Fight Me"
- tecks2.Font = Enum.Font.Bodoni
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(0, 0, 0)
- tecks2.TextStrokeColor3 = Color3.new(1, 1, 1)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2]]
- ----------------------------------------------------------------------------------
- local AddInstance = function(Object, ...)
- local Obj = Instance.new(Object)
- for i,v in next,(...) do
- Obj[i] = v
- end
- return Obj
- end
- ----------------------------------------------------
- local ears = Instance.new("Part", char)
- ears.Name = "ears"
- ears.CanCollide = false
- ears.BrickColor = BrickColor.new("Pastel light blue")
- ears.Transparency = 0
- ears.Material = "Plastic"
- ears.Size = Vector3.new(1, 1, 2)
- ears.TopSurface = Enum.SurfaceType.Smooth
- ears.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", ears)
- Weld.Part0 = hed
- Weld.Part1 = ears
- Weld.C1 = CFrame.new(0, -0.1, 0)
- Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
- local M3 = Instance.new("SpecialMesh")
- M3.Parent = ears
- M3.MeshId = "http://www.roblox.com/asset/?id=19383407"
- M3.Scale = Vector3.new(1, 1.2, 1.1)
- local Reaper = AddInstance("Part",{
- Parent = hed,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Reaper,
- Part0 = tors,
- C0 = CFrame.new(0, -0.9, 0.5)*CFrame.Angles(0, 0, 110.001),
- Part1 = Reaper,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Reaper,
- MeshId = "rbxassetid://63717022",
- TextureId = "rbxassetid://37912058",
- Scale = Vector3.new(1.7,2.5,1.7),
- VertexColor = Vector3.new(0, 0, 0),
- })
- local Reaper = AddInstance("Part",{
- Parent = hed,
- CFrame = hed.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Reaper,
- Part0 = hed,
- C0 = CFrame.new(0, 0.9, 0.4)*CFrame.Angles(0, 0, 0),
- Part1 = Reaper,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Reaper,
- MeshId = "rbxassetid://291954550",
- TextureId = "rbxassetid://3021715383",
- Scale = Vector3.new(3.5, 3.5, 3.3),
- VertexColor = Vector3.new(1, 1, 1),
- })
- local Reaper2 = AddInstance("Part",{
- Parent = tors,
- CFrame = tors.CFrame,
- formFactor = "Symmetric",
- Size = Vector3.new(0.462, 1.403, 2.495),
- CanCollide = false,
- TopSurface = "Smooth",
- BottomSurface = "Smooth",
- Locked = true,
- })
- local Weld = AddInstance("Weld",{
- Parent = Reaper2,
- Part0 = tors,
- C0 = CFrame.new(0, -1.7, 1.5)*CFrame.Angles(0, 0, 0),
- Part1 = Reaper2,
- })
- local Mesh = AddInstance("SpecialMesh",{
- Parent = Reaper2,
- MeshId = "rbxassetid://2759032628",
- TextureId = "rbxassetid://89867215",
- Scale = Vector3.new(0, 0, 0.5),
- VertexColor = Vector3.new(0.5, 0.5, 0.5),
- })
- -------------------------------------------------------
- wait(1)
- plr = Player
- char = plr.Character
- whitecolor = Color3.new(1,1,1)
- epicmode = false
- normal = true
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- end
- local shirt = Instance.new("Shirt",char)
- shirt.ShirtTemplate = "rbxassetid://2544612637"
- local pants = Instance.new("Pants",char)
- pants.PantsTemplate = "rbxassetid://2544611861"
- Character['Body Colors'].HeadColor=BrickColor.new('Pastel light blue')
- Character['Body Colors'].TorsoColor=BrickColor.new('Pastel light blue')
- Character['Body Colors'].RightArmColor=BrickColor.new('Pastel light blue')
- Character['Body Colors'].LeftArmColor=BrickColor.new('Pastel light blue')
- Character['Body Colors'].RightLegColor=BrickColor.new('Pastel light blue')
- Character['Body Colors'].LeftLegColor=BrickColor.new('Pastel light blue')
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" or v.ClassName == "Accessory" then
- v:Destroy()
- end
- end
- -------------------------------------------------------
- --Start Attacks N Stuff--
- -------------------------------------------------------
- local naeeym2 = Instance.new("BillboardGui",char)
- naeeym2.AlwaysOnTop = true
- naeeym2.Size = UDim2.new(5,35,2,35)
- naeeym2.StudsOffset = Vector3.new(0,2,0)
- naeeym2.Adornee = hed
- naeeym2.Name = "Name"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Font = "Fantasy"
- tecks2.TextSize = 50
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = BrickColor.new('Really black').Color
- tecks2.TextStrokeColor3 = BrickColor.new('Bright blue').Color
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2
- textfag = tecks2
- tecks2.Text = "???"
- BTAUNT:Play()
- coroutine.resume(coroutine.create(function()
- while textfag ~= nil do
- swait()
- textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
- textfag.Rotation = math.random(-3,3)
- end
- end))
- function ohp()
- attack = true
- M2.MeshId = "rbxassetid://0"
- M2.TextureId = "rbxassetid://0"
- for i = 1, 4 do
- local model = Instance.new("Model")
- model.Name = "Spades"
- model.Parent = char
- local mainpart = Instance.new("Part")
- mainpart.Transparency = 1
- mainpart.CanCollide = false
- mainpart.Anchored = true
- mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
- mainpart.Parent = model
- model.PrimaryPart = mainpart
- local spades = {}
- for i = 1, 10 do
- local spade = Instance.new("Part")
- spade.Name = "Spade"
- spade.Transparency = 0
- spade.Anchored = true
- spade.CanCollide = false
- spade.Size = Vector3.new(2, 0.05, 2)
- spade.Parent = model
- local debounce = false
- local decal1 = Instance.new("SpecialMesh",spade)
- decal1.MeshId = "https://roblox.com/asset/?id=2760895053"
- decal1.Scale = Vector3.new(1,1,1)
- local decal2 = Instance.new("SpecialMesh",spade)
- decal2.MeshId = "https://roblox.com/asset/?id=2760895053"
- decal2.Scale = Vector3.new(1,1,1)
- local debounce = false
- spade.Touched:Connect(function(hit)
- end)
- table.insert(spades, spade)
- end
- for i = 1, #spades do
- spades[i].CFrame = mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-20, 0, 0)
- end
- for x = 20, 10, -0.5 do
- game:GetService("RunService").Stepped:Wait()
- mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
- for i = 1, #spades do
- for i,v in pairs(spades[i]:GetChildren()) do
- if v:IsA("Decal") then
- v.Transparency = v.Transparency - 0.05
- end
- end
- spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-x, 0, 0), 0.15)
- end
- end
- for i = 1, 35 do
- game:GetService("RunService").Stepped:Wait()
- mainpart.CFrame = CFrame.new(mouse.Hit.Position) * CFrame.new(0, 3, 0)
- for i = 1, #spades do
- spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-10, 0, 0), 0.15)
- end
- end
- coroutine.resume(coroutine.create(function()
- for i = 1, #spades do
- coroutine.resume(coroutine.create(function()
- for x = 10, 13, 0.3 do
- game:GetService("RunService").Stepped:Wait()
- spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-x, 0, 0), 0.15)
- end
- for x = 1, 15 do
- game:GetService("RunService").Stepped:Wait()
- spades[i].CFrame = spades[i].CFrame:Lerp(mainpart.CFrame * CFrame.Angles(0, math.rad((360 / #spades) * i) + math.pi / 2, 0) * CFrame.new(-13, 0, 0), 0.15)
- end
- local debounce = false
- for x = 0, 0.5, 0.025 do
- game:GetService("RunService").Stepped:Wait()
- for i,v in pairs(spades[i]:GetTouchingParts()) do
- if not v:IsDescendantOf(char) and debounce == false then
- if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
- debounce = true
- v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 20
- coroutine.resume(coroutine.create(function()
- wait(0.4)
- debounce = false
- end))
- end
- end
- end
- spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
- end
- for x = 0.5, 1, 0.025 do
- game:GetService("RunService").Stepped:Wait()
- for i,v in pairs(spades[i]:GetChildren()) do
- if v:IsA("Mesh") then
- v.Transparency = v.Transparency + 0.05
- end
- end
- for i,v in pairs(spades[i]:GetTouchingParts()) do
- if not v:IsDescendantOf(char) and debounce == false then
- if v.Parent and v.Parent:FindFirstChildOfClass("Humanoid") then
- debounce = true
- v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 5
- coroutine.resume(coroutine.create(function()
- wait(0.4)
- debounce = false
- end))
- end
- end
- end
- spades[i].CFrame = spades[i].CFrame * CFrame.new(x, 0, 0)
- end
- spades[i]:Destroy()
- end))
- wait(0.05)
- end
- end))
- wait(1)
- coroutine.resume(coroutine.create(function()
- wait(1.4)
- model:Destroy()
- end))
- end
- attack = false
- end
- function finalChaos()
- attack = true
- spawn(function()
- local p = Instance.new("Part",char)
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0))
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "https://roblox.com/asset/?id=28140935"
- m.Scale = Vector3.new(2,2,2)
- for i=1,30 do
- p.CFrame = p.CFrame-Vector3.new(0,3.3333,0)
- p.CFrame = p.CFrame * CFrame.Angles(0.5,0,0)
- wait()
- end
- local beam = Instance.new("Part",char)
- beam.Anchored = true
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("White")
- beam.Material = Enum.Material.Neon
- beam.Size = Vector3.new(1,1,1)
- beam.Position = p.Position+Vector3.new(0,1000,0)
- beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354)
- local m = Instance.new("SpecialMesh",beam)
- m.MeshType = "Cylinder"
- m.Scale = Vector3.new(2000,15,15)
- damage(6,20,35,p.Position)
- p.Transparency = 1
- CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1)
- for i=1,10 do
- m.Scale = m.Scale-Vector3.new(0,1,1)
- beam.Transparency = i / 10
- wait()
- end
- p:Destroy()
- end)
- attack = false
- end
- function spade()
- attack = true
- spawn(function()
- local p = Instance.new("Part",char)
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0))
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "https://roblox.com/asset/?id=2760895053"
- m.Scale = Vector3.new(1,1,1)
- for i=1,30 do
- p.CFrame = p.CFrame-Vector3.new(0,3.3333,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,4,0)
- wait()
- end
- local beam = Instance.new("Part",char)
- beam.Anchored = true
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("White")
- beam.Material = Enum.Material.Neon
- beam.Size = Vector3.new(1,1,1)
- beam.Position = p.Position+Vector3.new(0,1000,0)
- beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354)
- local m = Instance.new("SpecialMesh",beam)
- m.MeshType = "Cylinder"
- m.Scale = Vector3.new(2000,15,15)
- damage(6,20,35,p.Position)
- p.Transparency = 1
- CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1)
- for i=1,10 do
- m.Scale = m.Scale-Vector3.new(0,1,1)
- beam.Transparency = 1
- wait()
- end
- p:Destroy()
- end)
- attack = false
- end
- function club()
- attack = true
- spawn(function()
- local p = Instance.new("Part",char)
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0))
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "https://roblox.com/asset/?id=2761335666"
- m.Scale = Vector3.new(1.5,1.5,1.5)
- for i=1,30 do
- p.CFrame = p.CFrame-Vector3.new(0,3.3333,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,2,0)
- wait()
- end
- local beam = Instance.new("Part",char)
- beam.Anchored = true
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("White")
- beam.Material = Enum.Material.Neon
- beam.Size = Vector3.new(1,1,1)
- beam.Position = p.Position+Vector3.new(0,1000,0)
- beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354)
- local m = Instance.new("SpecialMesh",beam)
- m.MeshType = "Cylinder"
- m.Scale = Vector3.new(2000,15,15)
- damage(6,20,35,p.Position)
- p.Transparency = 1
- CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1)
- for i=1,10 do
- m.Scale = m.Scale-Vector3.new(0,1,1)
- beam.Transparency = 1
- wait()
- end
- p:Destroy()
- end)
- attack = false
- end
- function heart()
- attack = true
- spawn(function()
- local p = Instance.new("Part",char)
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0))
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "https://roblox.com/asset/?id=105992239"
- m.Scale = Vector3.new(9.5,9.5,9.5)
- for i=1,30 do
- p.CFrame = p.CFrame-Vector3.new(0,3.3333,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,2,0)
- wait()
- end
- local beam = Instance.new("Part",char)
- beam.Anchored = true
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("White")
- beam.Material = Enum.Material.Neon
- beam.Size = Vector3.new(1,1,1)
- beam.Position = p.Position+Vector3.new(0,1000,0)
- beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354)
- local m = Instance.new("SpecialMesh",beam)
- m.MeshType = "Cylinder"
- m.Scale = Vector3.new(2000,15,15)
- damage(6,20,35,p.Position)
- p.Transparency = 1
- CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1)
- for i=1,10 do
- m.Scale = m.Scale-Vector3.new(0,1,1)
- beam.Transparency = 1
- wait()
- end
- p:Destroy()
- end)
- attack = false
- end
- function diamond()
- attack = true
- spawn(function()
- local p = Instance.new("Part",char)
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0))
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "https://roblox.com/asset/?id=9756362"
- m.Scale = Vector3.new(6,6,6)
- for i=1,30 do
- p.CFrame = p.CFrame-Vector3.new(0,3.3333,0)
- p.CFrame = p.CFrame * CFrame.Angles(0,2,0)
- wait()
- end
- local beam = Instance.new("Part",char)
- beam.Anchored = true
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("White")
- beam.Material = Enum.Material.Neon
- beam.Size = Vector3.new(1,1,1)
- beam.Position = p.Position+Vector3.new(0,1000,0)
- beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354)
- local m = Instance.new("SpecialMesh",beam)
- m.MeshType = "Cylinder"
- m.Scale = Vector3.new(2000,15,15)
- damage(6,20,35,p.Position)
- p.Transparency = 1
- CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1)
- for i=1,10 do
- m.Scale = m.Scale-Vector3.new(0,1,1)
- beam.Transparency = 1
- wait()
- end
- p:Destroy()
- end)
- attack = false
- end
- function icando()
- attack = true
- hum.WalkSpeed = 0
- for i = 0, 2, 0.1 do
- swait()
- end
- TEST:Remove()
- TEST:Play()
- local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),tors.CFrame,true,false)
- Hook2.Transparency = 1
- local A2 = NewInstance("Attachment",Hook2)
- local B2 = NewInstance("Attachment",hed,{Position = Vector3.new(0,-hed.Size.Y/2,0)})
- local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
- repeat
- for i = 0,4,0.1 do
- swait()
- TEST.Parent = tors
- end
- until TEST.Playing == false
- TEST:Stop()
- TEST:Play()
- TEST:Remove()
- Hook2:Destroy()
- attack = false
- hum.WalkSpeed = 50
- end
- function Taunt3() --By Me/XKxngSupremeX
- attack = true
- hum.WalkSpeed = 0
- for i = 0, 0.5, 0.1 do
- swait()
- end
- local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),tors.CFrame,true,false)
- Hook2.Transparency = 1
- local A2 = NewInstance("Attachment",Hook2)
- local B2 = NewInstance("Attachment",hed,{Position = Vector3.new(0,-hed.Size.Y/2,0)})
- local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
- CFuncs.Sound.Create("rbxassetid://2606662454", head, 100, 1)
- for i = 0, 2, 0.1 do
- swait()
- end
- for i = 0, 2, 0.1 do
- swait()
- end
- for i = 0, 2, 0.1 do
- swait()
- end
- for i = 0, 2, 0.1 do
- swait()
- end
- attack = false
- Hook2:Destroy()
- hum.WalkSpeed = 50
- end
- function Taunt2() --By Me/XKxngSupremeX
- attack = true
- hum.WalkSpeed = 0
- CFuncs.Sound.Create("rbxassetid://2545010175", head, 100, 1)
- for i = 0, 2, 0.1 do
- swait()
- end
- for i = 0, 6, 0.1 do
- swait()
- end
- for i = 0, 2, 0.1 do
- swait()
- end
- attack = false
- hum.WalkSpeed = 50
- end
- function Laugh() --By Me/XKxngSupremeX
- attack = true
- hum.WalkSpeed = 0
- CFuncs.Sound.Create("rbxassetid://2545211765", head, 100, 1)
- for i = 0, 2, 0.1 do
- swait()
- end
- for i = 0, 6, 0.1 do
- swait()
- end
- for i = 0, 2, 0.1 do
- swait()
- end
- attack = false
- hum.WalkSpeed = 50
- end
- local wheelchair = Instance.new("Part", char)
- wheelchair.Name = "ears"
- wheelchair.CanCollide = false
- wheelchair.BrickColor = BrickColor.new("Pastel light blue")
- wheelchair.Transparency = 0
- wheelchair.Material = "Plastic"
- wheelchair.Size = Vector3.new(1, 1, 2)
- wheelchair.TopSurface = Enum.SurfaceType.Smooth
- wheelchair.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", wheelchair)
- Weld.Part0 = tors
- Weld.Part1 = wheelchair
- Weld.C1 = CFrame.new(0, 1, 0)
- Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
- local M5 = Instance.new("SpecialMesh")
- M5.Parent = wheelchair
- M5.MeshId = "http://www.roblox.com/asset/?id=0"
- M5.TextureId = "http://www.roblox.com/asset/?id=0"
- M5.Scale = Vector3.new(2, 2, 2)
- -------------------------------------------------------
- --End Attacks N Stuff--
- -------------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if attack == false then
- if key == 't' and Mode == "Fight" then
- icando()
- elseif key == "r" and Mode == "Fight" then
- Taunt3() --By Me/XKxngSupremeX
- elseif key == "y" and Mode == "Fight" then
- Taunt2() --By Me/XKxngSupremeX
- elseif key == 'p' and Mode == "Normal" then
- Mode = "Fight"
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2533880583"
- hum.WalkSpeed = 50
- tecks2.Text = "J҉ E҉ V҉ I҉ L҉"
- BTAUNT:Play()
- elseif key == 'q' and Mode == "Fight" then
- Mode = "Exhausted"
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2545298782"
- hum.WalkSpeed = 50
- tecks2.Text = "Exhausted J҉ E҉ V҉ I҉ L҉"
- coroutine.resume(coroutine.create(function()
- while textfag ~= nil do
- swait()
- textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
- textfag.Rotation = math.random(-3,3)
- end
- end))
- elseif key == 'p' and Mode == "Exhausted" then
- Mode = "Fight"
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2533880583"
- hum.WalkSpeed = 50
- tecks2.Text = "J҉ E҉ V҉ I҉ L҉"
- coroutine.resume(coroutine.create(function()
- while textfag ~= nil do
- swait()
- textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
- textfag.Rotation = math.random(-3,3)
- end
- end))
- elseif key == 'p' and Mode == "Fight" then
- Mode = "Normal"
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2545298782"
- hum.WalkSpeed = 16
- tecks2.Text = "???"
- BTAUNT:Play()
- elseif key == 'm' and Mode == "Fight" then
- Mode = "Wheelchair"
- M5.MeshId = "http://www.roblox.com/asset/?id=1226669573"
- M5.TextureId = "http://www.roblox.com/asset/?id=1226669284"
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2637401925"
- hum.WalkSpeed = 16
- tecks2.Text = "I Can't do anything"
- BTAUNT:Play()
- elseif key == 'm' and Mode == "Wheelchair" then
- Mode = "Normal"
- M5.MeshId = "http://www.roblox.com/asset/?id=0"
- M5.TextureId = "http://www.roblox.com/asset/?id=0"
- BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2545298782"
- hum.WalkSpeed = 16
- tecks2.Text = "???"
- BTAUNT:Play()
- elseif key == "u" and Mode == "Fight" then
- Laugh() --By Me/XKxngSupremeX
- elseif key == "v" and Mode == "Fight" and Mode == "Fight" then
- spade() --By Me/XKxngSupremeX
- elseif key == "x" and Mode == "Fight" then
- devils() --By Me/XKxngSupremeX
- elseif key == "n" and Mode == "Fight" then
- club() --By Me/XKxngSupremeX
- end
- end
- end)
- mouse.Button1Down:connect(function(key)
- if attack == false and Mode == "Fight" then
- ohp()
- end
- end)
- -------------------------------------------------------
- --Start Animations--
- -------------------------------------------------------
- --[[
- while true do
- swait()
- sine = sine + change
- local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = root.Velocity.y
- hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
- if equipped == true or equipped == false then
- if attack == false then
- idle = idle + 1
- else
- idle = 0
- end
- if 1 < root.Velocity.y and hitfloor == nil then
- Anim = "Jump"
- if attack == false then
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
- neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
- end
- elseif -1 > root.Velocity.y and hitfloor == nil then
- Anim = "Fall"
- if attack == false then
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
- neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
- end
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- change = 1
- if attack == false then
- if Mode == "Normal" then
- M2.MeshId = "rbxassetid://0"
- M2.TextureId = "rbxassetid://0"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0 * Player_Size, 0 * Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 12)),math.rad(0 + 0 * math.cos(sine / 58)),math.rad(-0 + 0 * math.sin(sine / 32))),.1)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.15 * Cos(sine / 12)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-5 - 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.2 - 0.15 * Cos(sine / 12)* Player_Size, -0.8* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5 - 2 * Cos(sine / 12)), Rad(0), Rad(15)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(90), Rad(105 - 5 * math.cos(sine / 12))) * angles(Rad(0), Rad(90), Rad(0)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-50), Rad(-10 + -5 * Sin(sine / 12))), 0.1)
- elseif Mode == "Fight" then
- change = 1.15
- M2.MeshId = "rbxassetid://0"
- M2.TextureId = "rbxassetid://26884682"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0 + Cos(sine / 10) / 1* Player_Size, 0* Player_Size, 1 + Cos(sine / 5) / 0.7* Player_Size) * angles(Rad(0 + 10 * Cos(sine / 5)), Rad(0), Rad(0 + 50 * Sin(sine / 10))), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0 - 10 * Cos(sine / 5)), Rad(0), Rad(1 - 50 * Sin(sine / 10))), 0.3)
- RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.7 * Cos(sine / 10), -0.3) * RHCF * angles(Rad(-9.5), Rad(-20), Rad(0)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1, -0.9 + 0.7 * Cos(sine / 10), -0.3) * LHCF * angles(Rad(-6.5), Rad(20), Rad(0)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(50), Rad(23 + 150 * Sin(sine / 10))), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-50), Rad(-23 + 150 * Sin(sine / 10))), 0.1)
- elseif Mode == "Exhausted" then
- M2.MeshId = "rbxassetid://28140935"
- M2.TextureId = "rbxassetid://26884682"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0 * Player_Size, 0 * Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 12)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 12)),math.rad(0 + 0 * math.cos(sine / 58)),math.rad(-0 + 0 * math.sin(sine / 32))),.1)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.15 * Cos(sine / 12)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-5 - 2 * Cos(sine / 12)), Rad(0), Rad(20)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.2 - 0.15 * Cos(sine / 12)* Player_Size, -0.8* Player_Size) * angles(Rad(0), Rad(-85), Rad(90)) * angles(Rad(-5 - 2 * Cos(sine / 12)), Rad(0), Rad(-90)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(0), Rad(0 - 5 * math.cos(sine / 12))) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(-50), Rad(-10 + -5 * Sin(sine / 12))), 0.1)
- elseif Mode == "Wheelchair" then
- M2.MeshId = "rbxassetid://0"
- M2.TextureId = "rbxassetid://0"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0 * Player_Size, 0 * Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 5 * math.cos(sine / 12)),math.rad(0 + 0 * math.cos(sine / 58)),math.rad(-0 + 0 * math.sin(sine / 32))),.1)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.2 - 0 * Cos(sine / 12)* Player_Size, -0.8* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(0 * Cos(sine / 12)), Rad(0), Rad(15)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.2 - 0 * Cos(sine / 12)* Player_Size, -0.8* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(0 * Cos(sine / 12)), Rad(0), Rad(-15)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(0), Rad(0 - 5 * math.cos(sine / 12))) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(-50), Rad(-10 + -5 * Sin(sine / 12))), 0.1)
- end
- end
- elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
- Anim = "Walk"
- change = 1
- if attack == false then
- if Mode == "Normal" then
- M2.MeshId = "rbxassetid://28140935"
- M2.TextureId = "rbxassetid://26884682"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1 + 0.1 * Cos(sine / 20)) * angles(Rad(20 + 2 * Cos(sine / 10)), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.5 - 0.1 * Cos(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(20)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0.6* Player_Size) * angles(Rad(-30), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-25)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-13 - 7.5 * Sin(sine / 12))), 0.1)
- elseif Mode == "Fight" then
- M2.MeshId = "rbxassetid://28140935"
- M2.TextureId = "rbxassetid://26884682"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1 + 0.1 * Cos(sine / 20)) * angles(Rad(20 + 2 * Cos(sine / 10)), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.5 - 0.1 * Cos(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(20)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0.6* Player_Size) * angles(Rad(-30), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-25)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-13 - 7.5 * Sin(sine / 12))), 0.1)
- elseif Mode == "Exhausted" then
- M2.MeshId = "rbxassetid://28140935"
- M2.TextureId = "rbxassetid://26884682"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1 + 0.1 * Cos(sine / 20)) * angles(Rad(20 + 2 * Cos(sine / 10)), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.5 - 0.1 * Cos(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(20)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0.6* Player_Size) * angles(Rad(-30), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-25)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-13 - 7.5 * Sin(sine / 12))), 0.1)
- elseif Mode == "Wheelchair" then
- M2.MeshId = "rbxassetid://0"
- M2.TextureId = "rbxassetid://0"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0 * Player_Size, 0 * Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 5 * math.cos(sine / 12)),math.rad(0 + 0 * math.cos(sine / 58)),math.rad(-0 + 0 * math.sin(sine / 32))),.1)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.2 - 0 * Cos(sine / 12)* Player_Size, -0.8* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(0 * Cos(sine / 12)), Rad(0), Rad(15)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.2 - 0 * Cos(sine / 12)* Player_Size, -0.8* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(0 * Cos(sine / 12)), Rad(0), Rad(-15)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(0), Rad(0 - 5 * math.cos(sine / 12))) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 10)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(-50), Rad(-10 + -5 * Sin(sine / 12))), 0.1)
- end
- end
- elseif torvel >= 25 and hitfloor ~= nil then
- Anim = "Sprint"
- change = 1.35
- if attack == false then
- M2.MeshId = "rbxassetid://28140935"
- M2.TextureId = "rbxassetid://26884682"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1 + 0.1 * Cos(sine / 20)) * angles(Rad(20 + 2 * Cos(sine / 10)), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.15)
- LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.5 - 0.1 * Cos(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-6.5 - 7.5 * Sin(sine / 12)), Rad(0), Rad(20)), 0.15)
- RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0.6* Player_Size) * angles(Rad(-30), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-25)), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(25 + 2.5 * Sin(sine / 12)), Rad(-13 - 7.5 * Sin(sine / 12))), 0.1)
- end
- 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 1 >= Thing[1].Transparency 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))
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block3" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- local Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * Vector3.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]
- elseif Thing[2] == "Elec" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif 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
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- ]]--
- hum.Health = 2000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement