Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- 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 titansize = 20
- 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 = 20
- 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 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
- local ignore = Instance.new("Model", char)
- ignore.Name = "Ignore"
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function CreateRing(maxsize)
- spawn(function()
- local ringpart = Instance.new("Part", ignore)
- 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(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
- local Hitboxpart = Instance.new("Part", ignore)
- 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
- 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
- morph = Instance.new("Folder", char)
- ----Morph Values
- local necktry = Instance.new("Part", morph)
- necktry.CanCollide = false
- necktry.Anchored = false
- necktry.Massless = true
- necktry.Size = Vector3.new(1, 0.5, 0.5)
- necktry.Transparency = 1
- newWeld(tor,necktry, 0, 1, 0.5)
- P1ACtualSize = Vector3.new(2,0.7, 0.9)
- P2ACtualSize = Vector3.new(1,2, 0.8)
- P3ACtualSize = Vector3.new(2,0.7, 0.9)
- RibSize = Vector3.new(0.8,0.9,1)
- local OBC = char:FindFirstChild("Body Colors")
- local P1 = Instance.new("Part", morph)
- local P2 = Instance.new("Part", morph)
- local P3 = Instance.new("Part", morph)
- local Rib = Instance.new("Part", morph)
- P1.Size = Vector3.new(2,0.7, 0.9)
- P1.BrickColor = BrickColor.new("Pastel brown")
- --P1.Material = "Granite"
- P2.Size = Vector3.new(1,2, 0.8)
- P2.BrickColor = BrickColor.new("Pastel brown")
- --P2.Material = "Granite"
- P3.Size = Vector3.new(2,0.7, 0.9)
- P3.BrickColor = BrickColor.new("Pastel brown")
- --P3.Material = "Granite"
- Rib.Size = Vector3.new(1,1,1)
- local meshRib = Instance.new("SpecialMesh", Rib)
- meshRib.MeshType = "FileMesh"
- meshRib.MeshId = "rbxassetid://6527039623"
- meshRib.Scale = Vector3.new(0.8,0.9,1)
- newWeld(tor,P1, 0, 0.7, 0)
- newWeld(tor,P2, 0, 0, 0)
- newWeld(tor,P3, 0, -0.7, 0)
- newWeld(tor,Rib, 0, -0.2, 0)
- P1.Transparency = 1
- P2.Transparency = 1
- P3.Transparency = 1
- Rib.Transparency = 1
- P1.Material = "SmoothPlastic"
- P2.Material = "SmoothPlastic"
- P3.Material = "SmoothPlastic"
- local part1C0 = CFrame.new(0, 0.7, 0)
- local part3C0 = CFrame.new(0, -0.7, 0)
- local Hair = Instance.new("Part", morph)
- Hair.Size = Vector3.new(1,1,1)
- local MeshHair = Instance.new("SpecialMesh", Hair)
- MeshHair.MeshType = "FileMesh"
- MeshHair.MeshId = "rbxassetid://5163710382"
- MeshHair.TextureId = "rbxassetid://5164412364"
- MeshHair.Scale = Vector3.new(1,1,1)
- newWeld(Head,Hair, 0, 0, 0)
- Hair.Transparency = 1
- hum.BreakJointsOnDeath = false
- local Mask = Instance.new("Part", morph)
- Mask.Size = Vector3.new(1,1,1)
- local meshMask = Instance.new("SpecialMesh", Mask)
- meshMask.MeshType = "FileMesh"
- meshMask.MeshId = "http://www.roblox.com/asset/?id=4770583"
- meshMask.Scale = Vector3.new(2.6, 3, 2.6)
- newWeld(Head,Mask, 0, 0.1, 0)
- Mask.Transparency = 1
- ------
- local Shirt = char:FindFirstChild("Shirt")
- local Pants = char:FindFirstChild("Pants")
- local TitanIs = false
- local Resources = Instance.new("Folder", script)
- Resources.Parent = nil
- faceid = Head.face.Texture
- function TransformR6(p, size)
- local pchar = p
- if pchar then
- local function scale(chr,scl)
- BC = Instance.new("BodyColors")
- local part1 = P1:FindFirstChildOfClass("Weld")
- local part3 = P3:FindFirstChildOfClass("Weld")
- if TitanIs == false then
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("Hat") then
- v.Handle.Transparency = 1
- end
- end
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("Pants") or v:IsA("Shirt") then
- v.Parent = Resources
- end
- end
- coroutine.resume(coroutine.create(function()
- if hum.PlatformStand == true then
- wait(math.random(1,15))
- hum.PlatformStand = false
- end
- end))
- OBC.Parent = nil
- BC.Parent = chr
- for _,v in pairs(morph:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("Part") then
- v.Transparency = 0
- end
- end
- Torso.CanCollide = false
- Torso.Transparency = 1
- P1.Size = P1.Size * scl
- P2.Size = P2.Size * scl
- P3.Size = P3.Size * scl
- meshRib.Scale = meshRib.Scale * scl
- MeshHair.Scale = MeshHair.Scale * scl
- meshMask.Scale = meshMask.Scale * scl
- Mask.BrickColor = BrickColor.new("Cashmere")
- BC.HeadColor = BrickColor.new("Pastel brown")
- BC.LeftArmColor = BrickColor.new("Pastel brown")
- BC.LeftLegColor = BrickColor.new("Pastel brown")
- BC.RightArmColor = BrickColor.new("Pastel brown")
- BC.RightLegColor = BrickColor.new("Pastel brown")
- BC.TorsoColor = BrickColor.new("Pastel brown")
- Head.face.Texture = "http://www.roblox.com/asset/?id=5189209143"
- animo(true)
- elseif TitanIs == true then
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("Hat") then
- v.Handle.Transparency = 0
- end
- end
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("BasePart")then
- v.Material = "SmoothPlastic"
- end
- end
- --coroutine.resume(coroutine.create(function()
- for _,v in pairs(Resources:GetChildren()) do
- if v:IsA("Pants") or v:IsA("Shirt") then
- wait(1)
- v.Parent = pchar
- end
- end
- --end))
- meshMask.Scale = Vector3.new(2.6, 3.5, 2.6)
- P1.Size = P1ACtualSize
- P2.Size = P2ACtualSize
- P3.Size = P3ACtualSize
- meshRib.Scale = RibSize
- Head.face.Texture = faceid
- MeshHair.Scale = Vector3.new(1,1,1)
- Torso.CanCollide = true
- Torso.Transparency = 0
- for _,v in pairs(morph:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("Part") then
- v.Transparency = 1
- end
- end
- BC:Destroy()
- OBC.Parent = chr
- end
- -- 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 * 2, scl, scl)
- Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
- if TitanIs == false then
- LA.Size = Vector3.new(scl , scl * 2, scl)
- RA.Size = Vector3.new(scl , scl * 2, scl)
- part1.C0 = part1.C0 * CFrame.new(0, scl/1.5, 0)
- part3.C0 = part3.C0 * CFrame.new(0, -scl/1.5, 0)
- elseif TitanIs == true then
- LA.Size = Vector3.new(scl, scl * 2, scl)
- RA.Size = Vector3.new(scl, scl * 2, scl)
- part1.C0 = part1C0
- part3.C0 = part3C0
- end
- 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(-1 * 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(1 * 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
- local Regen = Instance.new("ParticleEmitter", nil)
- Regen.Color = ColorSequence.new(Color3.new(255,255,255))
- Regen.Texture = "rbxassetid://2977044760"
- Regen.LightInfluence = 1
- Regen.LightEmission = 0
- Regen.Size = NumberSequence.new(0.25, 0.687)
- Regen.Transparency = NumberSequence.new(0.562, 1)
- Regen.Lifetime = NumberRange.new(0.5,1.2)
- Regen.Rate = 5000
- Regen.Speed = NumberRange.new(0.25)
- Regen.Enabled = false
- local hasregen = false
- local list = {
- rarm;
- larm;
- tor;
- head;
- }
- function Regeneration()
- if TitanIs == true then return end
- if humanoid.Health == humanoid.MaxHealth then return end
- if EHMMM == 5 then
- return
- end
- --wherto = RootPart
- local bep = true
- local humanshealth = humanoid.Health
- local ran = math.random(#list)
- Regen.Parent = list[ran]
- Regen.Enabled = true
- humanoid:SetStateEnabled(15, false)
- local de = mouse.KeyUp:connect(function(key)
- if key == "b" then
- bep = false
- end
- end)
- --Speed = 7
- humanoid.JumpPower = 25
- local poopes = 0
- repeat
- poopes = poopes + 1
- wait(0.5)
- humanoid.Health = humanoid.Health + 1.5
- until bep == false or poopes > 340
- de:Disconnect()
- humanoid:SetStateEnabled(15, true)
- EHMMM = 5
- Regen.Enabled = false
- Regen.Parent = nil
- hasregen = false
- coroutine.resume(coroutine.create(function()
- wait(2)
- EHMMM = 0
- end))
- --Speed = 16
- humanoid.JumpPower = 50
- end
- function emitsteam()
- hum.WalkSpeed = 0
- local steamp = Instance.new("ParticleEmitter", tor)
- steamp.LightEmission = 0
- steamp.LightInfluence = 0
- steamp.Size = NumberSequence.new(5,0)
- steamp.Texture = "rbxassetid://365830819"
- steamp.Transparency = NumberSequence.new(.6)
- steamp.ZOffset = 1
- steamp.Rate = 5000
- steamp.RotSpeed = NumberRange.new(-180,180)
- steamp.Speed = NumberRange.new(60)
- steamp.SpreadAngle = Vector2.new(360,360)
- local sparksp = Instance.new("ParticleEmitter", tor)
- sparksp.LightEmission = 1
- sparksp.LightInfluence = 0
- sparksp.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(1,170/255,0))
- sparksp.Size = NumberSequence.new(0.1)
- sparksp.Texture = "rbxasset://textures/particles/sparkles_main.dds"
- sparksp.Transparency = NumberSequence.new(0)
- sparksp.ZOffset = 2
- sparksp.Rate = 5000
- sparksp.RotSpeed = NumberRange.new(-180,180)
- sparksp.Speed = NumberRange.new(60)
- sparksp.SpreadAngle = Vector2.new(360,360)
- wait(4)
- hum.WalkSpeed = 8
- sparksp.Enabled = false
- steamp.Enabled = false
- attack = false
- wait(2)
- sparksp:Destroy()
- steamp:Destroy()
- end
- function swait(num)
- game:GetService("RunService").Heartbeat:Wait()
- end
- Resources = Instance.new("Folder", script)
- Resources.Parent = nil
- function Shift(charact)
- local blast = Instance.new("Part", ignore)
- blast.Size = Vector3.new(1,1,1)
- 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", ignore)
- blast2.Size = Vector3.new(1,1,1)
- 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
- for _,v in pairs(char:GetChildren()) do
- if v.Name == "3dmg" then
- v.Parent = Resources
- end
- end
- --local bp = Instance.new("BodyPosition", tor)
- --bp.Position = tor.Position + Vector3.new(0,0, 0)
- --bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(1)
- for _,v in pairs(tor:GetChildren()) do
- if v:IsA("Weld") then
- v:Destroy()
- end
- end
- 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",ignore)
- 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)
- blast.Transparency = 0
- blast2.Transparency = 0.5
- blastlight.Enabled = true
- spawn(function()
- local sound = Instance.new("Sound", charact.HumanoidRootPart)
- 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)
- spawn(function()
- for i = 1,15 do
- CreateRing(math.random(30,40))
- wait(.1)
- end
- end)
- 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 = root.CFrame
- blastmesh.Scale = blastmesh.Scale + Vector3.new(5,5,5)
- blast2.CFrame = root.CFrame
- blastmesh2.Scale = blastmesh2.Scale + Vector3.new(5,5,5)
- blastlight.Range = blastlight.Range + 2
- wait()
- end
- spawn(function()
- TransformR6(char,titansize)
- TitanIs = true
- 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()
- hum.WalkSpeed = 8
- end
- humanoid = char:FindFirstChild("Humanoid")
- anim = humanoid:FindFirstChild("Animator")
- animo = function(dF)
- if anim then
- if dF == true then
- anim.Parent = humanoid
- char.Animate.Disabled = false
- elseif dF == false then
- char.Animate.Disabled = true
- anim.Parent = nil
- end
- end
- end
- char.Archivable = true
- RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- resetlerp = function()
- RJ.C0 = RJC0
- RJ.C1 = RJC1
- N.C0 = NC0
- N.C1 = NC1
- RS.C0 = RSC0
- RS.C1 = RSC1
- LS.C0 = LSC0
- LS.C1 = LSC1
- RH.C0 = RHC0
- RH.C1 = RHC1
- LH.C0 = LHC0
- LH.C1 = LHC1
- end
- halfsize = titansize/2
- function unshift()
- -- Attack = true
- animo(false)
- local Alpha,Easing,Direction,Repeat,Reverse,Delay = 2,'Back','Out',0,false,0
- TweenAnimate(RootJoint,{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(LH,{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(RH,{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(LW,{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(RW,{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(Neck,{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)
- local bodys = char:Clone()
- TransformR6(char,1)
- bodys.Parent = workspace
- animo(true)
- resetlerp()
- RootPart.CFrame = necktry.CFrame
- 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
- for _,v in pairs(char:GetDescendants()) do
- if v:IsA("Accessory") then
- v.Handle.Transparency = 0
- end
- end
- for _,v in pairs(char:GetDescendants()) do
- if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
- v.Transparency = 0
- end
- end
- -- appeared = false
- wait(.1)
- --thenoob.Parent = nil
- TitanIs = false
- for _,v in pairs(Resources:GetChildren()) do
- if v.Name == "3dmg" then
- wait(3)
- local new = v:Clone()
- new.Parent = char
- wait(1)
- v:Destroy()
- 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(2)
- bodys:Destroy()
- end
- spawn(function()
- hum.HealthChanged:connect(function()
- if TitanIs == false and hum.Health <= 35 then
- hum.PlatformStand = true
- Shift(char)
- hum.Health = hum.MaxHealth
- end
- end)
- end)
- spawn(function()
- hum.Died:connect(function()
- if TitanIs == true then
- hum:Destroy()
- hum = Instance.new("Humanoid", char)
- unshift()
- end
- end)
- end)
- mouse.KeyDown:connect(function(k)
- if k == "e" and TitanIs == true then
- if not attack then
- attack = true
- local hitbox = Instance.new("Part", char)
- hitbox.Size = Vector3.new(100,100,100)
- hitbox.CanCollide = false
- hitbox.Anchored = false
- hitbox.Transparency = 1
- local hitboxweld = Instance.new("Weld", hitbox)
- hitboxweld.Part0 = tor
- hitboxweld.Part1 = hitbox
- hitboxweld.C0 = CFrame.new(0,-5,0)
- spawn(function()
- local debounce = false
- hitbox.Touched:connect(function(hit)
- if debounce == false then
- if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= char then
- debounce = true
- 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(50000000000, 50000000000, 50000000000)
- sbs.position = (parts.Position - lleg.CFrame.p).Unit*500
- game.Debris:AddItem(sbs, 2)
- end
- end
- end
- wait(.5)
- debounce = false
- end
- end)
- end)
- spawn(function()
- emitsteam()
- end)
- wait(4)
- hitbox:Destroy()
- attack = false
- end
- end
- if k == "b" and TitanIs == false then
- Regeneration()
- end
- if k == "p" and TitanIs == false then
- if not attack then
- attack = true
- Shift(char)
- attack = false
- end
- elseif k == "p" and TitanIs == true then
- if not attack then
- attack = true
- unshift()
- attack = false
- end
- end
- end)
- --[[mouse.KeyUp:connect(function(k)
- if k:byte() == 48 then
- if not attack then
- hum.WalkSpeed = 16
- end
- end
- end)]]
Advertisement
Add Comment
Please, Sign In to add comment