Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").SincereProdeadZ
- local Mouse,mouse,UserInputService,ContextActionService
- do
- script.Parent = Player.Character
- local CAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true}
- t.Connect = function(self,f)self.Function=f end
- t.connect = t.Connect
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- function CAS:BindAction(name,fun,touch,...)
- CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CAS:UnbindAction(name)
- CAS.Actions[name] = nil
- end
- 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
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- else
- for n,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
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputBegan",io,false)
- else
- m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- wait(0.5)
- warn[[Techoburst
- Did someone expect this?
- Created by NoobyGames12
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- BUILD 0.0.9A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ]]
- ---- DO NOT CHANGE ANYTHING BELOW IF YOU'RE NOT AN EDITOR
- wait(0.2)
- plr = game:GetService("Players").SincereProdeadZ
- char = plr.Character
- hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- t = char.Torso
- h = char.Head
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- tors = char.Torso
- lleg = char["Left Leg"]
- root = char.HumanoidRootPart
- hed = char.Head
- rleg = char["Right Leg"]
- rarm = char["Right Arm"]
- larm = char["Left Arm"]
- it = Instance.new
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- ceuler = CFrame.fromEulerAnglesXYZ
- local muter = false
- local ORGID = 1836057235
- local ORVOL = 1.25
- local ORPIT = 1.01
- local kan = Instance.new("Sound",tors)
- kan.Volume = 0.85
- kan.TimePosition = 0
- kan.PlaybackSpeed = 1
- kan.Pitch = 1
- kan.SoundId = "rbxassetid://1255569288"
- kan.Name = "wrecked"
- kan.Looped = true
- kan:Play()
- --------------------------- GUI STUFF
- local basgui = it("GuiMain")
- basgui.Parent = plr.PlayerGui
- basgui.Name = "VISgui"
- local fullscreenz = it("Frame")
- fullscreenz.Parent = basgui
- fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
- fullscreenz.BackgroundTransparency = 1
- fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
- fullscreenz.Size = UDim2.new(1, 0, 1, 0)
- fullscreenz.Position = UDim2.new(0, 0, 0, 0)
- local imgl2 = Instance.new("ImageLabel",fullscreenz)
- imgl2.BackgroundTransparency = 1
- imgl2.BorderSizePixel = 0
- imgl2.ImageTransparency = 0.5
- imgl2.ImageColor3 = Color3.new(1,0,0)
- imgl2.Position = UDim2.new(0.75,0,0.55,0)
- imgl2.Size = UDim2.new(0,600,0,600)
- imgl2.Image = "rbxassetid://2059444669"
- local techc = imgl2:Clone()
- techc.Parent = fullscreenz
- techc.ImageTransparency = 0.5
- techc.Size = UDim2.new(0,700,0,700)
- techc.Position = UDim2.new(0.75,-50,0.55,-50)
- techc.ImageColor3 = Color3.new(0,0,0)
- techc.Image = "rbxassetid://1657788285"
- local circl = imgl2:Clone()
- circl.Parent = fullscreenz
- circl.ImageTransparency = 0
- circl.Size = UDim2.new(0,500,0,500)
- circl.Position = UDim2.new(0.75,50,0.55,50)
- circl.ImageColor3 = Color3.new(0,0,0)
- circl.Image = "rbxassetid://997291547"
- local circl2 = imgl2:Clone()
- circl2.Parent = fullscreenz
- circl2.ImageTransparency = 0
- circl2.ImageColor3 = Color3.new(0,0,0)
- circl2.Image = "rbxassetid://997291547"
- local imgl2b = imgl2:Clone()
- imgl2b.Parent = fullscreenz
- imgl2b.ImageTransparency = 0
- imgl2b.Size = UDim2.new(0,500,0,500)
- imgl2b.Position = UDim2.new(0.75,50,0.55,50)
- local ned = Instance.new("TextLabel",fullscreenz)
- ned.ZIndex = 2
- ned.Font = "Arcade"
- ned.BackgroundTransparency = 1
- ned.BorderSizePixel = 0.65
- ned.Size = UDim2.new(0.4,0,0.2,0)
- ned.Position = UDim2.new(0.6,0,0.8,0)
- ned.TextColor3 = BrickColor.new("Cyan").Color
- ned.TextStrokeColor3 = BrickColor.new("Toothpaste").Color
- ned.TextScaled = true
- ned.TextStrokeTransparency = 0
- ned.Text = "TECHNOBURST"
- ned.TextSize = 24
- ned.Rotation = 1
- --ned.TextXAlignment = "Right"
- ned.TextYAlignment = "Bottom"
- function CameraShake(Times, Power)
- coroutine.resume(coroutine.create(function()
- FV = Instance.new("BoolValue", Character)
- FV.Name = "CameraShake"
- for ShakeNum=1,Times do
- swait()
- local ef=Power
- if ef>=1 then
- Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
- else
- ef=Power*10
- Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
- end
- end
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- FV:Destroy()
- end))
- end
- CamShake=function(Part,Distan,Power,Times)
- local de=Part.Position
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- for _,c in pairs(v:children()) do
- if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
- local Noob=v.Humanoid
- if Noob~=nil then
- if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
- --[[local ss=script.CamShake:clone()
- ss.Parent=Noob
- ss.Power.Value=Power
- ss.Times.Value=Times
- ss.Disabled=false]]
- CameraShake(Times, Power)
- end
- end
- end
- end
- end
- end
- end
- local MAINRUINCOLOR = BrickColor.new("Cyan")
- local toggleTag = true
- local bilguit = Instance.new("BillboardGui", hed)
- bilguit.Adornee = nil
- bilguit.Name = "ModeName"
- bilguit.Size = UDim2.new(4, 0, 1.2, 0)
- bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
- local modet = Instance.new("TextLabel", bilguit)
- modet.Size = UDim2.new(10/2, 0, 7/2, 0)
- modet.FontSize = "Size8"
- modet.TextScaled = true
- modet.TextTransparency = 0
- modet.BackgroundTransparency = 1
- modet.TextTransparency = 0
- modet.TextStrokeTransparency = 0
- modet.Font = "Antique"
- modet.TextStrokeColor3 = bc("Cyan").Color
- modet.TextColor3 = bc("Cyan").Color
- modet.Text = "TECHNO SWITCHER"
- local chaosmode = false
- function chatfunc(text,color,color2,typet,font,timeex)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",Character)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,1.5,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = font
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = color
- tecks2.TextStrokeColor3 = color2
- tecks2.Size = UDim2.new(1,0,0.5,0)
- local tecks3 = Instance.new("TextLabel",naeeym2)
- tecks3.BackgroundTransparency = 1
- tecks3.BorderSizePixel = 0
- tecks3.Text = ""
- tecks3.Font = font
- tecks3.TextSize = 30
- tecks3.TextStrokeTransparency = 0
- if typet == "Inverted" then
- tecks3.TextColor3 = color2
- tecks3.TextStrokeColor3 = color
- elseif typet == "Normal" then
- tecks3.TextColor3 = color
- tecks3.TextStrokeColor3 = color2
- end
- tecks3.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while true do
- swait(1)
- if chaosmode == true then
- tecks2.TextColor3 = BrickColor.random().Color
- tecks3.TextStrokeColor3 = BrickColor.random().Color
- end
- end
- end))
- for i = 0, 74*timeex do
- swait()
- tecks2.Text = text
- tecks3.Text = text
- end
- local va = 0
- local mult = 1
- for i = 0, 49 do
- swait()
- mult = mult + 0.1
- va = va + 0.1*mult
- tecks2.Text = text
- tecks3.Text = text
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks2.Position = tecks2.Position + UDim2.new(0,va,0,0)
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- tecks3.Position = tecks3.Position - UDim2.new(0,va,0,0)
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- local Create = LoadLibrary("RbxUtility").Create
- 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;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 10)
- end))
- end;
- };
- ["LongSound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 30)
- 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;
- };
- CreateTemplate = {
- };
- }
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local m = Instance.new("Model",char)
- function CreateParta(parent,transparency,reflectance,material,brickcolor)
- local p = Instance.new("Part")
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = parent
- p.Size = Vector3.new(0.05,0.05,0.05)
- p.Transparency = transparency
- p.Reflectance = reflectance
- p.CanCollide = false
- p.Locked = true
- p.BrickColor = brickcolor
- p.Material = material
- return p
- end
- function CreateMesh(parent,meshtype,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = meshtype
- mesh.Scale = Vector3.new(x1*20,y1*20,z1*20)
- return mesh
- end
- function RecolorTextAndRename(name,col1,col2,font)
- modet.TextStrokeColor3 = col2
- modet.TextColor3 = col1
- modet.Font = font
- modet.Text = name
- techc.ImageColor3 = col2
- circl.ImageColor3 = col2
- circl2.ImageColor3 = col1
- imgl2.ImageColor3 = col1
- imgl2b.ImageColor3 = col2
- ned.Text = name
- ned.TextColor3 = col1
- ned.TextStrokeColor3 = col2
- end
- local disably = true
- function warnedpeople(text,represfont,color,color2)
- if disably ~= true then
- CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
- CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.resume(coroutine.create(function()
- if v.PlayerGui:FindFirstChild("Spinny")~= nil then
- v.PlayerGui:FindFirstChild("Spinny"):destroy()
- end
- local scrg = Instance.new("ScreenGui",v.PlayerGui)
- scrg.Name = "Spinny"
- local frm = Instance.new("Frame",scrg)
- frm.BackgroundTransparency = 0.25
- frm.BackgroundColor3 = color
- frm.BorderSizePixel = 0
- frm.Rotation = 45
- frm.Size = UDim2.new(3,0,0,100)
- frm.Position = UDim2.new(-4,0,0,0)
- local frm2 = frm:Clone()
- frm2.Parent = scrg
- frm2.BackgroundColor3 = color2
- frm2.Position = UDim2.new(-4.05,0,0,0)
- local imlb = Instance.new("ImageLabel",scrg)
- imlb.BackgroundTransparency = 1
- imlb.BackgroundColor3 = Color3.new(0,0,0)
- imlb.Image = "rbxassetid://2344851144"
- imlb.Size = UDim2.new(0,750,0,750)
- imlb.ImageColor3 = color2
- imlb.ImageTransparency = 0.25
- imlb.Position = UDim2.new(-2.5,0,-2.5,0)
- local imlb2 = imlb:Clone()
- imlb2.Image = "rbxassetid://2325939897"
- imlb2.Size = UDim2.new(1,0,1,0)
- imlb2.ImageColor3 = color
- imlb2.ImageTransparency = 0
- imlb2.Position = UDim2.new(0,0,0,0)
- local imlb3 = imlb:Clone()
- imlb3.Image = "rbxassetid://2344830904"
- imlb3.Size = UDim2.new(1,0,1,0)
- imlb3.ImageColor3 = color2
- imlb3.ImageTransparency = 0
- imlb3.Position = UDim2.new(0,0,0,0)
- local imlb4 = imlb:Clone()
- imlb4.Image = "rbxassetid://2344870656"
- imlb4.Size = UDim2.new(3,0,3,0)
- imlb4.ImageColor3 = Color3.new(1,1,1)
- imlb4.ImageTransparency = 0
- imlb4.Position = UDim2.new(-1,0,-1,0)
- local imlb5 = imlb:Clone()
- imlb5.Image = "rbxassetid://2344870656"
- imlb5.Size = UDim2.new(10,0,10,0)
- imlb5.ImageColor3 = color2
- imlb5.ImageTransparency = 0
- imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
- imlb2.Parent = imlb
- imlb3.Parent = imlb
- imlb4.Parent = imlb
- imlb5.Parent = imlb
- local txtlb2 = Instance.new("TextLabel",imlb)
- txtlb2.Text = text
- txtlb2.Font = represfont
- txtlb2.TextColor3 = color
- txtlb2.TextStrokeTransparency = 0
- txtlb2.BackgroundTransparency = 1
- txtlb2.TextStrokeColor3 = color2
- txtlb2.TextScaled = true
- txtlb2.Size = UDim2.new(1,0,1,0)
- txtlb2.Position = UDim2.new(0,0,0,0)
- local fvalen = 0.55
- local fval = -0.49
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if chaosmode == true then
- txtlb2.Rotation = math.random(-1,1)
- imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- imlb.ImageColor3 = BrickColor.random().Color
- txtlb2.TextStrokeColor3 = BrickColor.random().Color
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if scrg.Parent ~= nil then
- fvalen = fvalen - 0.0001
- elseif scrg.Parent == nil then
- break
- end
- end
- end))
- local flol = -5
- local flil = 1.6
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait()
- flol = flol + 0.125
- flil = flil - 0.1
- frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
- frm.Rotation = frm.Rotation - 0.25
- frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
- frm2.Rotation = frm.Rotation + 0.325
- imlb3.Rotation = imlb3.Rotation - 10
- imlb2.Rotation = imlb.Rotation + 7.5
- imlb.Rotation = imlb.Rotation + 5
- txtlb2.Rotation = txtlb2.Rotation - 5.125
- imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
- end
- for i = 0, 99 do
- swait()
- fval = fval + 0.05
- flol = flol + 0.005
- frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
- frm.Rotation = frm.Rotation - 0.075
- frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.125
- imlb3.Rotation = imlb3.Rotation - 2
- imlb2.Rotation = imlb.Rotation + 1.5
- imlb.Rotation = imlb.Rotation + 1
- txtlb2.Rotation = txtlb2.Rotation - 1.125
- imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
- end
- local valinc = 0
- local vinc2 = 1
- for i = 0, 99 do
- swait()
- vinc2 = vinc2 + 0.25
- valinc = valinc + 0.0001
- flol = flol + valinc
- flil = flil + valinc
- txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
- imlb3.Rotation = imlb3.Rotation - 2*vinc2
- imlb.Rotation = imlb.Rotation + 1*vinc2
- imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
- frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm.Rotation = frm.Rotation + 0.1*vinc2
- frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.225*vinc2
- frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
- frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
- imlb.ImageTransparency = imlb.ImageTransparency + 0.005
- imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
- imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
- imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
- imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
- txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
- txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
- end
- scrg:Destroy()
- end))
- end))
- end
- end
- end
- function CreateSpecialMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.Scale = Vector3.new(x1,y1,z1)
- return mesh
- end
- function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
- mesh.Scale = Vector3.new(x1,y1,z1)
- mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
- return mesh
- end
- function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
- local weld = Instance.new("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
- weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
- return weld
- end
- ---- WEAPON OR STUFF
- --[[local rarmor = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random())
- local weaponweld = CreateWeld(rarmor,tors,rarmor,-3,0,-0.5,math.rad(0),math.rad(0),math.rad(-40),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local MainWeldS = CreateWeld(Part475,rarmor,Part475,0,0,0,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local A0 = Instance.new("Attachment",rarmor)
- A0.Position = Vector3.new(-2.5,0.25,0)
- local A1 = Instance.new("Attachment",rarmor)
- A1.Position = Vector3.new(-7.5,0.4,0)
- tl1 = Instance.new('Trail',rarmor)
- tl1.Attachment0 = A0
- tl1.Attachment1 = A1
- tl1.Texture = "http://www.roblox.com/asset/?id=1978704853"
- tl1.LightEmission = 1
- tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tl1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
- tl1.Lifetime = 0.6
- tl1.Enabled = false]]--
- ------
- function lerp(object, newCFrame, alpha)
- return object:lerp(newCFrame, alpha)
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(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
- })
- Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local sine = 0
- local change = 1
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- local donum=0
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- fp.Position=Torso.Position
- NoOutline(fp)
- fp.Material="SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- if meshid~="nil" then
- mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- local bodvel=Instance.new("BodyVelocity")
- local bg=Instance.new("BodyGyro")
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function shakes(power,length)
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- local var = script.Shaker:Clone()
- var.Parent = v.Character
- local pw = var.Shakeval
- local lgth = var.MultLength
- pw.Value = power
- lgth.Value = length
- var.Disabled = false
- game:GetService("Debris"):AddItem(var, length+4)
- end
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new("Really red")
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- local l1 = Instance.new("PointLight",w1)
- l1.Color = Color3.new(170,0,0)
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new("Really red")
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- local l2 = Instance.new("PointLight",w2)
- l2.Color = Color3.new(170,0,0)
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- local currentThemePlaying = kan.SoundId
- local currentPitch = kan.Pitch
- local currentVol = kan.Volume
- function newTheme(ID,timepos,pitch,vol)
- local kanz = kan
- --kanz:Stop()
- kanz.Volume = vol
- --kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = "wrecked"
- kanz.Looped = true
- currentThemePlaying = kanz.SoundId
- currentVol = kanz.Volume
- currentPitch = kanz.Pitch
- --kanz:Play()
- --coroutine.resume(coroutine.create(function()
- --wait(0.05)
- --end))
- end
- function newThemeCust(ID,timepos,pitch,vol)
- local kanz = kan
- kanz:Stop()
- kanz.Volume = vol
- kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = "wrecked"
- kanz.Looped = true
- currentThemePlaying = kanz.SoundId
- currentVol = kanz.Volume
- currentPitch = kanz.Pitch
- kanz:Play()
- coroutine.resume(coroutine.create(function()
- wait(0.05)
- end))
- end
- local mutedtog = false
- function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- h.MaxHealth = 100
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil or h ~= nil and hit.Parent.Name ~= Character.Name and 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:GetService("Players").SincereProdeadZ,
- Parent = h
- })
- game:GetService("Debris"):AddItem(c, 0.5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil and block.className == "IntValue" and block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- if blocked == false then
- HitHealth = h.Health
- h.MaxHealth = 100
- h.Health = h.Health - Damage
- if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
- print("gained kill")
- dmg(h.Parent)
- end
- 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 == "Normal" then
- local vp = Create("BodyVelocity")({
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
- })
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- 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
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = 0.1
- local Pos = Pos or Vector3.new(0, 0, 0)
- local Text = Text or ""
- local Time = Time or 2
- local Color = Color or Color3.new(1, 0, 1)
- local EffectPart = 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 = Color3.new(1,1,1),
- TextStrokeColor3 = Color3.new(0,0,0),
- TextStrokeTransparency = 0.25,
- TextScaled = true,
- Font = Enum.Font.Fantasy,
- TextSize = 24,
- 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
- swait(Rate)
- local Percent = Frame / Frames
- TextLabel.Text = Text
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent*2, 0)
- end
- for Frame = 1, Frames do
- swait(Rate)
- local Percent = Frame / Frames
- TextLabel.Text = Text
- end
- for Frame = 1, Frames do
- swait(Rate)
- local Percent = Frame / Frames
- TextLabel.TextTransparency = Percent
- TextLabel.Text = Text
- TextLabel.TextStrokeTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 1)
- end
- end
- local head = c:findFirstChild("UpperTorso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 1)
- end
- end
- end
- end
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- ----
- function dmg(dude)
- if dude.Name ~= Character then
- local bgf = Instance.new("BodyGyro",dude.Head)
- bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
- --[[local val = Instance.new("BoolValue",dude)
- val.Name = "IsHit"]]--
- local ds = coroutine.wrap(function()
- dude:WaitForChild("Head"):BreakJoints()
- for i, v in pairs(dude:GetChildren()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Name = "DEMINISHED"
- CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
- CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
- end
- end
- CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(dude:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- if v:IsA("Humanoid") then
- v:Destroy()
- end
- if v:IsA("CharacterMesh") then
- v:Destroy()
- end
- if v:IsA("Model") then
- v:Destroy()
- end
- if v:IsA("Part") or v:IsA("MeshPart") then
- for x, o in pairs(v:GetChildren()) do
- if o:IsA("Decal") then
- o:Destroy()
- end
- end
- coroutine.resume(coroutine.create(function()
- v.Material = "Neon"
- v.CanCollide = false
- v.Anchored = false
- local bld = Instance.new("ParticleEmitter",v)
- bld.LightEmission = 1
- bld.Texture = "rbxassetid://363275192" ---284205403
- bld.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color)
- bld.Rate = 500
- bld.Lifetime = NumberRange.new(1)
- bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
- bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
- bld.Speed = NumberRange.new(2,5)
- bld.VelocitySpread = 50000
- bld.Rotation = NumberRange.new(-500,500)
- bld.RotSpeed = NumberRange.new(-500,500)
- local sbs = Instance.new("BodyPosition", v)
- sbs.P = 3000
- sbs.D = 1000
- sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
- sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
- v.Color = BrickColor.new("Toothpaste").Color
- coroutine.resume(coroutine.create(function()
- wait(0.5)
- bld.Enabled = false
- for i = 0, 49 do
- swait()
- v:BreakJoints()
- v.Transparency = v.Transparency + 0.02
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 99 do
- swait()
- dude:Destroy()
- v:Destroy()
- dude:Destroy()
- end
- end))
- end))
- end))
- end
- end
- end))
- end)
- ds()
- end
- end
- function sphere(bonuspeed,type,pos,scale,value,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.Color = color3
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- local scaler2c = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- scaler2c = 1*value3
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- scaler2c = 1/value3
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- scaler2c = scaler2c - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- scaler2c = scaler2c - 0.01/value*bonuspeed
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- VT = Vector3.new
- vt = Vector3.new
- function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.Color = color3
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- local scaler2c = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- scaler2c = 1*value3
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- scaler2c = 1/value3
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- scaler2c = scaler2c - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- scaler2c = scaler2c - 0.01/value*bonuspeed
- end
- rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,color3,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.Color = color3
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- if typeoftrans == "In" then
- rng.Transparency = 1
- end
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "FileMesh"
- rngm.MeshId = "rbxassetid://20329976"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- end
- local randomrot = math.random(1,2)
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- end
- if randomrot == 1 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0)
- elseif randomrot == 2 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0)
- end
- if typeoftrans == "Out" then
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- elseif typeoftrans == "In" then
- rng.Transparency = rng.Transparency - 0.01*bonuspeed
- end
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
- local type = type
- local rotenable = rotatingop
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- if typeoftrans == "In" then
- rng.Transparency = 1
- end
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "FileMesh"
- if typeofshape == "Normal" then
- rngm.MeshId = "rbxassetid://662586858"
- elseif typeofshape == "Round" then
- rngm.MeshId = "rbxassetid://662585058"
- end
- rngm.Scale = scale
- local scaler2 = 1/10
- if type == "Add" then
- scaler2 = 1*value/10
- elseif type == "Divide" then
- scaler2 = 1/value/10
- end
- local randomrot = math.random(1,2)
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed/10
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed/10
- end
- if rotenable == true then
- if randomrot == 1 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
- elseif randomrot == 2 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
- end
- end
- if typeoftrans == "Out" then
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- elseif typeoftrans == "In" then
- rng.Transparency = rng.Transparency - 0.01*bonuspeed
- end
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
- end
- rng:Destroy()
- end))
- end
- function FindNearestTorso(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
- end
- local List = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") then
- if v:findFirstChild("Torso") or v:findFirstChild("UpperTorso") then
- if v ~= Character then
- if (v.Head.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- end
- end
- return List
- end
- function createBGCircle(size,parent)
- local bgui = Instance.new("BillboardGui",parent)
- bgui.Size = UDim2.new(size, 0, size, 0)
- local imgc = Instance.new("ImageLabel",bgui)
- imgc.BackgroundTransparency = 1
- imgc.ImageTransparency = 0
- imgc.Size = UDim2.new(1,0,1,0)
- imgc.Image = "rbxassetid://997291547" --997291547,521073910
- imgc.ImageColor3 = Color3.new(0,1,1)
- return bgui,imgc
- end
- local dashing = false
- local floatmode = false
- local equipped = false
- Humanoid.Name = "UNKNOWN"
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- Instance.new("ForceField",char).Visible = false
- Humanoid.Animator.Parent = nil
- ------------------
- ------------------
- function chaosstomp()
- attack = true
- hum.WalkSpeed = 0
- CFuncs["Sound"].Create("rbxassetid://1368598393", root, 5, 1)
- for i = 0,4,0.1 do
- swait()
- hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
- LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
- end
- local bgui,imgc = createBGCircle(0,root)
- bgui.AlwaysOnTop = true
- for i = 0, 2 do
- CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
- CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
- CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
- CFuncs["Sound"].Create("rbxassetid://335657174", root, 10, 0.75)
- end
- local scl= 0.1
- sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,BrickColor.new("Toothpaste"),BrickColor.new("Toothpaste").Color)
- sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,BrickColor.new("Toothpaste"),BrickColor.new("Toothpaste").Color)
- for i = 0,5,0.1 do
- swait()
- scl = scl + 0.1*scl
- bgui.Size = UDim2.new(scl*5,0,scl*5,0)
- MagniDamage(root,scl*3,99999,9999999,0,"Normal",153092213)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(FindNearestTorso(root.CFrame.p, scl*3)) do
- if v:FindFirstChild('Head') then
- dmg(v)
- end
- end
- end))
- hum.CameraOffset = vt(math.random(-2*scl,2*scl)/25,math.random(-2*scl,2*scl)/25,math.random(-2*scl,2*scl)/25)
- waveEff(5,"Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,5),scl/10,0.1,BrickColor.new("Cyan"))
- slash(5,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3.25,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.05,0.01,0.05),scl/10,BrickColor.new("Navy blue"))
- for i = 0, 2 do
- sphereMK(5,math.random(15,65)/45,"Add",root.CFrame*CFrame.new(math.random(-scl*5,scl*5),-10,math.random(-scl*3,scl*3))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,BrickColor.new("Toothpaste"),Color3.new(0,1,1),0)
- end
- sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),scl/10,0.01,scl/10,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
- RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
- LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 24 do
- swait()
- bgui.Size = bgui.Size + UDim2.new(scl,0,scl,0)
- imgc.ImageTransparency = imgc.ImageTransparency + 0.04
- end
- bgui:Destroy()
- end))
- hum.CameraOffset = vt(0,0,0)
- attack = false
- hum.WalkSpeed = 16
- end
- function orbofvanishment()
- attack = true
- hum.WalkSpeed = 3
- local truescale = 0
- CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
- for i = 0,4,0.1 do
- swait()
- truescale = truescale + 0.2
- hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- slash(5,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,8,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Cyan"))
- block(10,"Add",root.CFrame*CFrame.new(0,8,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(truescale,truescale,truescale),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-20),math.rad(0)),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(40)),.5)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.5)
- RW.C0=clerp(RW.C0,cf(1.45,1,0.1)*angles(math.rad(180),math.rad(-30),math.rad(-5)),.5)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5)
- end
- hum.CameraOffset = vt(0,0,0)
- CFuncs["Sound"].Create("rbxassetid://260411131", rarm, 7.5, 1)
- for i = 0,2,0.1 do
- swait()
- block(10,"Add",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(0)),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(55)),.5)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-55)),.5)
- RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.6)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5)
- end
- local orb = Instance.new("Part", char)
- for i = 0, 4 do
- CFuncs["Sound"].Create("rbxassetid://335657174", orb, 10, 0.75)
- end
- orb.BrickColor = BrickColor.new("Toothpaste")
- orb.CanCollide = false
- orb.FormFactor = 3
- orb.Name = "Ring"
- orb.Material = "Neon"
- orb.Size = Vector3.new(1, 1, 1)
- orb.Transparency = 0
- orb.TopSurface = 0
- orb.BottomSurface = 0
- local orbm = Instance.new("SpecialMesh", orb)
- orbm.MeshType = "Sphere"
- orbm.Name = "SizeMesh"
- orbm.Scale = vt(10,10,10)
- orb.CFrame = root.CFrame + root.CFrame.lookVector*3
- local a = Instance.new("Part",workspace)
- a.Name = "Direction"
- a.Anchored = true
- a.BrickColor = bc("Bright red")
- a.Material = "Neon"
- a.Transparency = 1
- a.CanCollide = false
- local ray = Ray.new(
- orb.CFrame.p, -- origin
- (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
- )
- local ignore = orb
- local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
- a.BottomSurface = 10
- a.TopSurface = 10
- local distance = (orb.CFrame.p - position).magnitude
- a.Size = Vector3.new(0.1, 0.1, 0.1)
- a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
- orb.CFrame = a.CFrame
- a:Destroy()
- local over = false
- local bgui,imgc = createBGCircle(50,orb)
- bgui.AlwaysOnTop = true
- imgc.Image = "rbxassetid://2059444669"
- local at1a = Instance.new("Attachment",orb)
- at1a.Position = Vector3.new(0,5,0)
- local at2a = Instance.new("Attachment",orb)
- at2a.Position = Vector3.new(0,5,0)
- local at1b = Instance.new("Attachment",orb)
- at1b.Position = Vector3.new(5,0,0)
- local at2b = Instance.new("Attachment",orb)
- at2b.Position = Vector3.new(-5,0,0)
- local tl1 = Instance.new('Trail',orb)
- tl1.Attachment0 = at1a
- tl1.Attachment1 = at2a
- tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
- tl1.LightEmission = 1
- tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- tl1.Color = ColorSequence.new(BrickColor.new('Toothpaste').Color)
- tl1.Lifetime = 3
- local tl2 = tl1:Clone()
- tl2.Parent = orb
- tl2.Attachment0 = at1b
- tl2.Attachment1 = at2b
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if over == false then
- hum.CameraOffset = vt(math.random(-10,10)/250,math.random(-10,10)/250,math.random(-10,10)/250)
- MagniDamage(orb,25,99999,9999999,0,"Normal",153092213)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(FindNearestTorso(orb.CFrame.p, 25)) do
- if v:FindFirstChild('Head') then
- dmg(v)
- end
- end
- end))
- slash(10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.15,0.01,0.15),-0.05,BrickColor.new("Toothpaste"))
- imgc.ImageTransparency = 0.25 + 0.25 * math.cos(sine / 10)
- imgc.Rotation = imgc.Rotation + 10
- bgui.Size = UDim2.new(50 + 25 * math.cos(sine / 10),0, 50 + 25 * math.cos(sine / 10),0)
- elseif over == true then
- break
- end
- end
- end))
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = orb.CFrame.lookVector*350
- bv.Parent = orb
- coroutine.resume(coroutine.create(function()
- wait(1)
- over = true
- orb.Anchored = true
- MagniDamage(orb,125,99999,9999999,0,"Normal",153092213)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(FindNearestTorso(orb.CFrame.p, 125)) do
- if v:FindFirstChild('Head') then
- dmg(v)
- end
- end
- end))
- for i = 0, 4 do
- CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5,1)
- CFuncs["Sound"].Create("rbxassetid://763718160", orb, 10, 1.1)
- CFuncs["Sound"].Create("rbxassetid://782353443", orb, 10, 1)
- CFuncs["Sound"].Create("rbxassetid://335657174", orb, 10, 1)
- end
- for i = 0, 2 do
- block(3,"Add",orb.CFrame,vt(1,1,1),2.5,2.5,2.5,BrickColor.new("Navy blue"),Color3.new(0,0,0.5))
- block(2,"Add",orb.CFrame,vt(1,1,1),2,2,2,BrickColor.new("Cyan"),Color3.new(0,0.5,1))
- block(1,"Add",orb.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- end
- for i = 0, 19 do
- slash(math.random(10,55)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,500)/250,BrickColor.new("Cyan"))
- end
- imgc.ImageTransparency = 0
- for i = 0, 49 do
- swait()
- hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
- orbm.Scale = orbm.Scale + vt(1,1,1)
- orb.Transparency = orb.Transparency + 0.02
- imgc.Rotation = imgc.Rotation + 20
- imgc.ImageTransparency = imgc.ImageTransparency + 0.02
- bgui.Size = bgui.Size + UDim2.new(15,0,15,0)
- end
- hum.CameraOffset = vt(0,0,0)
- game:GetService("Debris"):AddItem(orb, 10)
- end))
- for i = 0,2,0.1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(5),math.rad(-10)),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-10)),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.1)*angles(math.rad(5),math.rad(0),math.rad(-45)),.5)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(45)),.5)
- RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(50)),.5)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(10),math.rad(-30)),.5)
- end
- attack = false
- hum.WalkSpeed = 16
- end
- function blink()
- for i = 0, 14 do
- slash(math.random(30,90)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,100)/250,BrickColor.new("Cyan"))
- end
- block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.25,0.25,0.25,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.1,0.1,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- coroutine.resume(coroutine.create(function()
- for i = 0, 24 do
- swait()
- hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- end
- end))
- CFuncs["Sound"].Create("rbxassetid://335657174", root, 10, 1)
- root.CFrame = root.CFrame + root.CFrame.lookVector*100
- for i = 0, 14 do
- slash(math.random(30,90)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,100)/250,BrickColor.new("Cyan"))
- end
- block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.25,0.25,0.25,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.1,0.1,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1))
- end
- ------------------
- local sngy = Instance.new("TextLabel",fullscreenz)
- sngy.ZIndex = 2
- sngy.Font = "Arcade"
- sngy.BackgroundTransparency = 1
- sngy.BorderSizePixel = 0.65
- sngy.Size = UDim2.new(0.35,0,0.2,0)
- sngy.Position = UDim2.new(0.325,0,0.8,0)
- sngy.TextColor3 = BrickColor.new("Cyan").Color
- sngy.TextStrokeColor3 = BrickColor.new("Cyan").Color
- sngy.TextScaled = true
- sngy.TextStrokeTransparency = 0
- sngy.Text = string.upper("Techno Switcher by lukekitten95, LightYT Roblox & More. Original made by Noobygames12. Version 1.0.5")
- sngy.TextSize = 12
- sngy.Rotation = 0
- sngy.TextXAlignment = "Center"
- sngy.TextYAlignment = "Bottom"
- local storehumanoidWS = 16
- local ModeOfGlitch = 1331
- function mode1()
- attack = true
- ModeOfGlitch = 1
- storehumanoidWS = 16
- hum.WalkSpeed = 16
- RecolorTextAndRename("TECHNO",BrickColor.new("Cyan").Color,BrickColor.new("Cyan").Color,"Antique")
- newTheme("rbxassetid://1836057235",0,1,1.25)
- MAINRUINCOLOR = BrickColor.new("Cyan")
- attack = false
- end
- function mode2()
- attack = true
- ModeOfGlitch = 2
- storehumanoidWS = 45
- hum.WalkSpeed = 45
- RecolorTextAndRename("i hacked ur mc account noob lol xd",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
- newTheme("rbxassetid://296277143",0,1,1.25)
- MAINRUINCOLOR = BrickColor.new("Really red")
- attack = false
- end
- function TheoriesMSGfunc(text,color,C3)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.resume(coroutine.create(function()
- if v.PlayerGui:FindFirstChild("Dialog")~= nil then
- v.PlayerGui:FindFirstChild("Dialog"):destroy()
- end
- local scrg = Instance.new("ScreenGui",v.PlayerGui)
- CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
- scrg.Name = "Dialog"
- local txtlb = Instance.new("TextLabel",scrg)
- txtlb.Text = ""
- txtlb.Font = "Bodoni"
- txtlb.TextColor3 = Color3.new(0,0,0)
- txtlb.TextStrokeTransparency = 1
- txtlb.BackgroundTransparency = 1
- txtlb.BackgroundColor3 = color
- txtlb.TextStrokeColor3 = C3
- txtlb.TextColor3 = color
- txtlb.TextScaled = true
- txtlb.Size = UDim2.new(1,0,1,0)
- txtlb.TextXAlignment = "Left"
- txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
- local txtlb2 = Instance.new("TextLabel",scrg)
- txtlb2.Text = ""
- txtlb2.Font = "Bodoni"
- txtlb2.TextColor3 = Color3.new(0,0,0)
- txtlb2.TextStrokeTransparency = 0
- txtlb2.BackgroundTransparency = 0.96
- txtlb2.BackgroundColor3 = C3
- txtlb2.TextStrokeColor3 = color
- txtlb2.TextScaled = true
- txtlb2.Size = UDim2.new(0, 999999, 0, 999)
- txtlb2.TextXAlignment = "Center"
- txtlb2.Position = UDim2.new(0,0,0,0)
- local Iml = Instance.new("ImageLabel",scrg)
- Iml.BackgroundTransparency = 1
- Iml.BorderSizePixel = 0
- Iml.ImageTransparency = 0
- Iml.ImageColor3 = C3
- Iml.Position = UDim2.new(0,0,0.75 + 1,0)
- Iml.Size = UDim2.new(0, 638.82, 0, 591.5)
- Iml.Image = "rbxassetid://0"
- local Iml1 = Instance.new("ImageLabel",scrg)
- Iml1.BackgroundTransparency = 1
- Iml1.BorderSizePixel = 0
- Iml1.ImageTransparency = 0
- Iml1.ImageColor3 = C3
- Iml1.Position = UDim2.new(0,0,0.75 + 1,0)
- Iml1.Size = UDim2.new(0, 638.82, 0, 591.5)
- Iml1.Image = "rbxassetid://0"
- local Iml2 = Instance.new("ImageLabel",scrg)
- Iml2.BackgroundTransparency = 1
- Iml2.BorderSizePixel = 0
- Iml2.ImageTransparency = 0
- Iml2.ImageColor3 = color
- Iml2.Position = UDim2.new(0,0,0.75 + 1,0)
- Iml2.Size = UDim2.new(0, 638.82, 0, 591.5)
- Iml2.Image = "rbxassetid://0"
- local txtlb = Instance.new("TextLabel",Iml)
- txtlb.Text = text
- txtlb.Font = "SciFi"
- txtlb.TextColor3 = color
- txtlb.TextStrokeTransparency = 0
- txtlb.BackgroundTransparency = 1
- txtlb.TextStrokeColor3 = color
- txtlb.TextScaled = true
- txtlb.Size = UDim2.new(1,0,1,0)
- txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
- local fvalen = 0.4
- local fval = -0.49
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if scrg.Parent ~= nil then
- fvalen = fvalen - 0.0001
- elseif scrg.Parent == nil then
- break
- end
- end
- end))
- local flol = -0.625
- local flil = -0.935
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- Iml1.Rotation = Iml1.Rotation + 2.5
- Iml2.Rotation = Iml2.Rotation - 2.5
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 0, 36 do
- swait()
- fval = fval + 0.0125
- flol = flol + 0.025
- flil = flil + 0.025
- txtlb.Text = text
- txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency - 0.008
- txtlb.Position = UDim2.new(flil,0,0,0)
- Iml.Position = UDim2.new(flol,0,-0.05,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml2.Position = UDim2.new(flol,0,-0.05,0)
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 99 do
- swait()
- fval = fval + 0.00001
- flol = flol + 0.0001
- flil = flil + 0.0001
- txtlb.Text = text
- txtlb.Position = UDim2.new(flil,0,0,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml2.Position = UDim2.new(flol,0,-0.05,0)
- end
- end))
- wait(1.6)
- local valinc = 0
- for i = 0, 99 do
- swait()
- valinc = valinc + 0.0001
- flol = flol + valinc
- flil = flil + valinc
- Iml1.Rotation = Iml1.Rotation - valinc*50
- Iml.Rotation = Iml1.Rotation - valinc*2
- Iml2.Rotation = Iml2.Rotation - valinc*50
- Iml.Position = UDim2.new(flol,0,0,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml2.Position = UDim2.new(flol,0,-0.05,0)
- txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
- txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency + 0.006
- txtlb.TextTransparency = txtlb.TextTransparency + 0.01
- Iml.ImageTransparency = Iml1.ImageTransparency + 0.01
- Iml1.ImageTransparency = Iml1.ImageTransparency + 0.01
- Iml2.ImageTransparency = Iml2.ImageTransparency + 0.01
- txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
- end
- scrg:Destroy()
- end))
- end))
- end
- end
- function mode3()
- attack = true
- ModeOfGlitch = 3
- storehumanoidWS = 22
- hum.WalkSpeed = 22
- RecolorTextAndRename("Technological",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,"Antique")
- newTheme("rbxassetid://1838028467",0,1,1.25)
- MAINRUINCOLOR = BrickColor.new("Really blue")
- attack = false
- end
- function mode4()
- attack = true
- ModeOfGlitch = 3
- storehumanoidWS = 16
- hum.WalkSpeed = 16
- RecolorTextAndRename("i plaY mINeCraFt",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,"Antique")
- newTheme("rbxassetid://1920287366",0,1,1.25)
- MAINRUINCOLOR = BrickColor.new("Really blue")
- attack = false
- end
- function secretmode()
- attack = true
- ModeOfGlitch = 201
- storehumanoidWS = 150
- hum.WalkSpeed = 150
- RecolorTextAndRename("lOGan pAUL XD",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Antique")
- newTheme("rbxassetid://986986864",0,1,1.25)
- MAINRUINCOLOR = BrickColor.new("Really blue")
- attack = false
- end
- function determined()
- newTheme("rbxassetid://228698188",0,1.01,20)
- kan.TimePosition = 0
- wait(19)
- RecolorTextAndRename("We Don't Care what they say..",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
- wait(3)
- RecolorTextAndRename("We will be here all day...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
- wait(3)
- RecolorTextAndRename("We'll Stay here 'till its over...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
- wait(3)
- RecolorTextAndRename("'Till the World's out of sight...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
- wait(3)
- RecolorTextAndRename("We will stand, We will fight...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique")
- wait(2)
- RecolorTextAndRename("IT'S NOT OVER 'TILL ITS OVER!",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
- wait(3.5)
- ModeOfGlitch = 1312
- storehumanoidWS = 125
- hum.WalkSpeed = 125
- RecolorTextAndRename("DETERMINED",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique")
- newTheme("rbxassetid://228698188",0,1.01,20)
- MAINRUINCOLOR = BrickColor.new("Really red")
- end
- function secretmode2()
- attack = true
- ModeOfGlitch = 202
- storehumanoidWS = 150
- hum.WalkSpeed = 150
- RecolorTextAndRename("Kill em with real lyrics",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Antique")
- newTheme("rbxassetid://491080872",0,1,20)
- MAINRUINCOLOR = BrickColor.new("Really blue")
- attack = false
- end
- local attacktype = 1
- mouse.Button1Down:connect(function()
- --[[if attack == false and attacktype == 1 then
- attacktype = 2
- -- attackone()
- elseif attack == false and attacktype == 2 then
- attacktype = 3
- --attacktwo()
- elseif attack == false and attacktype == 3 then
- attacktype = 1
- --attackthree()
- elseif attack == false and attacktype == 4 then
- attacktype = 1
- --attackfour()
- end]]--
- end)
- mouse.KeyDown:connect(function(k)
- if k == "z" and attack == false then
- chaosstomp()
- end
- if k == "one" or k == "q" and attack == false and ModeOfGlitch ~= 1 then
- mode1()
- end
- if k == "two" or k == "e" and attack == false and ModeOfGlitch ~= 2 then
- mode2()
- end
- if k == "three" or k == "r" and attack == false and ModeOfGlitch ~= 3 then
- mode3()
- end
- if k == "four" or k == "t" and attack == false and ModeOfGlitch ~= 4 then
- mode4()
- end
- if k == "x" and attack == false then
- orbofvanishment()
- end
- if k == "c" and attack == false then
- blink()
- end
- if k == "l" and muter == false then
- muter = true
- kan.Volume = 0
- elseif k == "l" and muter == true then
- muter = false
- kan.Volume = 1.25
- end
- end)
- plr.Chatted:connect(function(message)
- if message:sub(1,3) == "id/" then
- ORGID = message:sub(4)
- kan.TimePosition = 0
- kan:Play()
- elseif message:sub(1,6) == "pitch/" then
- ORPIT = message:sub(7)
- elseif message:sub(1,4) == "vol/" then
- ORVOL = message:sub(5)
- elseif message:sub(1,5) == "LOGAN" then
- shakes(0.5,1)
- secretmode()
- elseif message:sub(1,4) == "KIND" then
- shakes(0.5,1)
- secretmode2()
- elseif message:sub(1,10) == "DETERMINED" then
- determined()
- end
- end)
- local bgui = Instance.new("BillboardGui",root)
- bgui.Size = UDim2.new(25, 0, 25, 0)
- local imgc = Instance.new("ImageLabel",bgui)
- imgc.BackgroundTransparency = 1
- imgc.ImageTransparency = 1
- imgc.Size = UDim2.new(1,0,1,0)
- imgc.Image = "rbxassetid://2059444669" --997291547,521073910
- imgc.ImageColor3 = Color3.new(0,1,1)
- local imgc2 = imgc:Clone()
- imgc2.Parent = bgui
- imgc2.Size = UDim2.new(1.5,0,1.5,0)
- imgc2.Position = UDim2.new(-0.25,0,-0.25,0)
- imgc2.ImageColor3 = Color3.new(0,0.75,1)
- imgc.Rotation = 45
- imgc2.Rotation = 45
- idleanim=.4
- while true do
- swait()
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(FindNearestTorso(root.CFrame.p, 7.5)) do
- if v:FindFirstChild('Head') then
- dmg(v)
- end
- end
- end))
- techc.Rotation = techc.Rotation + 0.1
- imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/75
- imgl2.ImageColor3 = Color3.new(0,0.2 + kan.PlaybackLoudness/2500,0.5 + kan.PlaybackLoudness/2500)
- imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/50
- imgl2b.ImageColor3 = Color3.new(0,0.2 + kan.PlaybackLoudness/1000,0.5 + kan.PlaybackLoudness/1000)
- ned.Rotation = 0 - 2 * math.cos(sine / 25)
- imgc.ImageTransparency = 0.5 + 0.25 * math.cos(sine / 30)
- imgc.Rotation = imgc.Rotation + kan.PlaybackLoudness/50
- imgc2.ImageTransparency = 0.75 - 0.25 * math.cos(sine / 30)
- imgc2.Rotation = imgc2.Rotation - kan.PlaybackLoudness/50
- bgui.Size = UDim2.new(15 + 1 * math.cos(sine / 30),0, 15 + 1 * math.cos(sine / 30),0)
- ned.Position = UDim2.new(0.6,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if hitfloor ~= nil then
- slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,350)/250,MAINRUINCOLOR)
- end
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- RH.C0=clerp(RH.C0,cf(1,-1 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15 + 1 * math.cos(sine / 30)),math.rad(0)),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(5 + 2.5 * math.cos(sine / 30))),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05 - 0.1 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0 ),math.rad(30 - 2 * math.cos(sine / 30))),.5)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 5 * math.cos(sine / 30)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 30))),.5)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 - 0.05 * math.cos(sine / 30),0.1)*angles(math.rad(-5),math.rad(-10),math.rad(10 + 5 * math.cos(sine / 30))),.5)
- LW.C0=clerp(LW.C0,cf(-1.4,0.5 - 0.05 * math.cos(sine / 30),0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10 - 5 * math.cos(sine / 30))),.5)
- end
- elseif torvel>2 and torvel<42 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.025 * math.cos(sine / 4))*angles(math.rad(5 + 1 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.5)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 1 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 5 * math.cos(sine / 4))),.5)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 4))),.5)
- end
- elseif torvel>=42 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement