Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- 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 te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- 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
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a 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})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) 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
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- ---------------------------
- --/ \--
- -- Script By: 123jl123 --
- --\ /--
- ---------------------------
- --local remote = NS ([=[
- local TweenService = game:GetService("TweenService")
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- local Player = owner
- if Player.Character == nil then
- while Player.Character == nil do wait()
- end end
- ZTfade=false
- ZT=false
- local zombiemode="Wander"
- local zombietarget=nil
- Character= Player.Character
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- RootPart = Character["HumanoidRootPart"]
- local Anim="Idle"
- local inairvel=0
- local WalkAnimStep = 0
- local sine = 0
- local change = 1
- Animstep = 0
- WalkAnimMove=0.1
- Combo = 0
- local attack=false
- local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
- local Neck = Character.Torso:FindFirstChild("Neck")
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Effects=Instance.new("Folder",Character)
- Effects.Name="Effects"
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- local cn = CFrame.new
- mr=math.rad
- mememode=false
- 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
- local lastid= "http://www.roblox.com/asset/?id=2784781345"
- local s2=it("Sound",Torso)
- local CurId = 1
- s2.EmitterSize = 30
- local s2c=s2:Clone()
- local visn = 1000
- playsong = true
- s2.SoundId = lastid
- if playsong == true then
- s2:play()
- elseif playsong == false then
- s2:stop()
- end
- lastsongpos= 0
- crosshair = Instance.new("BillboardGui",Character)
- crosshair.Size = UDim2.new(10,0,10,0)
- crosshair.Enabled = false
- imgl = Instance.new("ImageLabel",crosshair)
- imgl.Position = UDim2.new(0,0,0,0)
- imgl.Size = UDim2.new(1,0,1,0)
- imgl.Image = "rbxassetid://578065407"
- imgl.BackgroundTransparency = 1
- imgl.ImageTransparency = .7
- imgl.ImageColor3 = Color3.new(1,1,1)
- crosshair.StudsOffset = Vector3.new(0,0,-1)
- --//=================================\\
- --|| LOCAL IDS
- --\\=================================//
- local GROWL = 1544355717
- local ROAR = 528589382
- local ECHOBLAST = 376976397
- local CAST = 459523898
- local ALCHEMY = 424195979
- local BUILDUP = 698824317
- local BIGBUILDUP = 874376217
- local IMPACT = 231917744
- local LARGE_EXPLOSION = 168513088
- local TURNUP = 299058146
- if Character:FindFirstChild("Animate")then
- Character.Animate:Destroy()
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
- RemoveOutlines(Part)
- return Part
- end
- }
- ,
- Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- }
- ,
- Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- }
- ,
- Weld = {Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
- return Weld
- end
- }
- ,
- Sound = {Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..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
- }
- }
- coroutine.resume(coroutine.create(function()
- if Head:FindFirstChildOfClass("Decal") then
- local face = Head:FindFirstChildOfClass("Decal")
- -- face:Destroy()
- end
- end))
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Accessory") then
- -- v:Destroy()
- end
- end
- ---------------
- --[Functions]--
- ---------------
- so = function(id, par, vol, pit)
- CFuncs.Sound.Create(id, par, vol, pit)
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- rayCast = function(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
- local MoveStyle = Enum.EasingStyle[MoveStyle2]
- local outorin = Enum.EasingDirection[outorin2]
- local dahspeed=1
- if attack == true and mememode == true then
- dahspeed=5
- end
- if SPart.Name=="Bullet" then
- dahspeed=1
- end
- local tweeningInformation = TweenInfo.new(
- AnimTime/dahspeed,
- MoveStyle,
- outorin,
- 0,
- false,
- 0
- )
- local MoveCF = CFr
- local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
- tweenanim:Play()
- end
- function GatherAllInstances(Parent,ig)
- local Instances = {}
- local Ignore=nil
- if ig ~= nil then
- Ignore = ig
- end
- local function GatherInstances(Parent,Ignore)
- for i, v in pairs(Parent:GetChildren()) do
- if v ~= Ignore then
- GatherInstances(v,Ignore)
- table.insert(Instances, v) end
- end
- end
- GatherInstances(Parent,Ignore)
- return Instances
- end
- function WeldAllTo(Part1,Part2,Extra)
- local EXCF = Part2.CFrame * Extra
- for i, v3 in pairs(GatherAllInstances(Part2)) do
- if v3:isA("BasePart") then
- local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
- v3.Anchored=false
- --v3.Transparency=0
- v3.CanCollide=false
- v3.Parent = Part1
- end
- end
- Part2:Destroy()
- end
- local SToneTexture = Create("Texture")({
- Texture = "http://www.roblox.com/asset/?id=1693385655",
- Color3 = Color3.new(163/255, 162/255, 165/255),
- })
- function AddStoneTexture(part)
- coroutine.resume(coroutine.create(function()
- for i = 0,6,1 do
- local Tx = SToneTexture:Clone()
- Tx.Face = i
- Tx.Parent=part
- end
- end))
- end
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- function Tran(Num)
- local GivenLeter = ""
- if Num == "1" then
- GivenLeter = "a"
- elseif Num == "2" then
- GivenLeter = "b"
- elseif Num == "3" then
- GivenLeter = "c"
- elseif Num == "4" then
- GivenLeter = "d"
- elseif Num == "5" then
- GivenLeter = "e"
- elseif Num == "6" then
- GivenLeter = "f"
- elseif Num == "7" then
- GivenLeter = "g"
- elseif Num == "8" then
- GivenLeter = "h"
- elseif Num == "9" then
- GivenLeter = "i"
- elseif Num == "10" then
- GivenLeter = "j"
- elseif Num == "11" then
- GivenLeter = "k"
- elseif Num == "12" then
- GivenLeter = "l"
- elseif Num == "13" then
- GivenLeter = "m"
- elseif Num == "14" then
- GivenLeter = "n"
- elseif Num == "15" then
- GivenLeter = "o"
- elseif Num == "16" then
- GivenLeter = "p"
- elseif Num == "17" then
- GivenLeter = "q"
- elseif Num == "18" then
- GivenLeter = "r"
- elseif Num == "19" then
- GivenLeter = "s"
- elseif Num == "20" then
- GivenLeter = "t"
- elseif Num == "21" then
- GivenLeter = "u"
- elseif Num == "22" then
- GivenLeter = "v"
- elseif Num == "23" then
- GivenLeter = "w"
- elseif Num == "24" then
- GivenLeter = "x"
- elseif Num == "25" then
- GivenLeter = "y"
- elseif Num == "26" then
- GivenLeter = "z"
- elseif Num == "27" then
- GivenLeter = "_"
- elseif Num == "28" then
- GivenLeter = "0"
- elseif Num == "29" then
- GivenLeter = "1"
- elseif Num == "30" then
- GivenLeter = "2"
- elseif Num == "31" then
- GivenLeter = "3"
- elseif Num == "32" then
- GivenLeter = "4"
- elseif Num == "33" then
- GivenLeter = "5"
- elseif Num == "34" then
- GivenLeter = "6"
- elseif Num == "35" then
- GivenLeter = "7"
- elseif Num == "36" then
- GivenLeter = "8"
- elseif Num == "37" then
- GivenLeter = "9"
- end
- return GivenLeter
- end
- function MaybeOk(Mode,Extra)
- local ReturningValue = ""
- if Mode == 1 then
- -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- --print(v.C0)
- local GivenText = ""
- local msg = Extra
- local Txt = ""
- local FoundTime=0
- local LastFound = 0
- delay(wait(0),function()
- for v3 = 1, #msg do
- if string.sub(msg,0+v3,v3) == "," then
- local TheN = string.sub(msg,LastFound,v3-1)
- local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
- FoundTime = FoundTime + 1
- GivenText = GivenText..NumTranslate
- LastFound=v3+1
- Txt=""
- end
- Txt=string.sub(msg,1,v3)
- -- Gui.ExtentsOffset = Vector3.new(0,3,0)
- -- Gui.ExtentsOffset = Vector3.new(0,3,0)
- wait()
- -- Gui.ExtentsOffset = Vector3.new(0,3,0)
- end;
- ReturningValue=GivenText
- for v3 = 1, #Txt do
- Txt=string.sub(msg,-1,v3)
- end;
- -- Gui:remove()
- end)
- elseif Mode == 2 then
- print("fat")
- end
- while ReturningValue == "" do wait() end
- return ReturningValue
- end
- function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- local S = IT("Sound")
- function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
- elseif TYPE == "Wave" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crown" then
- MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
- else
- SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
- end
- wait()
- SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
- if TYPE == "Block" then
- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
- else
- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
- end
- MSH.Scale = MSH.Scale - GROWTH/TIME
- SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
- if TYPE == "Wave" then
- SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
- end
- for LOOP = 1, TIME+1 do
- wait(.05)
- --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
- if TYPE == "Block" then
- -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
- else
- -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
- -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
- end
- end
- game:GetService("Debris"):AddItem(EFFECT, 15)
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- SOUND.Stopped:Connect(function()
- EFFECT:remove()
- end)
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat wait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- 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 lockon_OnOff ()
- coroutine.resume(coroutine.create(function()
- local NewParticleH = Instance.new("Attachment",eye)
- NewParticleH.Position = Vector3.new(0,0,.25)
- coroutine.resume(coroutine.create(function()
- local CrystalMainColor = Color3.new(0,1,0)
- local NewParticle = Particle2_1:Clone()
- NewParticle.Parent = NewParticleH
- NewParticle.Enabled = true
- NewParticle.Texture = "rbxassetid://68942583"
- NewParticle.Acceleration = Vector3.new(0,0,0)
- NewParticle.Speed = NumberRange.new(0)
- NewParticle.LockedToPart = true
- NewParticle.ZOffset = .25
- NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.5),NumberSequenceKeypoint.new(1,0)})
- NewParticle.Rate = 50
- NewParticle.Color = ColorSequence.new(CrystalMainColor, CrystalMainColor)
- NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,.9)})
- NewParticle.Name = "XEF"
- end))
- while ZT == true do
- SetTween(imgl,{Rotation=imgl.Rotation+25.5},"Elastic","Out",3)
- if ZTfade==true then
- SetTween(imgl,{ImageTransparency=.7},"Elastic","Out",3)
- SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","Out",1.5)
- end
- wait(1.5)
- if ZTfade==true then
- SetTween(imgl,{ImageTransparency=0},"Linear","InOut",0)
- SetTween(crosshair,{Size = UDim2.new(11,0,11,0)},"Elastic","InOut",0)
- end
- zombietarget = crosshair.Adornee
- if zombietarget ~= nil then
- zombiemode = "FoundTarget"
- elseif crosshair.Enabled == true and zombietarget == nil then
- ZT = false
- zombiemode = "Wander"
- end
- wait()
- end
- zombiemode = "Wander"
- crosshair.Adornee = nil
- crosshair.Enabled = false
- NewParticleH:Destroy()
- end))
- end
- function lockon (targetted)
- if ZT == true then
- coroutine.resume(coroutine.create(function()
- crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
- crosshair.Enabled = true
- ZTfade = false
- SetTween(imgl,{ImageTransparency=1},"Linear","InOut",0)
- SetTween(crosshair,{Size = UDim2.new(40,0,40,0)},"Linear","InOut",0)
- wait()
- SetTween(imgl,{ImageTransparency=.7},"Bounce","Out",2)
- SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","InOut",1)
- wait(1)
- ZTfade = true
- end))
- end
- end
- Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- if h.Health > 0.0001 then
- h = v else h = nil end
- end
- end
- if h == nil then
- return
- end
- --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
- coroutine.resume(coroutine.create(function()
- if h.Health >999999999999999 and minim <9999999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
- local FATag = Instance.new("Model",h.Parent)
- FATag.Name = "Fly away"
- game:GetService("Debris"):AddItem(FATag, 2.5)
- for _,v in pairs(h.Parent:children()) do
- if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
- v.Anchored=true
- end
- end
- so("1436242274", Head,2, 1)
- wait(1)
- coroutine.resume(coroutine.create(function()
- local Eye = Instance.new("Part")
- Eye.Reflectance = 0
- Eye.Transparency = 1
- Eye.CanCollide = false
- Eye.Locked = true
- Eye.Anchored=false
- Eye.BrickColor = BrickColor.new("Really blue")
- Eye.Name = "BEGONE"
- Eye.Size = Vector3.new()
- Eye.Material = "SmoothPlastic"
- Eye:BreakJoints()
- Eye.Parent = Character
- coroutine.resume(coroutine.create(function()
- local NewParticle = BEGONE_Particle:Clone()
- NewParticle.Parent = Eye
- NewParticle:Emit(1)
- game:GetService("Debris"):AddItem(Eye, 3)
- end))
- local Eye=weld(Eye,Head,Eye,cf(.18,.18,-.55))
- end))
- coroutine.resume(coroutine.create(function()
- local Eye = Instance.new("Part")
- Eye.Reflectance = 0
- Eye.Transparency = 1
- Eye.CanCollide = false
- Eye.Locked = true
- Eye.Anchored=false
- Eye.BrickColor = BrickColor.new("Really blue")
- Eye.Name = "BEGONE"
- Eye.Size = Vector3.new()
- Eye.Material = "SmoothPlastic"
- Eye:BreakJoints()
- Eye.Parent = Character
- coroutine.resume(coroutine.create(function()
- local NewParticle = BEGONE_Particle:Clone()
- NewParticle.Parent = Eye
- NewParticle:Emit(1)
- game:GetService("Debris"):AddItem(Eye, 3)
- end))
- local Eye=weld(Eye,Head,Eye,cf(-.18,.18,-.55))
- end))
- wait(.25)
- if h.Parent:FindFirstChildOfClass("Body Colors")then
- h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
- end
- local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
- coroutine.resume(coroutine.create(function()
- local YourGone = Instance.new("Part")
- YourGone.Reflectance = 0
- YourGone.Transparency = 1
- YourGone.CanCollide = false
- YourGone.Locked = true
- YourGone.Anchored=true
- YourGone.BrickColor = BrickColor.new("Really blue")
- YourGone.Name = "YourGone"
- YourGone.Size = Vector3.new()
- YourGone.Material = "SmoothPlastic"
- YourGone:BreakJoints()
- YourGone.Parent = FoundTorso
- YourGone.CFrame = FoundTorso.CFrame
- local NewParticle = Particle2_1:Clone()
- NewParticle.Parent = YourGone
- NewParticle.Acceleration = Vector3.new(0,0,0)
- NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
- NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
- NewParticle.Lifetime = NumberRange.new(0.55,0.95)
- NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Speed = NumberRange.new(0,0.0)
- NewParticle.ZOffset = 2
- NewParticle.Texture = "rbxassetid://243660364"
- NewParticle.RotSpeed = NumberRange.new(-0,0)
- NewParticle.Rotation = NumberRange.new(-180,180)
- game:GetService("Debris"):AddItem(YourGone, 3)
- for i = 0,2,1 do
- NewParticle:Emit(1)
- so("1448044156", FoundTorso,2, 1)
- h.Parent:BreakJoints()
- YourGone.CFrame = FoundTorso.CFrame
- for _,v in pairs(h.Parent:children()) do
- if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
- v.Anchored=false
- -- v.Material = "Neon"
- --v.BrickColor = BrickColor.new("Really red")
- if v:FindFirstChildOfClass("SpecialMesh")then
- --v:Destroy()
- end
- if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
- -- v:Destroy()
- end
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
- vp.Parent = v
- game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
- end
- end
- wait(.2)
- end
- wait(.1)
- NewParticle:Emit(3)
- so("1448044156", FoundTorso,2, .8)
- h.Parent:BreakJoints()
- YourGone.CFrame = FoundTorso.CFrame
- for _,v in pairs(h.Parent:children()) do
- if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
- v.Anchored=false
- -- v.Material = "Neon"
- --v.BrickColor = BrickColor.new("Really red")
- if v:FindFirstChildOfClass("SpecialMesh")then
- --v:Destroy()
- end
- if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
- -- v:Destroy()
- end
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
- vp.Parent = v
- game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
- end
- end
- end))
- wait(.1)
- end
- end))
- if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
- return
- end
- local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
- game:GetService("Debris"):AddItem(c, 0.5)
- if HitSound ~= nil and HitPitch ~= nil then
- so(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil and block.className == "IntValue" and block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- lockon(h.Parent)
- 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, Part.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, Part.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = h
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- wait(.2)
- 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 = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
- local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
- game:GetService("Debris"):AddItem(bodvol, 0.2)
- game:GetService("Debris"):AddItem(rl, 0.2)
- elseif Type == "Knockdown2" then
- local hum = h
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- Combo = 1 wait(.2)
- 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 = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
- local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
- game:GetService("Debris"):AddItem(bodvol, 0.2)
- game:GetService("Debris"):AddItem(rl, 0.2)
- local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
- game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
- if knockback > 0 then
- local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
- vp.Parent = HTorso
- end
- game:GetService("Debris"):AddItem(vp, 0.25)
- elseif Type== "Instakill" then
- coroutine.resume(coroutine.create(function()
- if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
- local FATag = Instance.new("Model",h.Parent)
- FATag.Name = "Fly away"
- game:GetService("Debris"):AddItem(FATag, 2.5)
- for _,v in pairs(h.Parent:children()) do
- if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
- v.Anchored=true
- end
- end
- so("1436242274", Head,2, 1)
- wait(1)
- coroutine.resume(coroutine.create(function()
- local Eye = Instance.new("Part")
- Eye.Reflectance = 0
- Eye.Transparency = 1
- Eye.CanCollide = false
- Eye.Locked = true
- Eye.Anchored=false
- Eye.BrickColor = BrickColor.new("Really blue")
- Eye.Name = "BEGONE"
- Eye.Size = Vector3.new()
- Eye.Material = "SmoothPlastic"
- Eye:BreakJoints()
- Eye.Parent = Character
- coroutine.resume(coroutine.create(function()
- local NewParticle = BEGONE_Particle:Clone()
- NewParticle.Parent = Eye
- NewParticle:Emit(1)
- game:GetService("Debris"):AddItem(Eye, 3)
- end))
- local Eye=weld(Eye,Head,Eye,cf(.18,.18,-.55))
- end))
- coroutine.resume(coroutine.create(function()
- local Eye = Instance.new("Part")
- Eye.Reflectance = 0
- Eye.Transparency = 1
- Eye.CanCollide = false
- Eye.Locked = true
- Eye.Anchored=false
- Eye.BrickColor = BrickColor.new("Really blue")
- Eye.Name = "BEGONE"
- Eye.Size = Vector3.new()
- Eye.Material = "SmoothPlastic"
- Eye:BreakJoints()
- Eye.Parent = Character
- coroutine.resume(coroutine.create(function()
- local NewParticle = BEGONE_Particle:Clone()
- NewParticle.Parent = Eye
- NewParticle:Emit(1)
- game:GetService("Debris"):AddItem(Eye, 3)
- end))
- local Eye=weld(Eye,Head,Eye,cf(-.18,.18,-.55))
- end))
- wait(.25)
- if h.Parent:FindFirstChildOfClass("Body Colors")then
- h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
- end
- local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
- coroutine.resume(coroutine.create(function()
- local YourGone = Instance.new("Part")
- YourGone.Reflectance = 0
- YourGone.Transparency = 1
- YourGone.CanCollide = false
- YourGone.Locked = true
- YourGone.Anchored=true
- YourGone.BrickColor = BrickColor.new("Really blue")
- YourGone.Name = "YourGone"
- YourGone.Size = Vector3.new()
- YourGone.Material = "SmoothPlastic"
- YourGone:BreakJoints()
- YourGone.Parent = FoundTorso
- YourGone.CFrame = FoundTorso.CFrame
- local NewParticle = Particle2_1:Clone()
- NewParticle.Parent = YourGone
- NewParticle.Acceleration = Vector3.new(0,0,0)
- NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
- NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
- NewParticle.Lifetime = NumberRange.new(0.55,0.95)
- NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Speed = NumberRange.new(0,0.0)
- NewParticle.ZOffset = 2
- NewParticle.Texture = "rbxassetid://243660364"
- NewParticle.RotSpeed = NumberRange.new(-0,0)
- NewParticle.Rotation = NumberRange.new(-180,180)
- game:GetService("Debris"):AddItem(YourGone, 3)
- for i = 0,2,1 do
- NewParticle:Emit(1)
- so("1448044156", FoundTorso,2, 1)
- h.Parent:BreakJoints()
- YourGone.CFrame = FoundTorso.CFrame
- for _,v in pairs(h.Parent:children()) do
- if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
- v.Anchored=false
- -- v.Material = "Neon"
- --v.BrickColor = BrickColor.new("Really red")
- if v:FindFirstChildOfClass("SpecialMesh")then
- --v:Destroy()
- end
- if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
- -- v:Destroy()
- end
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
- vp.Parent = v
- game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
- end
- end
- wait(.2)
- end
- wait(.1)
- NewParticle:Emit(3)
- so("1448044156", FoundTorso,2, .8)
- h.Parent:BreakJoints()
- YourGone.CFrame = FoundTorso.CFrame
- for _,v in pairs(h.Parent:children()) do
- if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
- v.Anchored=false
- -- v.Material = "Neon"
- --v.BrickColor = BrickColor.new("Really red")
- if v:FindFirstChildOfClass("SpecialMesh")then
- --v:Destroy()
- end
- if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
- -- v:Destroy()
- end
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
- vp.Parent = v
- game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
- end
- end
- end))
- wait(.1)
- end
- end))
- elseif Type == "Normal2" then
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
- if knockback > 0 then
- local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
- vp.Parent = HTorso
- coroutine.resume(coroutine.create(function()
- end))
- local SValue = 1.5
- local randomcf = cn(math.random(-1, 1)/7,math.random(-1, 1)/7,0)
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- elseif Type == "Impale" then
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
- hit.Parent.Humanoid.PlatformStand = true
- wait(1)
- hit.Parent.Humanoid.PlatformStand = false
- elseif Type == "IgnoreType" then
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
- game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
- local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
- game:GetService("Debris"):AddItem(bodyVelocity, .1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition")({P = 900, D = 1000, 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 == "Freeze2" 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(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- wait(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 = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, 0.5)
- end
- end
- coroutine.resume(coroutine.create(function()
- Value1=MaybeOk(1,"29,30,31,10,12,29,30,31,0")
- if Player:IsFriendsWith(game.Players:GetUserIdFromNameAsync(Value1)) then
- Tim = "1" else Tim = "0" end
- end))
- ShowDamage = function(Pos, Text, Time, Color)
- local Rate = 0.033333333333333
- if not Pos then
- local Pos = Vector3.new(0, 0, 0)
- end
- local Text = Text or ""
- local Time = Time or 2
- if not Color then
- local Color = Color3.new(1, 0, 1)
- end
- local EffectPart = CreatePart(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, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
- game.Debris:AddItem(EffectPart, Time + 0.1)
- 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
- MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
- local Type=""
- if mememode == true then
- Type= "Instakill"
- else
- Type=Type2
- end
- for _,c in pairs(workspace:children()) do
- local hum = c:FindFirstChild("Humanoid")
- for _,v in pairs(c:children()) do
- if v:IsA("Humanoid") then
- hum = v
- end
- end
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
- end
- end
- end
- end
- end
- function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
- local DGP = Instance.new("Part")
- DGP.Parent = Character
- DGP.Size = Vector3.new(0.05, 0.05, 0.05)
- DGP.Transparency = 1
- DGP.CanCollide = false
- DGP.Anchored = true
- RemoveOutlines(DGP)
- DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
- DGP.CFrame = HTCF
- coroutine.resume(coroutine.create(function()
- MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
- end))
- game:GetService("Debris"):AddItem(DGP, .05)
- DGP.Archivable = false
- end
- -----------------
- --[[
- for i, v in pairs(C:GetChildren()) do
- if v:IsA("Accessory")then
- v:Destroy()
- end
- if v:IsA("BasePart")then
- v.Transparency =1
- if v.Name == "Head" then
- v:FindFirstChildOfClass("Decal"):Destroy()
- end
- end
- end--]]
- --[[
- local tweeningInformation = TweenInfo.new(
- 0.5,
- Enum.EasingStyle.Back,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- --]]
- local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0)
- RJW.C1 = RJ.C1
- RJW.Name = RJ.Name
- local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0)
- NeckW.C1 = Neck.C1
- NeckW.Name = Neck.Name
- --print(WRJ.Parent.Name)
- local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
- local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
- local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
- local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
- RW.C1 = cn(0, 0.5, 0)
- LW.C1 = cn(0, 0.5, 0)
- RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- --------
- --(#Torso)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
- --------
- --(#Head)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
- --------
- --(#Right Arm)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
- --------
- --(#Left Arm)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
- --------
- --(#Right Leg)
- SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
- --------
- --(#Left Leg)
- SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
- --[[
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
- SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
- SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
- --]]
- function Tuant()
- attack=true
- SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","Out",.5)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- coroutine.resume(coroutine.create(function()
- local tuantsound=Instance.new("Sound",Head)
- game:GetService("Debris"):AddItem(tuantsound, 10)
- tuantsound.SoundId="rbxassetid://1488889263"
- tuantsound:Play()
- tuantsound.Volume = 3
- end))
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- wait(1)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-0))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- wait(2)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- wait(.5)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- wait(1.5)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- wait(.5)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(120))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-120))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
- wait(1.5)
- SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
- SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
- wait(1)
- attack = false
- end
- function makeanim(id,THumanoid)
- Anim = Instance.new("Animation", script)
- Anim.AnimationId ="rbxassetid://"..id
- local anim = THumanoid:LoadAnimation(Anim)
- return anim
- end
- function AnimSpeed(anim,speed)
- anim:AdjustSpeed(speed)
- end
- mouse.Button1Down:connect(function(key)
- end)
- mouse.KeyUp:connect(function(key)
- end)
- mouse.KeyDown:connect(function(key)
- if key == "p" and attack == false and Player.Name=="PhoenixClockworks" then
- if mememode == false then
- mememode=true
- --so("1499015636", Character,3, 1)
- lastid= "http://www.roblox.com/asset/?id=3089734868"
- lastsongpos = 0
- s2.TimePosition = lastsongpos
- else
- mememode=false
- CurId=CurId-1
- KeyDownF("n")
- end
- end
- if key == "zero" then
- if isruning == false then
- isruning=true
- end
- end
- if key == "m" then
- if playsong == true then
- playsong = false
- s2:stop()
- elseif playsong == false then
- playsong = true
- s2:play()
- end
- end
- if key == "n" and mememode == false then
- CurId = CurId + 1
- if CurId > 3 then
- CurId = 1
- end
- warn("now playing song Track "..CurId)
- if CurId == 1 then
- lastid= "http://www.roblox.com/asset/?id=3089734868"
- elseif CurId == 2 then
- lastid= "http://www.roblox.com/asset/?id=786465393"
- elseif CurId == 3 then
- lastid= "http://www.roblox.com/asset/?id=3569341366"
- end
- lastsongpos = 0
- s2.TimePosition = lastsongpos
- end
- end)
- coroutine.resume(coroutine.create(function()
- while Humanoid.Health>0.001 do
- sine = sine + change
- hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- local dahspeed=.5+80/100
- change = (0.60*1)*dahspeed
- local speed = 13 + visn/1000
- local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = RootPart.Velocity.y
- if RootPart.Velocity.y > 1 and hitfloor == nil then
- Anim = "Jump"
- elseif RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- elseif Humanoid.Sit == true then
- Anim = "Sit"
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- elseif torvel > 2 and hitfloor ~= nil then
- Anim = "Walk"
- else
- Anim = ""
- end
- coroutine.resume(coroutine.create(function()
- if s2.Parent == nil or s2 == nil then
- s2 = s2c:Clone()
- s2.Parent = Torso
- s2.Name = "BGMusic"
- -- s2.SoundId = lastid
- s2.Pitch = 1
- s2.Volume = 1.5
- s2.Looped = true
- s2.archivable = false
- s2.TimePosition = lastsongpos
- if playsong == true then
- s2:play()
- elseif playsong == false then
- s2:stop()
- end
- else
- lastsongpos=s2.TimePosition
- s2.Pitch = 1
- s2.Volume = 1.5
- s2.Looped = true
- s2.SoundId = lastid
- s2.EmitterSize = 30
- end
- end))
- inairvel=torvel
- if inairvel > 30 then
- inairvel=30
- end
- inairvel=inairvel/50*2
- if attack == false then
- if Anim == "Jump" then
- change = 0.60*2
- local speed = 13 + visn/1500
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- elseif Anim == "Fall" then
- change = 0.60*2
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- elseif Anim == "Idle" then
- local speed=1
- if mememode == true then
- speed=3
- end
- if mememode == true then
- change = 2.6*speed
- Humanoid.JumpPower = 60*speed
- Humanoid.WalkSpeed= 25*speed
- --local speed = 13 + visn/1500
- --local ADNum = .25
- local speed = 50 + visn/1500
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- else
- change = 2.6*speed
- Humanoid.JumpPower = 60*speed
- Humanoid.WalkSpeed= 25*speed
- local speed = 13 + visn/1500
- --local ADNum = .25
- local speed = 50 + visn/1500
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)end
- elseif Anim == "Walk" then
- local speed=1
- if mememode == true then
- speed=3
- end
- if mememode == true then
- change = 2.6*speed
- Humanoid.JumpPower = 60*speed
- Humanoid.WalkSpeed=16*speed
- local speed = 13 + visn/1500
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- else
- change = 2.6*speed
- Humanoid.JumpPower = 60*speed
- Humanoid.WalkSpeed=16*speed
- local speed = 13 + visn/1500
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed) end
- elseif Anim == "Sit" then
- local speed = 13 + visn/1500
- SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
- SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
- SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
- SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
- end
- end
- wait(Animstep)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local remote = Instance.new 'RemoteFunction';
- remote.Parent = Character;
- remote.OnServerInvoke = function (player, request, ...)
- if (player ~= Player) then
- return error ('You cannot invoke this remote', 0);
- end;
- if (request == 1) then
- local k = ...;
- KeyDownF(k)
- end;
- if (request == 2) then
- local k = ...;
- KeyUpF(k)
- end;
- if (request == 3) then
- local k = ...;
- if k == "Down" then
- Button1DownF(k)
- elseif k == "Up" then
- --MouseUp(k)
- end
- end;
- if (request == 4) then
- local k=...;
- --MTARGET=k
- end
- if (request == 5) then
- local k=...;
- --MHIT=k
- end
- end;
- remote.Name = 'ServerRemote';
- --local remote = NLS ([=[
- --local localscript = script.Keys
- --localscript.Name = Player.Name
- --localscript.Parent = Character
- --]=], Player.Character)
- end))
- --Basically 123jl123 script.
- fire = Instance.new("Part",Character)
- fire.Size = Vector3.new(.05,.05,.05)
- fire.CanCollide = false
- fire.Transparency = 1
- sizes = {
- NumberSequenceKeypoint.new(0,1,0);
- NumberSequenceKeypoint.new(0.5,.5,0);
- NumberSequenceKeypoint.new(1,0,0)
- }
- seeses = {
- NumberSequenceKeypoint.new(0,1,0);
- NumberSequenceKeypoint.new(0.2,0,0);
- NumberSequenceKeypoint.new(0.8,0,0);
- NumberSequenceKeypoint.new(1,1,0)
- }
- pt1a = Instance.new("ParticleEmitter", fire)
- pt1a.LightEmission = 1
- pt1a.LightInfluence = 0
- pt1a.Size = NumberSequence.new(sizes)
- pt1a.Transparency = NumberSequence.new(seeses)
- pt1a.Rate = 100
- pt1a.EmissionDirection = "Top"
- pt1a.Rotation = NumberRange.new(0)
- pt1a.Lifetime = NumberRange.new(1)
- pt1a.RotSpeed = NumberRange.new(0)
- pt1a.Speed = NumberRange.new(0)
- pt1a.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Bright yellow").Color)
- weld = Instance.new("Weld", fire)
- weld.Part0 = Character["Left Arm"]
- weld.Part1 = fire
- weld.C1 = CFrame.new(0,1.5,0)
- fire2 = Instance.new("Part",Character)
- fire2.Size = Vector3.new(.05,.05,.05)
- fire2.CanCollide = false
- fire2.Transparency = 1
- sizes = {
- NumberSequenceKeypoint.new(0,1,0);
- NumberSequenceKeypoint.new(0.5,.5,0);
- NumberSequenceKeypoint.new(1,0,0)
- }
- seeses = {
- NumberSequenceKeypoint.new(0,1,0);
- NumberSequenceKeypoint.new(0.2,0,0);
- NumberSequenceKeypoint.new(0.8,0,0);
- NumberSequenceKeypoint.new(1,1,0)
- }
- pt2a = Instance.new("ParticleEmitter", fire2)
- pt2a.LightEmission = 1
- pt2a.LightInfluence = 0
- pt2a.Size = NumberSequence.new(sizes)
- pt2a.Transparency = NumberSequence.new(seeses)
- pt2a.Rate = 100
- pt2a.EmissionDirection = "Top"
- pt2a.Rotation = NumberRange.new(0)
- pt2a.Lifetime = NumberRange.new(1)
- pt2a.RotSpeed = NumberRange.new(0)
- pt2a.Speed = NumberRange.new(0)
- pt2a.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Bright yellow").Color)
- weld2 = Instance.new("Weld", fire2)
- weld2.Part0 = Character["Right Arm"]
- weld2.Part1 = fire2
- weld2.C1 = CFrame.new(0,1.5,0)
- sizes = {
- NumberSequenceKeypoint.new(0,5,0);
- NumberSequenceKeypoint.new(0.5,6,0);
- NumberSequenceKeypoint.new(1,6,0)
- }
- seeses = {
- NumberSequenceKeypoint.new(0,1,0);
- NumberSequenceKeypoint.new(0.55,0,0);
- NumberSequenceKeypoint.new(0.8,0,0);
- NumberSequenceKeypoint.new(1,1,0)
- }
- pt2a = Instance.new("ParticleEmitter", Character.HumanoidRootPart)
- pt2a.LightEmission = 1
- pt2a.LightInfluence = 0
- pt2a.Size = NumberSequence.new(sizes)
- pt2a.Transparency = NumberSequence.new(seeses)
- pt2a.Texture = "rbxassetid://2273224484"
- pt2a.Rate = 20
- pt2a.Drag = 1
- pt2a.EmissionDirection = "Top"
- pt2a.Rotation = NumberRange.new(-360,360)
- pt2a.Lifetime = NumberRange.new(3,4)
- pt2a.RotSpeed = NumberRange.new(-360,360)
- pt2a.Speed = NumberRange.new(50,70)
- pt2a.SpreadAngle = Vector2.new(-360,360)
- pt2a.ZOffset = 2
- pt2a.Color = ColorSequence.new(BrickColor.new("Bright yellow").Color)
- Character = owner.Character
- size = {
- NumberSequenceKeypoint.new(0,10,0),
- NumberSequenceKeypoint.new(1,7,1)
- }
- sees = {
- NumberSequenceKeypoint.new(0,1,0),
- NumberSequenceKeypoint.new(0.45,0.75,0),
- NumberSequenceKeypoint.new(0.55,0.75,0),
- NumberSequenceKeypoint.new(1,1,0)
- }
- ParticleEmitter1 = Instance.new("ParticleEmitter")
- ParticleEmitter1.Name = "Darkness"
- ParticleEmitter1.Parent = Character.HumanoidRootPart
- ParticleEmitter1.Speed = NumberRange.new(0.325,0.75)
- ParticleEmitter1.Rotation = NumberRange.new(-180,180)
- ParticleEmitter1.Color = ColorSequence.new(Color3.fromRGB(0,0,34),Color3.fromRGB(1,21,25))
- ParticleEmitter1.Enabled = true
- ParticleEmitter1.LightEmission = 0
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=258128463"
- ParticleEmitter1.Transparency = NumberSequence.new(sees)
- ParticleEmitter1.ZOffset = -10
- ParticleEmitter1.Size = NumberSequence.new(size)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Top
- ParticleEmitter1.Lifetime = NumberRange.new(17.5)
- ParticleEmitter1.Rate = 10
- ParticleEmitter1.RotSpeed = NumberRange.new(0)
- ParticleEmitter1.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter1.VelocitySpread = 0
- size = {
- NumberSequenceKeypoint.new(0,8,0),
- NumberSequenceKeypoint.new(1,8,1)
- }
- sees = {
- NumberSequenceKeypoint.new(0,1,0),
- NumberSequenceKeypoint.new(0.15,1,0),
- NumberSequenceKeypoint.new(0.45,0.5,0),
- NumberSequenceKeypoint.new(0.75,0.5,0),
- NumberSequenceKeypoint.new(1,1,0)
- }
- ParticleEmitter2 = Instance.new("ParticleEmitter")
- ParticleEmitter2.Name = "Nebulea1"
- ParticleEmitter2.Parent = Character.HumanoidRootPart
- ParticleEmitter2.Speed = NumberRange.new(0.5,0.75)
- ParticleEmitter2.Rotation = NumberRange.new(-180,180)
- ParticleEmitter2.Color = ColorSequence.new(Color3.fromRGB(85,0,255),Color3.fromRGB(170,0,255))
- ParticleEmitter2.Enabled = true
- ParticleEmitter2.LightEmission = 1
- ParticleEmitter2.Texture = "http://www.roblox.com/asset/?id=258126401"
- ParticleEmitter2.Transparency = NumberSequence.new(sees)
- ParticleEmitter2.ZOffset = -9.5
- ParticleEmitter2.Size = NumberSequence.new(size)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Top
- ParticleEmitter2.Lifetime = NumberRange.new(8,14)
- ParticleEmitter2.Rate = 0.35
- ParticleEmitter2.RotSpeed = NumberRange.new(-5,5)
- ParticleEmitter2.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter2.VelocitySpread = 0
- size = {
- NumberSequenceKeypoint.new(0,8,0),
- NumberSequenceKeypoint.new(1,8,1)
- }
- sees = {
- NumberSequenceKeypoint.new(0,1,0),
- NumberSequenceKeypoint.new(0.15,1,0),
- NumberSequenceKeypoint.new(0.45,0.5,0),
- NumberSequenceKeypoint.new(0.75,0.5,0),
- NumberSequenceKeypoint.new(1,1,0)
- }
- ParticleEmitter3 = Instance.new("ParticleEmitter")
- ParticleEmitter3.Name = "Nebulea2"
- ParticleEmitter3.Parent = Character.HumanoidRootPart
- ParticleEmitter3.Speed = NumberRange.new(0.5,0.75)
- ParticleEmitter3.Rotation = NumberRange.new(-180,180)
- ParticleEmitter3.Color = ColorSequence.new(Color3.fromRGB(255,255,0),Color3.fromRGB(255,255,127))
- ParticleEmitter3.Enabled = true
- ParticleEmitter3.LightEmission = 1
- ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=258126401"
- ParticleEmitter3.Transparency = NumberSequence.new(sees)
- ParticleEmitter3.ZOffset = -9.5
- ParticleEmitter3.Size = NumberSequence.new(size)
- ParticleEmitter3.EmissionDirection = Enum.NormalId.Top
- ParticleEmitter3.Lifetime = NumberRange.new(8,14)
- ParticleEmitter3.Rate = 0.35
- ParticleEmitter3.RotSpeed = NumberRange.new(-5,5)
- ParticleEmitter3.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter3.VelocitySpread = 0
- size = {
- NumberSequenceKeypoint.new(0,0,0),
- NumberSequenceKeypoint.new(0.5,0,0),
- NumberSequenceKeypoint.new(0.6,0.1,0.075),
- NumberSequenceKeypoint.new(0.75,0.125,0.1),
- NumberSequenceKeypoint.new(0.9,0.1,0.075),
- NumberSequenceKeypoint.new(1,0,0)
- }
- sees = {
- NumberSequenceKeypoint.new(0,1,0),
- NumberSequenceKeypoint.new(0.3,1,0),
- NumberSequenceKeypoint.new(0.5,0,0),
- NumberSequenceKeypoint.new(1,0,0)
- }
- ParticleEmitter4 = Instance.new("ParticleEmitter")
- ParticleEmitter4.Name = "Stars"
- ParticleEmitter4.Parent = Character.HumanoidRootPart
- ParticleEmitter4.Speed = NumberRange.new(0.4,0.5)
- ParticleEmitter4.Rotation = NumberRange.new(0)
- ParticleEmitter4.Color = ColorSequence.new(Color3.fromRGB(255,170,127),Color3.fromRGB(255,255,255))
- ParticleEmitter4.Enabled = true
- ParticleEmitter4.LightEmission = 1
- ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=298984512"
- ParticleEmitter4.Transparency = NumberSequence.new(sees)
- ParticleEmitter4.ZOffset = -9
- ParticleEmitter4.Size = NumberSequence.new(size)
- ParticleEmitter4.EmissionDirection = Enum.NormalId.Top
- ParticleEmitter4.Lifetime = NumberRange.new(20)
- ParticleEmitter4.Rate = 32.5
- ParticleEmitter4.RotSpeed = NumberRange.new(0)
- ParticleEmitter4.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter4.VelocitySpread = 0
- size = {
- NumberSequenceKeypoint.new(0,0,0),
- NumberSequenceKeypoint.new(0.5,0,0),
- NumberSequenceKeypoint.new(0.6,0.5,0.1),
- NumberSequenceKeypoint.new(0.75,0.625,0.125),
- NumberSequenceKeypoint.new(0.9,0.5,0.1),
- NumberSequenceKeypoint.new(1,0,0)
- }
- sees = {
- NumberSequenceKeypoint.new(0,1,0),
- NumberSequenceKeypoint.new(0.3,1,0),
- NumberSequenceKeypoint.new(0.5,0,0),
- NumberSequenceKeypoint.new(1,0,0)
- }
- ParticleEmitter5 = Instance.new("ParticleEmitter")
- ParticleEmitter5.Name = "BigStars"
- ParticleEmitter5.Parent = Character.HumanoidRootPart
- ParticleEmitter5.Speed = NumberRange.new(0.4,0.5)
- ParticleEmitter5.Rotation = NumberRange.new(0)
- ParticleEmitter5.Color = ColorSequence.new(Color3.fromRGB(255,255,255),Color3.fromRGB(255,255,127))
- ParticleEmitter5.Enabled = true
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=298984512"
- ParticleEmitter5.Transparency = NumberSequence.new(sees)
- ParticleEmitter5.ZOffset = -9
- ParticleEmitter5.Size = NumberSequence.new(size)
- ParticleEmitter5.EmissionDirection = Enum.NormalId.Top
- ParticleEmitter5.Lifetime = NumberRange.new(25)
- ParticleEmitter5.Rate = 1
- ParticleEmitter5.RotSpeed = NumberRange.new(0)
- ParticleEmitter5.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter5.VelocitySpread = 0
- ParticleEmitter1.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter2.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter3.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter4.SpreadAngle = Vector2.new(-360,360)
- ParticleEmitter5.SpreadAngle = Vector2.new(-360,360)
Add Comment
Please, Sign In to add comment