Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by Fuexname/Carlosname
- -- date:3/25/2021
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: 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.1)
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local char = plr.Character
- hum = char.Humanoid
- local hed = char.Head
- local RootPart = char.HumanoidRootPart
- local root = char.HumanoidRootPart
- local angle = 0
- local LightningColor = BrickColor.new('Daisy orange')
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local tor = char.Torso
- local head = char.Head
- local root = char.HumanoidRootPart
- local sine = 0
- local RH = tor["Right Hip"]
- local LH = tor["Left Hip"]
- local RS = tor["Right Shoulder"]
- local LS = tor["Left Shoulder"]
- local neck = tor.Neck
- local rootjoint = root.RootJoint
- local Anim = "Idle"
- local id = -8
- local opposite = false
- local opposite2 = false
- local step = 40
- local attack = false
- local attacktype = 1
- local cf = CFrame.new
- local angles = CFrame.Angles
- function swait()
- game:GetService("RunService").Heartbeat:wait()
- end
- local AnimSpeed = 2.5
- local FrameSpeed = 1 / 60
- local Sine = 0
- local Change = 2 / AnimSpeed
- local Attack = false
- local DefaultAnims = true
- RS = tor:FindFirstChild("Right Shoulder")
- LS = tor:FindFirstChild("Left Shoulder")
- RH = tor:FindFirstChild("Right Hip")
- LH = tor:FindFirstChild("Left Hip")
- RJ = RootPart:FindFirstChild("RootJoint")
- N = tor:FindFirstChild("Neck")
- local RootPart = char["HumanoidRootPart"]
- local Torso = char["Torso"]
- local Head = char["Head"]
- local RightArm = char["Right Arm"]
- local LeftArm = char["Left Arm"]
- local RightLeg = char["Right Leg"]
- local LeftLeg = char["Left Leg"]
- local titansize = 60
- local RootJoint = RootPart.RootJoint
- local Neck = Torso.Neck
- local LW = Torso["Left Shoulder"]
- local LH = Torso["Left Hip"]
- local RW = Torso["Right Shoulder"]
- local RH = Torso["Right Hip"]
- Head=char.Head
- Root=char.HumanoidRootPart
- Torso=char.Torso RArm=char["Right Arm"] LArm=char["Left Arm"] RLeg=char["Right Leg"] LLeg=char["Left Leg"] RJ=Root.RootJoint Neck=Torso.Neck LS=Torso["Left Shoulder"] LH=Torso["Left Hip"] RS=Torso["Right Shoulder"] RH=Torso["Right Hip"]
- --------Important stuff -----------
- it=Instance.new IT = Instance.new cf = CFrame.new VT = Vector3.new Rad = math.rad C3 = Color3.new UD2 = UDim2.new BRICKC = BrickColor.new angles = CFrame.Angles Euler = CFrame.fromEulerAnglesXYZ Cos = math.cos Acos = math.acos Sin = math.sin Asin = math.asin ABS = math.abs MRANDOM = math.random FLOOR = math.floor
- radian = math.rad Rad = math.rad vt = Vector3.new BRICKC = BrickColor.new random = math.random Vec3 = Vector3.new Inst = Instance.new cFrame = CFrame.new Euler = CFrame.fromEulerAnglesXYZ vt = Vector3.new bc = BrickColor.new br = BrickColor.random it = Instance.new cf = CFrame.new IT = Instance.new CF = CFrame.new VT = Vector3.new RAD = math.rad C3 = Color3.new c3 = Color3.new UD2 = UDim2.new BRICKC = BrickColor.new ANGLES = CFrame.Angles EULER = CFrame.fromEulerAnglesXYZ COS = math.cos ACOS = math.acos SIN = math.sin ASIN = math.asin ABS = math.abs MRANDOM = math.random FLOOR = math.floor ceuler = CFrame.fromEulerAnglesXYZ
- cn=CFrame.new euler=CFrame.fromEulerAnglesXYZ
- -----------------------------------
- local MM = {RN = math.random, CS = math.cos, AS = math.acos, RD = math.rad, SN = math.sin}
- local CC = {NW = CFrame.new, AA = CFrame.Angles}
- local CLR = {B = BrickColor.new, T = Color3.new, RGB = Color3.fromRGB}
- local VV = Vector3.new
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local motors = {}
- for _, v in pairs(char:GetDescendants()) do
- if v:IsA("Motor6D") then
- motors[v.Part1.Name] = v
- end
- end
- local necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local LHC0 = cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- local LHC1 = cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- local RHC0 = cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- local RHC1 = cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- local RightShoulderC0 = cf(-0.5, 0, 0) * angles(Rad(0), Rad(90), Rad(0))
- local LeftShoulderC0 = cf(0.5, 0, 0) * angles(Rad(0), Rad(-90), Rad(0))
- function TweenAnimate(object,Aniim,time,easingstyle,easingdirection,repet,reverse,deelay)
- local infos=TweenInfo.new(time,Enum.EasingStyle[easingstyle],Enum.EasingDirection[easingdirection],repet,reverse,deelay)
- local tween=game:GetService("TweenService"):Create(object,infos,Aniim)
- tween:Play()
- return tween
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function CreateRing(maxsize,paar)
- spawn(function()
- local ringpart = Instance.new("Part", paar)
- ringpart.Name = "Ring"
- ringpart.Size = Vector3.new(1,1,1)
- ringpart.CFrame = tor.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- ringpart.CanCollide = false
- ringpart.Anchored = true
- ringpart.BrickColor = LightningColor
- ringpart.Material = Enum.Material.Neon
- local ringpartmesh = Instance.new('SpecialMesh', ringpart)
- ringpartmesh.MeshId = "rbxassetid://3270017"
- ringpartmesh.Scale = Vector3.new(1,1,1)
- ringpartmesh.VertexColor = Vector3.new(LightningColor.r,LightningColor.b,LightningColor.g)
- spawn(function()
- for i = 1,5, 0.1 do
- ringpartmesh.Scale = ringpartmesh.Scale:Lerp(Vector3.new(maxsize*10,maxsize*10,maxsize*10),0.1)
- wait()
- end
- end)
- wait(.5)
- for i = 1,20 do
- ringpart.Transparency = ringpart.Transparency + 0.05
- wait()
- end
- game.Debris:AddItem(ringpart, 5)
- end)
- end
- function HitboxFunction(Parent, Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
- local Hitboxpart = Instance.new("Part", Parent)
- Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
- Hitboxpart.CanCollide = false
- Hitboxpart.Transparency = 1
- Hitboxpart.Anchored = true
- Hitboxpart.CFrame = Pose
- game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
- Hitboxpart.Touched:connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= char then
- --131237241
- local bv = Instance.new("BodyVelocity", hit.Parent.HumanoidRootPart)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = (tor.Position - hit.Parent.HumanoidRootPart.Position).Unit
- hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(Min,Max))
- end
- end)
- end
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- 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 m11 > m00 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 >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((1 - t) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((t - 1) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- 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 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
- local defaults = {
- ["Head"] = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
- ["Left Arm"] = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
- ["Left Leg"] = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
- ["Right Arm"] = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
- ["Right Leg"] = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
- ["Torso"] = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
- }
- function playAnimation(keyframes)
- for i,v in pairs(motors) do
- local name = tostring(v.Part1)
- if keyframes[name] then
- coroutine.resume(coroutine.create(function()
- for x = 0,1,.1 do
- v.C0 = Clerp(v.C0,defaults[name] * keyframes[name],x)
- game:GetService("RunService").Stepped:Wait()
- end
- end))
- end
- end
- end
- function motorsToDefault()
- for i,v in pairs(motors) do
- local name = tostring(v.Part1)
- coroutine.resume(coroutine.create(function()
- for x = 0,1,.1 do
- v.C0 = Clerp(v.C0,defaults[name] ,x)
- game:GetService("RunService").Stepped:Wait()
- end
- end))
- end
- end
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.Name = wp1.Name
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- script.Parent = workspace
- Clones = Instance.new("Model",workspace)
- char.Archivable = true
- function TransformR6(p, size)
- local pchar = p
- if pchar then
- local function scale(chr,scl)
- BC = Instance.new("BodyColors",chr)
- BC.HeadColor = BrickColor.new("Crimson")
- BC.LeftArmColor = BrickColor.new("Crimson")
- BC.LeftLegColor = BrickColor.new("Crimson")
- BC.RightArmColor = BrickColor.new("Crimson")
- BC.RightLegColor = BrickColor.new("Crimson")
- BC.TorsoColor = BrickColor.new("Crimson")
- -- Smoke2.Enabled = true
- --Smoke1.Enabled = true
- -- wait(0.5)
- --Smoke2.Enabled = false
- --Smoke1.Enabled = false
- ---
- local Head = chr['Head']
- local Torso = chr['Torso']
- local LA = chr['Left Arm']
- local RA = chr['Right Arm']
- local LL = chr['Left Leg']
- local RL = chr['Right Leg']
- local HRP = chr['HumanoidRootPart']
- --wait(0.1)
- Head.formFactor = 3
- Torso.formFactor = 3
- LA.formFactor = 3
- RA.formFactor = 3
- LL.formFactor = 3
- RL.formFactor = 3
- HRP.formFactor = 3
- Head.Size = Vector3.new(scl, scl, scl)
- LA.Size = Vector3.new(scl/2, scl * 2, scl/2)
- RA.Size = Vector3.new(scl/2, scl * 2, scl/2)
- Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
- LL.Size = Vector3.new(scl, scl * 2, scl)
- RL.Size = Vector3.new(scl, scl * 2, scl)
- HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
- --sizes = scl
- local Motor1 = Torso["Neck"]
- --Motor1.Part0 = Torso
- --Motor1.Part1 = Head
- Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- --Motor1.Name = "Neck"
- local Motor2 = Torso["Left Shoulder"]
- -- Motor2.Part0 = Torso
- -- Motor2.Part1 = LA
- Motor2.C0 = CFrame.new(-0.7 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- --Motor2.Name = "Left Shoulder"
- local Motor3 = Torso["Right Shoulder"]
- --Motor3.Part0 = Torso
- --Motor3.Part1 = RA
- Motor3.C0 = CFrame.new(0.7 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- --Motor3.Name = "Right Shoulder"
- local Motor4 = Torso["Left Hip"]
- --Motor4.Part0 = Torso
- --Motor4.Part1 = LL
- Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- --Motor4.Name = "Left Hip"
- local Motor5 = Torso["Right Hip"]
- --Motor5.Part0 = Torso
- --Motor5.Part1 = RL
- Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.Name = "Right Hip"
- local Motor6 = HRP["RootJoint"]
- --Motor6.Part0 = HRP
- --Motor6.Part1 = Torso
- Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- end
- scale(pchar, size)
- pchar.Humanoid.WalkSpeed = 15 + size
- hum.JumpPower = 50 + size + size
- ---
- end
- end
- coroutine.resume(coroutine.create(function()
- end))
- halfsize = titansize/2
- function Shift(charact)
- local blast = Instance.new("Part", charact)
- blast.Size = Vector3.new(1*halfsize,1*halfsize,1*halfsize)
- blast.CFrame = charact.HumanoidRootPart.CFrame
- blast.Anchored = true
- blast.CanCollide = false
- blast.CastShadow = false
- blast.BrickColor = LightningColor
- blast.Material = Enum.Material.Neon
- blast.Transparency = 1
- local blastmesh = Instance.new("SpecialMesh", blast)
- blastmesh.Scale = Vector3.new(0,0,0)
- blastmesh.MeshType = Enum.MeshType.Sphere
- local blastlight = Instance.new("PointLight", blast)
- blastlight.Color = BrickColor.new('Deep orange').Color
- blastlight.Range = 0
- blastlight.Enabled = false
- local blast2 = Instance.new("Part", charact)
- blast2.Size = Vector3.new(1*halfsize,1*halfsize,1*halfsize)
- blast2.CFrame = charact.HumanoidRootPart.CFrame
- blast2.Anchored = true
- blast2.CanCollide = false
- blast2.CastShadow = false
- blast2.Transparency = 1
- blast2.BrickColor = BrickColor.new('Bright orange')
- blast2.Material = Enum.Material.Neon
- local blastmesh2 = Instance.new("SpecialMesh", blast2)
- blastmesh2.Scale = Vector3.new(0.2,0.2,0.2)
- blastmesh2.MeshType = Enum.MeshType.Sphere
- charact.Humanoid.WalkSpeed = 0
- wait(1)
- local bp = Instance.new("BodyPosition", charact.Torso)
- bp.Position = charact.Torso.Position + Vector3.new(0,5*titansize, 0)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- spawn(function()
- local sound = Instance.new("Sound", charact.HumanoidRootPart)
- sound.Name = "Static"
- sound.SoundId = "rbxassetid://3673187353"
- sound.Volume = 4
- sound.TimePosition = 0.3
- sound:Play()
- local soundreverb = Instance.new("ReverbSoundEffect", sound)
- soundreverb.DryLevel = 0
- soundreverb.WetLevel = 0
- soundreverb.DecayTime = 0.1
- game.Debris:AddItem(sound,10)
- end)
- spawn(function()
- for i = 1,10 do
- spawn(function()
- for i = 1,5 do
- angle = angle + 0.6
- local Model = Instance.new("Model",charact)
- Model.Name = "Lightning"
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,60,-(charact.HumanoidRootPart.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,50,-(charact.HumanoidRootPart.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-8,8),math.random(-8,8),-math.random(0,8))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,30,-(charact.HumanoidRootPart.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-6,6),math.random(-6,6),-math.random(0,6))
- local Point4 = Instance.new("Part",Model)
- Point4.Transparency = 1
- Point4.Size = Vector3.new(0.2,0.2,0.2)
- Point4.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,20,-(charact.HumanoidRootPart.Size.Z/2+Point1.Size.Z/2))
- Point4.Anchored = true
- Point4.CanCollide = false
- Point4.CFrame = Point4.CFrame * CFrame.new(math.random(-4,4),math.random(-4,4),-math.random(0,4))
- local Point5 = Instance.new("Part",Model)
- Point5.Transparency = 1
- Point5.Size = Vector3.new(0.2,0.2,0.2)
- Point5.CFrame = charact.HumanoidRootPart.CFrame * CFrame.new(0,10,-(charact.HumanoidRootPart.Size.Z/2+Point2.Size.Z/2))
- Point5.Anchored = true
- Point5.CanCollide = false
- Point5.CFrame = Point5.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point6 = Instance.new("Part",Model)
- Point6.Transparency = 1
- Point6.Size = Vector3.new(0.2,0.2,0.2)
- Point6.CFrame = charact.Head.CFrame
- Point6.Anchored = true
- Point6.CanCollide = false
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = LightningColor.Color
- Light.Transparency = 0
- Light.BrickColor= LightningColor
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.2,0.2,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = LightningColor.Color
- Light.Transparency = 0
- Light.BrickColor= LightningColor
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.2,0.2,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local distance3 = (Point4.CFrame.p - Point3.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = LightningColor.Color
- Light.Transparency = 0
- Light.BrickColor= LightningColor
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.2,0.2,distance3)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance3/2)
- local distance4 = (Point5.CFrame.p - Point4.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = LightningColor.Color
- Light.Transparency = 0
- Light.BrickColor= LightningColor
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.2,0.2,distance4)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point5.CFrame.p , Point4.CFrame.p) * CFrame.new(0,0,-distance4/2)
- local distance5 = (Point6.CFrame.p - Point5.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = LightningColor.Color
- Light.Transparency = 0
- Light.BrickColor= LightningColor
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.2,0.2,distance5)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance5/2)
- wait()
- Model:Destroy()
- wait()
- end
- end)
- end
- end)
- wait(.5)
- for _,v in pairs(charact:GetChildren()) do
- if v.Name == "3dmg" or v:IsA("Weld") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") or v:IsA("Hat") or v:IsA("Accoutrement") then
- v:Destroy()
- end
- end
- blast.Transparency = 0
- blast2.Transparency = 0.5
- blastlight.Enabled = true
- spawn(function()
- local sound = Instance.new("Sound", charact.Torso)
- sound.SoundId = "rbxassetid://93724183"
- sound.Volume = 4
- sound.Pitch = 0.9
- sound:Play()
- local soundreverb = Instance.new("ReverbSoundEffect", sound)
- soundreverb.DryLevel = 0
- soundreverb.WetLevel = 0
- soundreverb.DecayTime = 0.1
- game.Debris:AddItem(sound,10)
- end)
- local sparksp = Instance.new("ParticleEmitter", charact.Torso)
- sparksp.LightEmission = 1
- sparksp.LightInfluence = 1
- sparksp.Color = ColorSequence.new(Color3.fromRGB(84, 84, 84),Color3.fromRGB(255, 255, 255))
- sparksp.Size = NumberSequence.new(10,4)
- sparksp.Texture = "http://www.roblox.com/asset/?id=122434485"
- sparksp.Transparency = NumberSequence.new(0)
- sparksp.ZOffset = 9
- sparksp.Lifetime = NumberRange.new(5)
- sparksp.Rate = 200
- sparksp.RotSpeed = NumberRange.new(0)
- sparksp.Speed = NumberRange.new(40)
- sparksp.SpreadAngle = Vector2.new(-100,100)
- sparksp.Acceleration = Vector3.new(0,-10,0)
- local sparksp = Instance.new("ParticleEmitter", charact.Torso)
- sparksp.LightEmission = 1
- sparksp.LightInfluence = 0
- sparksp.Color = ColorSequence.new(Color3.new(1,1,0),Color3.new(1,0,0))
- sparksp.Size = NumberSequence.new(2,0)
- sparksp.Texture = "rbxasset://textures/particles/sparkles_main.dds"
- sparksp.Transparency = NumberSequence.new(0)
- sparksp.ZOffset = 2
- sparksp.Lifetime = NumberRange.new(5)
- sparksp.Rate = 5000
- sparksp.RotSpeed = NumberRange.new(-360,360)
- sparksp.Speed = NumberRange.new(60)
- sparksp.SpreadAngle = Vector2.new(360,360)
- sparksp.Acceleration = Vector3.new(0,10,0)
- for i = 1,30 do
- blast.CFrame = charact.Torso.CFrame
- blastmesh.Scale = blastmesh.Scale + Vector3.new(5,5,5)
- blast2.CFrame = charact.Torso.CFrame
- blastmesh2.Scale = blastmesh2.Scale + Vector3.new(5,5,5)
- blastlight.Range = blastlight.Range + 2
- wait()
- end
- spawn(function()
- local Value = Instance.new("BoolValue",charact)
- Value.Name = "IsTitan"
- TransformR6(charact,titansize)
- end)
- wait(1)
- sparksp.Enabled = false
- for i = 1,20 do
- blastmesh.Scale = blastmesh.Scale + Vector3.new(0.1,0.1,0.1)
- blast.Transparency = blast.Transparency + 0.05
- blastmesh2.Scale = blastmesh2.Scale + Vector3.new(0.2,0.2,0.2)
- blast2.Transparency = blast2.Transparency + 0.025
- blastlight.Range = blastlight.Range - 2
- wait()
- end
- blast:Destroy()
- blast2:Destroy()
- bp:Destroy()
- local bo = Instance.new("Part", charact.Torso)
- bo.Size = Vector3.new(3*titansize,4*titansize,3*titansize)
- bo.Anchored = false
- bo.CanCollide = false
- bo.Massless = true
- bo.Material = "ForceField"
- bo.Transparency = 1
- newWeld(charact.Head,bo,0,0,0)
- bo.Touched:connect(function(hit)
- if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= char and not hit.Parent:FindFirstChild("IsTitant") and not hit.Parent == char and not hit.Parent.Parent == Clones then
- hit.Parent:FindFirstChildOfClass('Humanoid'):TakeDamage(5)
- for i, parts in pairs(hit.Parent:GetDescendants()) do
- if parts:IsA("BasePart") then
- local sbs = Instance.new("BodyPosition", parts)
- sbs.P = 3000
- sbs.D = 1000
- sbs.maxForce = Vector3.new(5000, 5000, 5000)
- sbs.position = (parts.Position - lleg.CFrame.p).Unit*500
- game.Debris:AddItem(sbs,2)
- end
- end
- end
- end)
- charact.Humanoid.WalkSpeed = 8
- end
- function unshift(bodys)
- local nRootJoint = bodys.HumanoidRootPart.RootJoint
- local nNeck = bodys.Torso.Neck
- local nLW = bodys.Torso["Left Shoulder"]
- local nLH = bodys.Torso["Left Hip"]
- local nRW = bodys.Torso["Right Shoulder"]
- local nRH = bodys.Torso["Right Hip"]
- bodys.HumanoidRootPart.Anchored = true
- local Alpha,Easing,Direction,Repeat,Reverse,Delay = 4.5,'Back','Out',0,false,0
- TweenAnimate(nRootJoint,{C0=cf(0*titansize,-1.3*titansize,-0.3*titansize)*angles(math.rad(-21.2),math.rad(0),math.rad(0))*RootCF},Alpha,Easing,Direction,Repeat,Reverse,Delay)
- TweenAnimate(nLH,{C0=cf(-1*titansize,-1*titansize,-1*titansize)*angles(math.rad(-71.7),math.rad(5.7),math.rad(-11.9))*angles(math.rad(0),math.rad(-90),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
- TweenAnimate(nRH,{C0=cf(1*titansize,-1*titansize,-1*titansize)*angles(math.rad(-67.1),math.rad(-7.7),math.rad(8.7))*angles(math.rad(0),math.rad(90),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
- TweenAnimate(nLW,{C0=cf(-1.5*halfsize,0*titansize,-0.5*titansize)*angles(math.rad(35),math.rad(-13.7),math.rad(0))*LeftShoulderC0},Alpha,Easing,Direction,Repeat,Reverse,Delay)
- TweenAnimate(nRW,{C0=cf(1.5*halfsize,0*titansize,-0.5*titansize)*angles(math.rad(30.7),math.rad(19.4),math.rad(1.5))*RightShoulderC0},Alpha,Easing,Direction,Repeat,Reverse,Delay)
- TweenAnimate(nNeck,{C0 =necko*CFrame.new(0,0,titansize)*angles(math.rad(39.7),math.rad(0),math.rad(0))},Alpha,Easing,Direction,Repeat,Reverse,Delay)
- wait(Alpha)
- for _,v in pairs(bodys:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
- v.CanCollide = true
- v.Anchored = true
- end
- end
- wait(5)
- for _,v in pairs(bodys:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation") then
- TweenAnimate(v,{Transparency = 1},6,"Linear","Out",0,false,0) TweenAnimate(v,{Color = Color3.new(0,0,0)},6,"Linear","Out",0,false,0)
- end
- end
- wait(6.5)
- bodys:Destroy()
- end
- local AnimateCode = game:GetService("HttpService"):GetAsync("https://paste.ee/r/aFljg")
- local Humanoids = {}
- mouse.KeyDown:connect(function(k)
- if Attack then return end
- if attack then return end
- if k == "m" then
- attack = true
- local barrier = Instance.new("Part", RootPart)
- newWeld(RootPart,barrier,0,10,0)
- barrier.Size = Vector3.new(60,60,60)
- barrier.Anchored = false
- barrier.CanCollide = false
- barrier.Massless = true
- barrier.Material = "ForceField"
- barrier.Touched:connect(function(Victim)
- if Victim.Parent ~= char and Victim.Parent:FindFirstChildOfClass("Humanoid") and not Victim.Parent:FindFirstChild("IsTitan") then
- local Value = Instance.new("BoolValue",Victim.Parent)
- Value.Name = "IsTitan"
- Shift(Victim.Parent)
- end
- end)
- wait(2)
- barrier:Destroy()
- -- Regeneration()
- attack = false
- end
- if k == "k" then
- local Mr = math.random(1,2)
- local sound = Instance.new("Sound", Head)
- sound.Volume = 5
- if Mr == 1 then
- sound.PlaybackSpeed = 1.15
- sound.SoundId = "rbxassetid://785301837"
- elseif Mr == 2 then
- sound.PlaybackSpeed = 1.15
- sound.SoundId = "rbxassetid://6416598358"
- end
- sound:Play()
- for i,g in pairs(Humanoids) do
- coroutine.resume(coroutine.create(function()
- Shift(g)
- end))
- end
- wait(sound.TimeLength)
- sound:Destroy()
- end
- if k == "l" then
- char.Archivable = true
- local cl = char:Clone()
- table.insert(Humanoids,cl)
- NS(AnimateCode,cl)
- cl.Parent = Clones
- char.Archivable = false
- end
- if k == "z" then
- end
- if k == "n" then
- for _,v in pairs(Clones:GetDescendants()) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChild("IsTitan") then
- unshift(v)
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if mouse.Target ~= nil then
- for _,v in pairs(Clones:GetDescendants()) do
- if v:IsA("Humanoid") then
- v:MoveTo(mouse.Hit.p)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment