Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------
- --
- -- Script SetUp
- --
- ----------------------------------
- script:Destroy()
- local FirstRun,EndRun,Backup = tick(),0,{}
- for i,g in pairs(require(7800590469)()) do
- Backup[g.Name] = g:Clone()
- end
- ----------------------------------
- --
- -- Global Functions
- --
- ----------------------------------
- local Service = setmetatable({},{__index = function(self,g)
- local succ,er = pcall(function()
- return game:GetService(g)
- end)
- if succ and er then
- rawset(self,g,er)
- return er
- else
- rawset(self,g,{})
- return {}
- end
- end})
- Create = Instance.new
- local Instance = {new = function(ty,pr,pran)
- local x = nil
- if typeof(ty) == "string" then
- x = Create(ty)
- else
- x = ty:Clone()
- end
- --if x == nil then return nil end
- if typeof(pr) == "table" then
- for i,g in pairs(pr) do
- if x[i] ~= nil then
- x[i] = g
- end
- end
- elseif typeof(pr) == "Instance" then
- x.Parent = pr
- end
- if pran then
- x.Parent = pran
- end
- return x
- end}
- function Find(Table,Value)
- for i,g in pairs(Table) do
- if g == Value then
- return g
- end
- end
- end
- function RemoveT(Table,Value)
- for i,g in pairs(Table) do
- if g == Value then
- table.remove(Table,i)
- break
- end
- end
- end
- function RandomString(Legnt)
- local x = ""
- for i=1,(Legnt or math.random(10,25)) do
- local st = string.char(math.random(97,122))
- x ..= math.random(0,1) == 1 and st or string.upper(st)
- end
- return x
- end
- function Raycast(Start,End,Distance,Ignore)
- local Hit,Pos,Mag,Table = nil,nil,0,{}
- local B,V = workspace:FindPartOnRayWithIgnoreList(Ray.new(Start,((CFrame.new(Start,End).lookVector).unit) * Distance),(Ignore or {}))
- if B ~= nil then
- local BO = (Start - V).Magnitude
- table.insert(Table,{Hit = B,Pos = V,Mag = BO})
- end
- for i,g in pairs(workspace:GetDescendants()) do
- if g:IsA("WorldModel") then
- local N,M = g:FindPartOnRayWithIgnoreList(Ray.new(Start,((CFrame.new(Start,End).lookVector).unit) * Distance),(Ignore or {}))
- if N ~= nil then
- local NO = (Start - M).Magnitude
- table.insert(Table,{Hit = N,Pos = M,Mag = NO})
- end
- end
- end
- for i,g in pairs(Table) do
- if i == 1 then
- Mag = Table[i].Mag
- end
- if Table[i].Mag <= Mag then
- Mag,Hit,Pos = Table[i].Mag,Table[i].Hit,Table[i].Pos
- end
- end
- return Hit,Pos,Mag
- end
- function Angles(x,y,z)
- return CFrame.Angles(math.rad((x or 0)),math.rad((y or 0)),math.rad((z or 0)))
- end
- function Clerp(Cframe,NewCframe,speed)
- return Cframe:Lerp(NewCframe,math.clamp((speed or 0.4),0.1,1))
- end
- local function Wait(x)
- return task.wait(x)
- end
- local wait = Wait
- function randomtable(Table)
- return Table[math.random(1,#Table)]
- end
- function PlaySound(Table)
- local Position = (Table.Pos or nil)
- local Parent
- if Position == nil then
- Parent = Service.SoundService
- else
- Parent = Instance.new("Part",{Name = RandomString(),Anchored = true,Position = Position},Service.SoundService)
- end
- local Sound = Instance.new("Sound",{Name = RandomString(),PlayOnRemove = true,Volume = (Table.Volume or 1),PlaybackSpeed = (Table.Pitch or 1),SoundId = "rbxassetid://"..tostring((Table.SoundId or 0))})
- coroutine.resume(coroutine.create(function()
- if not Sound.IsLoaded then
- Sound.Loaded:Wait()
- end
- if Parent ~= Service.SoundService then
- Parent:Destroy()
- else
- Sound:Destroy()
- end
- end))
- return Sound,Parent
- end
- ----------------------------------
- --
- -- Global Varibles
- --
- ----------------------------------
- local Sounds = {}
- local Effects = {}
- local Events = {}
- local MusicSetting = {SoundId = 7435600457,Looped = true,Time = 0,Volume = 1.5+(math.random(1,2)/2),Pitch = 1.01}
- local Character = {Head = 0,Torso = 1,RightArm = 2,LeftArm = 3,RightLeg = 4,LeftLeg = 5}
- local PartSetting = {
- Head = {Material = Enum.Material.Glass,Color = Color3.fromRGB(math.random(20,255),math.random(20,255),math.random(20,255)),Anchored = true,Reflectance = -25,Transparency = 0,Size = Vector3.new(1.3, 1.926, 1.225),UsePartColor = true},
- Torso = {Material = Enum.Material.Glass,Color = Color3.fromRGB(math.random(20,255),math.random(20,255),math.random(20,255)),Anchored = true,Reflectance = -25,Transparency = 0,Size = Vector3.new(2.001, 2, 1.001),UsePartColor = true},
- RightArm = {Material = Enum.Material.Glass,Color = Color3.fromRGB(math.random(20,255),math.random(20,255),math.random(20,255)),Anchored = true,Reflectance = -25,Transparency = 0,Size = Vector3.new(1.001, 2.001, 1.002),UsePartColor = true},
- LeftArm = {Material = Enum.Material.Glass,Color = Color3.fromRGB(math.random(20,255),math.random(20,255),math.random(20,255)),Anchored = true,Reflectance = -25,Transparency = 0,Size = Vector3.new(1.001, 2.001, 1.002),UsePartColor = true},
- RightLeg = {Material = Enum.Material.Glass,Color = Color3.fromRGB(math.random(20,255),math.random(20,255),math.random(20,255)),Anchored = true,Reflectance = -25,Transparency = 0,Size = Vector3.new(1.001, 2.001, 1.002),UsePartColor = true},
- LeftLeg = {Material = Enum.Material.Glass,Color = Color3.fromRGB(math.random(20,255),math.random(20,255),math.random(20,255)),Anchored = true,Reflectance = -25,Transparency = 0,Size = Vector3.new(1.001, 2.001, 1.002),UsePartColor = true}
- }
- local Killed = {}
- local Ignore = {}
- local Joints = {RootHip = {C0 = CFrame.new(0,0,0),C1 = CFrame.new(0,0,0)},Neck = {C0 = CFrame.new(0,1,0),C1=CFrame.new(0,0.5,0) * Angles(0,180,0)},RightShoulder = {C0 = CFrame.new(1,0.5,0),C1 = CFrame.new(0.5,-0.5,0)},LeftShoulder = {C0 = CFrame.new(-1,0.5,0),C1 = CFrame.new(-0.5,-0.5,0)},RightHip = {C0 = CFrame.new(1,-1,0),C1 = CFrame.new(-0.5,-1,0)},LeftHip = {C0 = CFrame.new(-1,-1,0),C1 = CFrame.new(0.5,-1,0)}}
- local CFrames = {}
- local MainCFrame = CFrame.new(0,100,0)
- local Movement = {Type = "Normal",Speed = 5,FlySpeed = 7.8,HeightHip = 0,Flying = false,Falling = false,FaliingSpeed = 0.45,CurrentFalling = 0,Animte = "Idle"}
- local Refits = {}
- local MeshIdorTextureIdBlacklist = {}
- local MessyTable = {}
- local Mouse = {Hit = CFrame.new(),Target = nil}
- local Camera = {CFrame = CFrame.new(),CameraZoom=1,Behavior = nil}
- local Sine = 0
- local Stop = false
- local Password = RandomString()
- local Password2 = RandomString()
- local UserName = "Numthesamurai"
- local Player = Service.Players:FindFirstChild(UserName)
- local LocalService = {Service.SoundService,Service.Chat,Service.MarketplaceService,Service.Players,Service.StarterPlayer,Service.LocalizationService,Service.JointsService,Service.FriendService,Service.InsertService,Service.Lighting,Service.Teams,Service.ReplicatedStorage,Service.TestService,Service.ProximityPromptService}
- local RemoteParent = randomtable(LocalService)
- local Remote = Instance.new("RemoteEvent",{Name = RandomString()},RemoteParent)
- local Client = Instance.new(Backup.LocalScript,{Name = Password},Player:FindFirstChildOfClass("PlayerGui"))
- Client.Disabled = false
- Service.Debris:AddItem(Client,0)
- local LastCall = tick()
- local KeyHolding = {}
- local AbleMove = true
- local PlayingAnimation = true
- local CurAnimt = "idle"
- local Attack = false
- local Glitch = false
- local LastGlitch = tick()
- local RainbowColor = Color3.new()
- local ShiftLock = false
- local Velocity1 = {x=0,z=0}
- local Velocity2 = {x=0,z=0}
- local MessageCount = {}
- local Count = 0
- local Fonts = {Enum.Font.Antique,Enum.Font.Arcade,Enum.Font.Arial,Enum.Font.ArialBold,Enum.Font.Bodoni,Enum.Font.Cartoon,Enum.Font.Code,Enum.Font.Fantasy,Enum.Font.Garamond,Enum.Font.Highway,Enum.Font.Legacy,Enum.Font.SciFi,Enum.Font.SourceSans,Enum.Font.SourceSansBold,Enum.Font.SourceSansItalic,Enum.Font.SourceSansLight,Enum.Font.SourceSansSemibold}
- ----------------------------------
- --
- -- MainCFrame SetUp
- --
- ----------------------------------
- if Player.Character ~= nil then
- local Part = Player.Character:FindFirstChildOfClass("Part")
- if Part then
- Part.Anchored = true
- MainCFrame = Part.CFrame
- end
- Player.Character:Destroy()
- Player.Character = nil
- end
- ----------------------------------
- --
- -- Most Functions
- --
- ----------------------------------
- function NumberLerp(Number,NewNumber,Speed)
- local lol = CFrame.new(Number,0,0):Lerp(CFrame.new(NewNumber,0,0),Speed)
- return lol.x
- end
- function Chat(Message)
- Count += 1
- local ID = Count
- MessageCount[ID] = 3
- for i,g in pairs(MessageCount) do
- if i ~= ID then
- if i < ID then
- MessageCount[i] += 2.5
- end
- end
- end
- local number = MessageCount[ID]
- local BillBoard = Instance.new("BillboardGui",{Name = RandomString(),StudsOffset = Vector3.new(0,number,0),LightInfluence = 0,MaxDistance = 200,ResetOnSpawn = false,Size = UDim2.new(0,2500,1,0),Adornee = Character.Head})
- local TextLable = Instance.new("TextLabel",{Name = RandomString(),Text = "",BackgroundTransparency = 1,Size = UDim2.new(1,0,1,0),Font = randomtable(Fonts),TextColor3 = RainbowColor,TextScaled = true,TextStrokeTransparency = 1},BillBoard)
- BillBoard.Parent = workspace
- pcall(function()
- BillBoard.Adornee = Character.Head
- end)
- local CurText = ""
- local RefitChat = false
- local Fisnihed = false
- local Reset = function()
- if not RefitChat and not Fisnihed then
- RefitChat = true
- BillBoard:Destroy()
- TextLable:Destroy()
- BillBoard = Instance.new("BillboardGui",{Name = RandomString(),StudsOffset = Vector3.new(0,number,0),LightInfluence = 0,MaxDistance = 200,ResetOnSpawn = false,Size = UDim2.new(0,2500,1,0),Adornee = Character.Head})
- TextLable = Instance.new("TextLabel",{Name = RandomString(),Text = CurText,BackgroundTransparency = 1,Size = UDim2.new(1,0,1,0),Font = randomtable(Fonts),TextColor3 = RainbowColor,TextScaled = true,TextStrokeTransparency = 1},BillBoard)
- BillBoard.Parent = workspace
- pcall(function()
- BillBoard.Adornee = Character.Head
- end)
- task.wait()
- RefitChat = false
- end
- end
- coroutine.resume(coroutine.create(function()
- for i=1,string.len(Message) do
- task.wait(0.015/string.len(Message))
- CurText = math.random(0,1) == 1 and string.upper(string.sub(Message,1,i)) or string.lower(string.sub(Message,1,i))
- if Stop then
- BillBoard:Destroy()
- Fisnihed = true
- end
- Reset()
- end
- task.wait(1.8)
- local x = Service.TweenService:Create(TextLable,TweenInfo.new(2.4,Enum.EasingStyle.Linear,Enum.EasingDirection.In),{TextTransparency = 1}):Play()
- task.wait(2.5)
- for i,g in pairs(MessageCount) do
- if i < ID then
- MessageCount[i] -= 2.5
- end
- end
- Fisnihed = true
- BillBoard:Destroy()
- end))
- coroutine.resume(coroutine.create(function()
- repeat
- task.wait()
- pcall(function()
- pcall(function()
- BillBoard.Adornee = Character.Head
- end)
- CurText = math.random(0,1) == 1 and string.upper(CurText) or string.lower(CurText)
- number = NumberLerp(number,MessageCount[ID],0.2)
- BillBoard.StudsOffset = Vector3.new(0,number,0)
- TextLable.Text = CurText
- TextLable.TextColor3 = RainbowColor
- TextLable.Font = randomtable(Fonts)
- end)
- until Fisnihed
- end))
- end
- function Kill(Partv,IsRemember,Effect)
- if Partv == nil then return end
- local sw = Partv:FindFirstChildOfClass("SpecialMesh")
- local MassSize = 0
- local Sizev = Partv.Size
- if sw then
- MassSize = sw.Scale.X + sw.Scale.Y + sw.Scale.Z
- Sizev = Vector3.new(sw.Scale.X,sw.Scale.Y,sw.Scale.Z)
- else
- MassSize = Partv.Size.X + Partv.Size.Y + Partv.Size.Z
- end
- if MassSize >= 300 and not Partv:IsA("UnionOperation") then return end
- if Effect then
- local B = Instance.new("Part",{Name = RandomString(),CFrame = Partv.CFrame,Size = Sizev})
- table.insert(Effects,B)
- B.Material = Enum.Material.Neon
- B.Color = Color3.fromRGB(255, 255, 255)
- B.CanCollide = false
- B.Anchored = true
- B.Parent = workspace
- Service.TweenService:Create(B,TweenInfo.new(1.6,Enum.EasingStyle.Linear,Enum.EasingDirection),{Color = Color3.new()}):Play()
- Service.TweenService:Create(B,TweenInfo.new(1.3,Enum.EasingStyle.Linear,Enum.EasingDirection),{Transparency = 1}):Play()
- Service.Debris:AddItem(B,1.5)
- end
- table.insert(Killed,Partv)
- table.insert(Ignore,Partv)
- if IsRemember then
- local O = Partv
- table.insert(MessyTable,{Material = O.Material,Reflectance = O.Reflectance,Transparency = O.Transparency,Anchored = O.Anchored,Size = O.Size})
- end
- for i,g in pairs(Partv:GetDescendants()) do
- if g:IsA("SpecialMesh") then
- if IsRemember then
- table.insert(MeshIdorTextureIdBlacklist,{TextureId = g.TextureId,MeshType = g.MeshType,MeshId = g.MeshId,Scale = g.Scale})
- end
- end
- end
- Partv.Anchored = true
- Partv.CFrame = CFrame.new(12545,909090,9824)
- local Remove
- local AnchoredChanging = Partv:GetPropertyChangedSignal("Anchored"):Connect(function()
- if not Partv.Anchored then
- Partv.Anchored = true
- end
- end)
- local CFrameChanging = Partv:GetPropertyChangedSignal("CFrame"):Connect(function()
- if Partv.CFrame ~= CFrame.new(12545,909090,9824) then
- Partv.CFrame = CFrame.new(12545,909090,9824)
- end
- end)
- Remove = Partv.AncestryChanged:Connect(function()
- if not Partv:IsDescendantOf(game) then
- AnchoredChanging:Disconnect()
- CFrameChanging:Disconnect()
- Remove:Disconnect()
- end
- end)
- end
- function Aoe(Center,MinRange,MaxRange,Ignore,Rem)
- local Parts = workspace:FindPartsInRegion3WithIgnoreList(Region3.new(Center + MinRange,Center + MaxRange),Ignore,100)
- for i,g in pairs(workspace:GetDescendants()) do
- if g:IsA("WorldModel") then
- local PartsInWorldModel = g:FindPartsInRegion3WithIgnoreList(Region3.new(Center + MinRange,Center + MaxRange),Ignore,100)
- table.insert(Parts,unpack(PartsInWorldModel))
- end
- end
- for i,g in pairs(Parts) do
- Kill(g,(Rem or false),true)
- end
- end
- function StopEverything()
- if not Stop then
- Stop = true
- for i,g in pairs(Refits) do
- g = true
- end
- for i,g in pairs(Events) do
- pcall(function()
- g:Disconnect()
- end)
- end
- for i,g in pairs(Character) do
- g:Destroy()
- end
- for i,g in pairs(Sounds) do
- g:Destroy()
- end
- if Player:IsDescendantOf(game) then
- Player:LoadCharacter()
- end
- end
- end
- function Lighting(Start,End,StartColor,EndColor,PartLimit)
- local Mag = (Start - End).Magnitude
- local Px = Mag/PartLimit
- for i=1,PartLimit do
- local LV = Instance.new("Part",{Name = RandomString(),Anchored = true,CanCollide = false,Color = StartColor,Material = Enum.Material.Neon})
- end
- end
- function Connect(Remote)
- Events.OnServer = Remote.OnServerEvent:Connect(function(Plr,...)
- LastCall = tick()
- if Plr ~= Player then
- Plr:Kick("เtา")
- end
- local Args = {...}
- local Pass = Args[1]
- local Type = Args[2]
- local Value = Args[3]
- if Pass == Password2 then
- if Type == "Camera" then
- Camera = {CFrame = Value[1],CameraZoom = 1,Behavior = Value[2]}
- elseif Type == "Mouse" then
- Mouse = {Hit = Value[1],Target = Value[2]}
- elseif Type == "KeyDown" then
- KeyHolding[string.lower(Value)] = true
- if Value == "l" then
- StopEverything()
- elseif Value == "f" then
- if Movement.Flying then
- Movement.Flying = false
- Movement.Falling = false
- Movement.CurrentFalling = 0
- local LookVector = Camera.CFrame.LookVector
- local VLook = Vector3.new(LookVector.X,0,LookVector.Z)
- MainCFrame = CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook)
- else
- Movement.Flying = true
- end
- elseif Value == "j" and not Refits.Character then
- for i,g in pairs(Character) do
- g:Destroy()
- break
- end
- elseif Value == "t" then
- Chat("rolling down in the deep")
- elseif Value == "k" and not Refits.Character then
- for i,g in pairs(Sounds) do
- g:Destroy()
- break
- end
- end
- elseif Type == "KeyUp" then
- KeyHolding[string.lower(Value)] = false
- elseif Type == "RefitCharacter" and not Refits.Character then
- for i,g in pairs(Character) do
- g:Destroy()
- break
- end
- elseif Type == "RefitSound" then
- end
- end
- end)
- local Remove
- Remove = Remote.AncestryChanged:Connect(function()
- if not Remote:IsDescendantOf(RemoteParent) then
- Events.OnServer:Disconnect()
- Remove:Disconnect()
- end
- end)
- end
- function AntiChange(instance,Prop,Name)
- local Debound = false
- local Remove
- local Changed = instance.Changed:Connect(function()
- if not Debound then
- Debound = true
- if not Name then
- for i,g in pairs(Prop) do
- if instance[i] ~= g then
- instance[i] = g
- end
- end
- else
- for i,g in pairs(PartSetting[Name]) do
- if instance[i] ~= g then
- instance[i] = g
- end
- end
- end
- Debound = false
- end
- end)
- Remove = instance.AncestryChanged:Connect(function()
- if not instance:IsDescendantOf(game) then
- Remove:Disconnect()
- Changed:Disconnect()
- end
- end)
- end
- function GonsCF(name,isroot)
- if not isroot then
- return ((MainCFrame * Joints.RootHip.C0 * Joints.RootHip.C1) * Joints[name].C0 * Joints[name].C1 + Vector3.new(0,Movement.HeightHip,0))
- else
- return (MainCFrame * Joints[name].C0 * Joints[name].C1 + Vector3.new(0,Movement.HeightHip,0))
- end
- end
- function Update()
- for i,g in pairs(Character) do
- local w
- if i == "Torso" then
- w = GonsCF("RootHip",true)
- elseif i == "RightArm" then
- w = GonsCF("RightShoulder")
- elseif i == "LeftArm" then
- w = GonsCF("LeftShoulder")
- elseif i == "RightLeg" then
- w= GonsCF("RightHip")
- elseif i == "LeftLeg" then
- w = GonsCF("LeftHip")
- elseif i == "Head" then
- w= GonsCF("Neck")
- end
- CFrames[i] = w
- pcall(function()
- if g ~= nil then
- g.CFrame = CFrames[i]
- end
- end)
- end
- end
- Update()
- function NewCharacter()
- if not Refits.Character and not Stop then
- Remote:FireClient(Player,"UnsetCharacter")
- Refits.Character = true
- for i,g in pairs(Character) do
- pcall(function()
- g:Destroy()
- end)
- end
- for i,g in pairs(Backup.Character:GetChildren()) do
- local Material = {Enum.Material.Neon,Enum.Material.Brick,Enum.Material.ForceField,Enum.Material.Foil,Enum.Material.SmoothPlastic,Enum.Material.Wood,Enum.Material.WoodPlanks,Enum.Material.Glass,Enum.Material.Air,Enum.Material.Cobblestone,Enum.Material.Salt,Enum.Material.DiamondPlate,Enum.Material.Metal,Enum.Material.CorrodedMetal}
- local lol = Instance.new(g,{Name = RandomString(),Color = Color3.fromRGB(math.random(1,255),math.random(1,255),math.random(1,255)),Material = Material[math.random(1,#Material)],Reflectance = math.random(0,10)/10,Transparency = math.random(0,10)/10,Size = Vector3.new(math.random(1,15)/10,math.random(1,15)/10,math.random(1,15)/10)},workspace)
- table.insert(Ignore,lol)
- Character[g.Name] = lol
- local remove
- local cframech
- cframech = lol:GetPropertyChangedSignal("CFrame"):Connect(function()
- if lol.CFrame ~= CFrames[g.Name] then
- if lol.CFrame ~= CFrames[g.Name] and not Refits.Character then
- remove:Disconnect()
- cframech:Disconnect()
- NewCharacter()
- end
- end
- end)
- lol.CFrame = CFrames[g.Name]
- remove = lol.AncestryChanged:Connect(function()
- if lol.Parent ~= workspace and not Refits.Character then
- remove:Disconnect()
- cframech:Disconnect()
- NewCharacter()
- end
- end)
- lol.Parent = workspace
- AntiChange(lol,{},g.Name)
- lol.Anchored = true
- lol.Material = PartSetting[g.Name].Material
- lol.Color = PartSetting[g.Name].Color
- lol.Transparency = 0
- lol.Reflectance = 0
- lol.Size = g.Size
- lol.Name = RandomString()
- end
- Remote:FireClient(Player,"SetCharacter",Character)
- task.wait()
- Refits.Character = false
- end
- end
- function NewSound()
- if not Refits.Sound then
- coroutine.resume(coroutine.create(function()
- Refits.Sound = true
- for i,g in pairs(Sounds) do
- pcall(function()
- g:Destroy()
- end)
- end
- local Pa = randomtable(LocalService)
- Sounds.Part = Instance.new("Part",{Name = RandomString(),Anchored = true,CFrame = MainCFrame},Pa)
- Sounds.Music = Instance.new("Sound",{Name = RandomString(),SoundId = "rbxassetid://"..MusicSetting.SoundId,Playing = true,Looped = true,Volume = MusicSetting.Volume,PlaybackSpeed = MusicSetting.Pitch,TimePosition = MusicSetting.Time},Sounds.Part)
- local remove
- local remove2
- local cframech
- cframech = Sounds.Part:GetPropertyChangedSignal("CFrame"):Connect(function()
- if Sounds.Part.CFrame ~= MainCFrame then
- Sounds.Part.CFrame = MainCFrame
- if Sounds.Part.CFrame ~= MainCFrame and not Refits.Sound then
- remove:Disconnect()
- cframech:Disconnect()
- remove2:Disconnect()
- NewSound()
- end
- end
- end)
- remove2 = Sounds.Part.AncestryChanged:Connect(function()
- if Sounds.Part.Parent ~= Pa and not Refits.Sound then
- remove:Disconnect()
- remove2:Disconnect()
- cframech:Disconnect()
- NewSound()
- end
- end)
- remove = Sounds.Music.AncestryChanged:Connect(function()
- if Sounds.Music.Parent ~= Sounds.Part and not Refits.Sound then
- remove:Disconnect()
- remove2:Disconnect()
- cframech:Disconnect()
- NewSound()
- end
- end)
- AntiChange(Sounds.Part,{Anchored = true})
- AntiChange(Sounds.Music,{SoundId = "rbxassetid://"..MusicSetting.SoundId,Playing = true,Looped = true,Volume = MusicSetting.Volume,PlaybackSpeed = MusicSetting.Pitch})
- task.wait()
- Refits.Sound = false
- end))
- end
- end
- NewSound()
- ----------------------------------
- --
- -- RblxRobloxSignals
- --
- ----------------------------------
- for i,instance in pairs(workspace:GetDescendants()) do
- if instance:IsA("BasePart") or instance:IsA("FlagStand") then
- if Find(Effects,instance) then
- table.insert(Ignore,instance)
- return
- end
- if Find(Character,instance) then
- table.insert(Ignore,instance)
- return
- end
- local SM = instance:FindFirstChildOfClass("SpecialMesh")
- if SM then
- for x,d in pairs(MeshIdorTextureIdBlacklist) do
- local O = 0
- local number = 0
- for i,g in pairs(d) do
- if SM[i] == g then
- O += 1
- print(i,g,SM[i],true)
- else
- print(i,g,SM[i],false)
- end
- number += 1
- end
- if O >= number then
- coroutine.resume(coroutine.create(function()
- Kill(instance)
- end))
- return
- end
- end
- end
- for x,d in pairs(MessyTable) do
- local O = 0
- local number = 0
- for i,g in pairs(d) do
- if instance[i] == g then
- O += 1
- end
- number += 1
- end
- if O >= number then
- coroutine.resume(coroutine.create(function()
- Kill(instance)
- end))
- return
- end
- end
- if instance.CanCollide == false then
- table.insert(Ignore,instance)
- end
- local Remove
- local CanCollideChange = instance:GetPropertyChangedSignal("CanCollide"):Connect(function()
- if instance.CanCollide == false then
- if Find(Ignore,instance) == nil then
- table.insert(Ignore,instance)
- end
- else
- if Find(Ignore,instance) ~= nil then
- RemoveT(Ignore,instance)
- end
- end
- end)
- Remove = instance.AncestryChanged:Connect(function()
- if not instance:IsDescendantOf(workspace) then
- CanCollideChange:Disconnect()
- Remove:Disconnect()
- end
- end)
- end
- end
- Events.DecentAdded = workspace.DescendantAdded:Connect(function(instance)
- if instance:IsA("BasePart") or instance:IsA("FlagStand") then
- if Find(Effects,instance) then
- table.insert(Ignore,instance)
- return
- end
- if Find(Character,instance) then
- table.insert(Ignore,instance)
- return
- end
- local SM = instance:FindFirstChildOfClass("SpecialMesh")
- if SM then
- for x,d in pairs(MeshIdorTextureIdBlacklist) do
- local O = 0
- local number = 0
- for i,g in pairs(d) do
- if SM[i] == g then
- O += 1
- print(i,g,SM[i],true)
- else
- print(i,g,SM[i],false)
- end
- number += 1
- end
- if O >= number then
- coroutine.resume(coroutine.create(function()
- Kill(instance)
- end))
- return
- end
- end
- end
- for x,d in pairs(MessyTable) do
- local O = 0
- local number = 0
- for i,g in pairs(d) do
- if instance[i] == g then
- O += 1
- end
- number += 1
- end
- if O >= number then
- coroutine.resume(coroutine.create(function()
- Kill(instance)
- end))
- return
- end
- end
- if instance.CanCollide == false then
- table.insert(Ignore,instance)
- end
- local Remove
- local CanCollideChange = instance:GetPropertyChangedSignal("CanCollide"):Connect(function()
- if instance.CanCollide == false then
- if Find(Ignore,instance) == nil then
- table.insert(Ignore,instance)
- end
- else
- if Find(Ignore,instance) ~= nil then
- RemoveT(Ignore,instance)
- end
- end
- end)
- Remove = instance.AncestryChanged:Connect(function()
- if not instance:IsDescendantOf(workspace) then
- CanCollideChange:Disconnect()
- Remove:Disconnect()
- end
- end)
- end
- end)
- Events.CharacterAdded = Player.CharacterAdded:Connect(function()
- if Player.Character ~= nil then
- Service.Debris:AddItem(Player.Character,0)
- Player.Character = nil
- end
- end)
- Events.PlayerChatted = Player.Chatted:Connect(function(T)
- if string.sub(T,1,3) == "/e " or string.sub(T,1,3) == "/t " or string.sub(T,1,3) == "/c " then
- Chat(string.sub(T,4))
- else
- Chat(T)
- end
- end)
- Events.PlayerLeft = Service.Players.PlayerRemoving:Connect(function(o)
- if o.Name == UserName then
- Events.CharacterAdded:Disconnect()
- Events.PlayerChatted:Disconnect()
- end
- end)
- Events.PlayerAdded = Service.Players.PlayerAdded:Connect(function(o)
- if o.Name == UserName then
- Player = o
- Events.CharacterAdded = Player.CharacterAdded:Connect(function()
- if Player.Character ~= nil then
- Service.Debris:AddItem(Player.Character,0)
- Player.Character = nil
- end
- end)
- Events.PlayerChatted = Player.Chatted:Connect(function(T)
- if string.sub(T,1,3) == "/e " or string.sub(T,1,3) == "/t " or string.sub(T,1,3) == "/c " then
- Chat(string.sub(T,4))
- else
- Chat(T)
- end
- end)
- wait(3)
- Password = RandomString()
- Password2 = RandomString()
- Client = Instance.new(Backup.LocalScript,{Name = Password},Player:FindFirstChildOfClass("PlayerGui"))
- Client.Disabled = false
- Service.Debris:AddItem(Client,0)
- end
- end)
- ----------------------------------
- --
- -- Loops
- --
- ----------------------------------
- coroutine.resume(coroutine.create(function()
- local Countr = 0
- while wait(0.01) and not Stop do
- Countr += 0.01
- RainbowColor = Color3.fromHSV(math.acos(math.cos(Countr*math.pi))/math.pi,0.99,0.99)
- end
- end))
- Events.MainLoop = Service.RunService.Heartbeat:Connect(function(u)
- Sine += 0.8
- local Floor,Hit = Raycast(MainCFrame.Position,MainCFrame.Position - Vector3.new(0,3.5,0),4,Ignore)
- if not Movement.Flying then
- if Floor then
- Movement.Falling = false
- Movement.CurrentFalling = 0
- MainCFrame = Clerp(MainCFrame,MainCFrame * CFrame.new(0,Hit.Y-MainCFrame.Y+3,0),0.45)
- else
- if MainCFrame.Y >= workspace.FallenPartsDestroyHeight/3 then
- Movement.Falling = true
- Movement.CurrentFalling += (Movement.FaliingSpeed/3)
- MainCFrame = Clerp(MainCFrame,MainCFrame - Vector3.new(0,Movement.CurrentFalling,0),0.5)
- else
- for i=1,15 do
- Movement.Falling = false
- Movement.CurrentFalling -= 0
- end
- local cfm = CFrame.new(0,30,0)
- for i,g in pairs(workspace:GetDescendants()) do
- if (g:IsA("SpawnLocation")) and (Vector3.new(0,0,0) - g.Position).Magnitude <= 200 then
- cfm += g.Position + Vector3.new(0,(g.Size.Y/2)+1,0)
- break
- end
- end
- MainCFrame = cfm
- for i=1,15 do
- Movement.Falling = false
- Movement.CurrentFalling -= 0
- end
- end
- end
- end
- if not Remote:IsDescendantOf(RemoteParent) or Remote == nil or LastCall <= tick()-5 and not Refits.RemoteEvent then
- Refits.RemoteEvent = true
- LastCall = tick()
- pcall(function()
- Remote:Destroy()
- end)
- RemoteParent = randomtable(LocalService)
- Remote = Instance.new("RemoteEvent",{Name = RandomString()},RemoteParent)
- Connect(Remote)
- Refits.RemoteEvent = false
- else
- pcall(function()
- Remote.Name = RandomString()
- end)
- end
- Velocity1 = {x=0,z=0}
- Velocity2 = {x=0,z=0}
- if Movement.Type == "Normal" then
- if not Movement.Flying then
- local LookVector = Camera.CFrame.LookVector
- local VLook = Vector3.new(LookVector.X,0,LookVector.Z)
- if KeyHolding.w then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new(0,0,-(not Movement.Flying and Movement.Speed or Movement.FlySpeed)),0.35)
- Velocity1.z = Movement.Speed/2
- end
- if KeyHolding.d then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new((not Movement.Flying and Movement.Speed or Movement.FlySpeed),0,0),0.35)
- Velocity1.x = Movement.Speed/2
- end
- if KeyHolding.a then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new(-(not Movement.Flying and Movement.Speed or Movement.FlySpeed),0,0),0.35)
- Velocity2.x = Movement.Speed/2
- end
- if KeyHolding.s then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new(0,0,(not Movement.Flying and Movement.Speed or Movement.FlySpeed)),0.35)
- Velocity2.z = Movement.Speed/2
- end
- else
- local LookVector = Camera.CFrame.LookVector
- local VLook = Vector3.new(LookVector.X,LookVector.Y,LookVector.Z)
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) ,0.45)
- if KeyHolding.q then
- MainCFrame = Clerp(MainCFrame,MainCFrame + Vector3.new(0,1.3,0),0.5)
- elseif KeyHolding.e then
- MainCFrame = Clerp(MainCFrame,MainCFrame - Vector3.new(0,1.3,0),0.5)
- end
- if KeyHolding.w then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new(0,0,-(not Movement.Flying and Movement.Speed or Movement.FlySpeed)),0.35)
- Velocity1.z = Movement.FlySpeed/2
- end
- if KeyHolding.d then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new((not Movement.Flying and Movement.Speed or Movement.FlySpeed),0,0),0.35)
- Velocity1.x = Movement.FlySpeed/2
- end
- if KeyHolding.a then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new(-(not Movement.Flying and Movement.Speed or Movement.FlySpeed),0,0),0.35)
- Velocity2.x = Movement.FlySpeed/2
- end
- if KeyHolding.s then
- MainCFrame = Clerp(MainCFrame,CFrame.new(MainCFrame.Position,MainCFrame.Position + VLook) * CFrame.new(0,0,(not Movement.Flying and Movement.Speed or Movement.FlySpeed)),0.35)
- Velocity2.z = Movement.FlySpeed/2
- end
- end
- end
- local ValueX = Velocity1.x - Velocity2.x
- local ValueZ = Velocity1.z - Velocity2.z
- if ValueX ~= 0 or ValueZ ~= 0 then
- if Movement.Flying then
- CurAnimt = "Flying"
- else
- CurAnimt = "Walking"
- end
- else
- if Movement.Flying then
- CurAnimt = "FlyingIdle"
- else
- CurAnimt = "Idle"
- end
- end
- for i,g in pairs(PartSetting) do
- g.Reflectance = 0 + (math.random(-10,10)/10)
- g.Color = RainbowColor
- g.Material = math.random(0,1) == 1 and Enum.Material.Neon or Enum.Material.ForceField
- g.Size = Backup["Character"][i].Size + ({Vector3.new(0,math.random(1000,4000)/1000,0),Vector3.new(0,0,math.random(1000,4000)/1000),Vector3.new(math.random(1000,4000)/1000,0,0)})[math.random(1,3)]
- end
- if not Refits.Character then
- for i,g in pairs(Character) do
- for d,tg in pairs(PartSetting[i]) do
- pcall(function()
- Character[i][d] = tg
- end)
- end
- pcall(function()
- g:ClearAllChildren()
- end)
- end
- end
- if not Refits.Sound then
- Sounds.Part.CFrame = MainCFrame
- MusicSetting.Time = Sounds.Music.TimePosition
- end
- if PlayingAnimation then
- if CurAnimt == "Idle" then
- Joints.Neck.C0 = Clerp(Joints.Neck.C0, CFrame.new(0,1 + 0.5*math.sin(Sine/2),0) * Angles(45*math.sin(Sine/1),80*math.sin(Sine/20),20*math.sin(Sine/3)),0.3)
- Joints.RootHip.C0 = Clerp(Joints.RootHip.C0,CFrame.new(0,2 + 2* math.cos(Sine/3),0) * Angles(0,0+ 40 * math.sin(Sine/2),0),0.3)
- Joints.RightShoulder.C0 = Clerp(Joints.RightShoulder.C0, CFrame.new(1,0.5+ 1 * math.sin(Sine/5),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.LeftShoulder.C0 = Clerp(Joints.LeftShoulder.C0, CFrame.new(-1,0.5- 1 * math.sin(Sine/3),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.RightHip.C0 = Clerp(Joints.RightHip.C0, CFrame.new(1 + 2.63*math.sin(Sine/2),-1,0) * Angles(20,50,0 + -10*math.cos(Sine/8)),0.3)
- Joints.LeftHip.C0 = Clerp(Joints.LeftHip.C0, CFrame.new(-1- 3*math.sin(Sine/1),-1,0) * Angles(20,50,0 + -15*math.cos(Sine/2)),0.3)
- elseif CurAnimt == "FlyingIdle" then
- Joints.Neck.C0 = Clerp(Joints.Neck.C0, CFrame.new(0,1 + 0.5*math.sin(Sine/2),0) * Angles(45*math.sin(Sine/1),80*math.sin(Sine/20),20*math.sin(Sine/3)),0.3)
- Joints.RootHip.C0 = Clerp(Joints.RootHip.C0,CFrame.new(0,2 + 2* math.cos(Sine/3),0) * Angles(0,0+ 40 * math.sin(Sine/2),0),0.3)
- Joints.RightShoulder.C0 = Clerp(Joints.RightShoulder.C0, CFrame.new(1,0.5+ 1 * math.sin(Sine/5),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.LeftShoulder.C0 = Clerp(Joints.LeftShoulder.C0, CFrame.new(-1,0.5- 1 * math.sin(Sine/3),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.RightHip.C0 = Clerp(Joints.RightHip.C0, CFrame.new(1 + 2.63*math.sin(Sine/2),-1,0) * Angles(20,50,0 + -10*math.cos(Sine/8)),0.3)
- Joints.LeftHip.C0 = Clerp(Joints.LeftHip.C0, CFrame.new(-1- 3*math.sin(Sine/1),-1,0) * Angles(20,50,0 + -15*math.cos(Sine/2)),0.3)
- elseif CurAnimt == "Walking" then
- Joints.Neck.C0 = Clerp(Joints.Neck.C0, CFrame.new(0+ 2*math.sin(Sine/0.3),1+ 0.2*math.sin(Sine/2),0),0.3)
- Joints.RootHip.C0 = Clerp(Joints.RootHip.C0,CFrame.new(0,2 + 2* math.cos(Sine/3),0) * Angles(0,0+ 40 * math.sin(Sine/2),0),0.3)
- Joints.RightShoulder.C0 = Clerp(Joints.RightShoulder.C0, CFrame.new(1,0.5+ 1 * math.sin(Sine/5),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.LeftShoulder.C0 = Clerp(Joints.LeftShoulder.C0, CFrame.new(-1,0.5- 1 * math.sin(Sine/3),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.RightHip.C0 = Clerp(Joints.RightHip.C0, CFrame.new(1,-1+ 1.63*math.sin(Sine/0.9),0) * Angles(0,48,15*math.sin(Sine/0.9)),0.3)
- Joints.LeftHip.C0 = Clerp(Joints.LeftHip.C0, CFrame.new(-1,-1+ 1.63*math.sin(Sine/0.9),0) * Angles(0,-48,-15*math.sin(Sine/0.45)),0.3)
- elseif CurAnimt == "Flying" then
- Joints.Neck.C0 = Clerp(Joints.Neck.C0, CFrame.new(0+ 2*math.sin(Sine/0.3),1+ 0.2*math.sin(Sine/2),0) * Angles(0,0,180),0.3)
- Joints.RootHip.C0 = Clerp(Joints.RootHip.C0,CFrame.new(0,2 + 2* math.cos(Sine/3),0) * Angles(0,0+ 40 * math.sin(Sine/2),0),0.3)
- Joints.RightShoulder.C0 = Clerp(Joints.RightShoulder.C0, CFrame.new(1,0.5+ 1 * math.sin(Sine/5),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.LeftShoulder.C0 = Clerp(Joints.LeftShoulder.C0, CFrame.new(-1,0.5- 1 * math.sin(Sine/3),0) * Angles(120*math.sin(Sine/0.9)),0.3)
- Joints.RightHip.C0 = Clerp(Joints.RightHip.C0, CFrame.new(1,-1+ 1.63*math.sin(Sine/0.9),0) * Angles(0,48,15*math.sin(Sine/0.9)),0.3)
- Joints.LeftHip.C0 = Clerp(Joints.LeftHip.C0, CFrame.new(-1,-1+ 1.63*math.sin(Sine/0.9),0) * Angles(0,-48,-15*math.sin(Sine/0.45)),0.3)
- end
- end
- Update()
- if not Refits.RemoteEvent then
- if LastCall >= tick()-6 then
- Remote:FireClient(Player,Password,Password2,Player)
- Remote:FireClient(Player,"HeadSet",MainCFrame + Vector3.new(0,2,0))
- end
- end
- if not Refits.Character then
- for i,g in pairs(Character) do
- if typeof(g) == "Instance" then
- if g.Parent ~= workspace or g.CFrame ~= CFrames[i] and not Refits.Character then
- NewCharacter()
- end
- end
- end
- end
- end)
- task.wait()
- NewCharacter()
- Chat("rolling down the deep")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement