text stringlengths 52 99.8k |
|---|
--[[ Roblox Services ]]
--
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local UserGameSettings = UserSettings():GetService("UserGameSettings")
|
--[[Transmission]]
Tune.TransModes = {"Auto", "Semi", "Manual"} --[[
[Modes]
"Auto" : Automatic shifting
"Semi" : Clutchless manual shifting, dual clutch transmission
"Manual" : Manual shifting with clutch
>Include within brackets
eg: {"Semi"} or {"Auto", "Manual"}
>First mode is d... |
--[[ The ClickToMove Controller Class ]]
--
local KeyboardController = require(script.Parent:WaitForChild("Keyboard"))
local ClickToMove = setmetatable({}, KeyboardController)
ClickToMove.__index = ClickToMove
function ClickToMove.new(CONTROL_ACTION_PRIORITY)
local self = setmetatable(KeyboardController.new(CONTROL_... |
--Engine Curve
local HP=_Tune.Horsepower/100
local HP_T=((_Tune.Horsepower*((_TPsi)*(_Tune.T_Efficiency/10))/7.5)/2)/100
local HP_S=((_Tune.Horsepower*((_SPsi)*(_Tune.S_Efficiency/10))/7.5)/2)/100
local Peak=_Tune.PeakRPM/1000
local Sharpness=_Tune.PeakSharpness
local CurveMult=_Tune.CurveMult
local EQ=_Tune.EqPoin... |
--- Code that will be run when the block is added to a InfoOverlay. Used to customize and edit the appearance or add functionality.
return function(blockGui, blockName, ...)
local description = ...
blockGui.desc.Text = description
end
|
-- These controllers handle only walk/run movement, jumping is handled by the
-- TouchJump controller if any of these are active
local ClickToMove = require(script:WaitForChild("ClickToMoveController"))
local TouchThumbstick = require(script:WaitForChild("TouchThumbstick"))
local TouchThumbpad = require(script:WaitFo... |
-- return to idle if finishing an emote
if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
oldAnim = "idle"
end
currentAnim = ""
currentAnimInstance = nil
if (currentAnimKeyframeHandler ~= nil) then
currentAnimKeyframeHandler:disconnect()
end
if (currentAnimTrack ~= nil) then
currentAnimTrack:Sto... |
-- Preload animations
function playAnimation(animName, transitionTime, humanoid)
local roll = math.random(1, animTable[animName].totalWeight)
local origRoll = roll
local idx = 1
while (roll > animTable[animName][idx].weight) do
roll = roll - animTable[animName][idx].weight
idx = idx + 1
end
|
--Still Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chill till Chil... |
--
local characterClone = require(game.ReplicatedStorage.CharacterClone)
local clones = {}
local function onCharacter(character)
if (character) then
character.Archivable = true
character:WaitForChild("Humanoid") -- weird bug
local cloneA = characterClone.new(character)
local cloneB = characterClone.new(... |
--
local u_categories = options.unicodeData and require(script:WaitForChild("_unicodechar_category"));
local chr_scripts = options.unicodeData and require(script:WaitForChild("_scripts"));
local xuc_chr = options.unicodeData and require(script:WaitForChild("_xuc"));
local proxy = setmetatable({ }, { __mode = 'k' });
... |
-- Format params: paramName, expectedType, actualType
local ERR_INVALID_TYPE = "Invalid type for parameter '%s' (Expected %s, got %s)"
|
-- Format params: methodName, ctorName
local ERR_NOT_INSTANCE = "Cannot statically invoke method '%s' - It is an instance method. Call it on an instance of this class created via %s"
|
-- slash1
Attack(target,fleshDamage)
else
Move(target.Character.PrimaryPart.Position)
end
else
target,targetType = nil,nil
end
wait(.3)
end
elseif targetType == "Model" then
while target and target.PrimaryPart and target:IsDescendantOf(workspace) and lastLock == sessionLock do
Move(target.PrimaryPart.Position)
local... |
-- Remove the default loading screen
ReplicatedFirst:RemoveDefaultLoadingScreen()
local tweenInfo = TweenInfo.new(4, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
local tween = TweenService:Create(loadingRing, tweenInfo, {Rotation = 360})
tween:Play()
wait(12) -- Force screen to appear for a minimum number... |
--[[
Calls awaitStatus internally, returns (isResolved, values...)
]]
function Promise.prototype:await()
return awaitHelper(self:awaitStatus())
end
local function expectHelper(status, ...)
if status ~= Promise.Status.Resolved then
error((...) == nil and "Expected Promise rejected with no value." or (...), 3)
e... |
----------------------------------------------------------------------------------------------------
--------------------=[ CFRAME ]=--------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
,EnableHolster... |
----------------------------------------------------------------------------------------------------
-----------------=[ RECOIL & PRECISAO ]=------------------------------------------------------------
----------------------------------------------------------------------------------------------------
,VRecoil = {20... |
--------------------[ MATH FUNCTIONS ]------------------------------------------------
function Map(Val, fromLow, fromHigh, toLow, toHigh)
return (Val - fromLow) * (toHigh - toLow) / (fromHigh - fromLow) + toLow
end
function numLerp(A, B, Alpha)
return A + (B - A) * Alpha
end
function RAND(Min, Max, Accuracy)
r... |
--- RUNTIME
Players.PlayerAdded:Connect(PlayerAdded)
Players.PlayerRemoving:Connect(PlayerRemoving)
Remote.OnServerEvent:Connect(Fire)
|
-- Remove with FFlagUserClickToMoveFollowPathRefactor
local function HandleDirectMoveTo(hitPt, myHumanoid)
if myHumanoid then
if myHumanoid.Sit then
myHumanoid.Jump = true
end
myHumanoid:MoveTo(hitPt)
end
local endWaypoint = ClickToMoveDisplay.CreateEndWaypoint(hitPt)
ExistingIndicator = endWaypoint
co... |
-------- OMG HAX
r = game:service("RunService")
local damage = 5
local slash_damage = 16
local lunge_damage = 35
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
... |
--//Setup//--
local WindLines = require(script.WindLines)
local WindShake = require(script.WindShake)
local WindSpeed = 20
local WindDirection = Vector3.new(1, 0, -0.15)
local WindShakeSettings = {
WindPower = 3,
WindSpeed = WindSpeed,
WindDirection = WindDirection
}
local WindLinesSettings = {
WindDirection =... |
--!strict
--[=[
@function removeValue
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to remove the value from.
@param value V -- The value to remove.
@return {[K]: V} -- The dictionary without the given value.
Removes the given value from the given dictionary.
```lua
local dictionary... |
-- RANK, RANK NAMES & SPECIFIC USERS
Ranks = {
{5, "Owner", };
{4, "HeadAdmin", {"",0}, };
{3, "Admin", {"",0}, };
{2, "Mod", {"",0}, };
{1, "VIP", {"",0}, };
{0, "NonAdmin", };
};
|
--[[ Copyright (C)MrCoolIsCoolOhYeah SmartSirens 2014-2015, sponsering; Klaxon signals, Federal Signal,
Whelen, Sentry, Sound master, ACA, ASC, CLM. Credit for 70W, Trucksrule12, Soapy92 for scripts.
--]]
|
-- Get all the frames inside the AppManager frame
local windows = {}
for _, child in ipairs(appManager:GetChildren()) do
if child:IsA("Frame") then
windows[child.Name] = child
end
end
|
--------RIGHT DOOR --------
game.Workspace.doorright.l12.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
game.Workspace.doorright.l21.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
game.Workspace.doorright.l33.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
game.Works... |
-- Local Functions
local function OnFetchConfiguration(callingClient, configToFetch)
FetchConfiguration:FireClient(callingClient, configToFetch, Configurations[configToFetch])
end
FetchConfiguration.OnServerEvent:connect(OnFetchConfiguration)
return Configurations
|
--TheNexusAvenger
--Runs the server-side rocket launcher.
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local EquipSound = Handle:WaitForChild("EquipSound")
local ReloadSound = Handle:WaitForChild("ReloadSound")
local Resources = require(script.Parent:WaitForChild("Resources"))
local RocketC... |
-- rbxthumb://type=Asset&id=00000000&w=420&h=420 -- use 150x150 for less memory
local function makeButton(v)
local button; button = Button.new({
Name = v.Name,
Icon = "rbxthumb://type=Asset&id=" .. v.Id .. "&w=150&h=150",
AssetId = v.Id,
ActivatedCallback = function(inputObject)
remoteEvent:FireServer("we... |
-- Management of which options appear on the Roblox User Settings screen
do
local PlayerScripts = Players.LocalPlayer:WaitForChild("PlayerScripts")
PlayerScripts:RegisterTouchCameraMovementMode(Enum.TouchCameraMovementMode.Default)
PlayerScripts:RegisterTouchCameraMovementMode(Enum.TouchCameraMovementMode.Follow)... |
--[[Brakes]]
Tune.ABSEnabled = true -- Implements ABS
Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS)
Tune.FBrakeForce = 2500 -- Front brake force
Tune.RBrakeForce = 1500 -- Rear brake force
Tune.PBrakeForce = 5000 -- Handbrake force
Tune.FLgcyBForce = 15000 -- Front b... |
--[[Driver Handling]]
--Driver Sit
car.DriveSeat.ChildAdded:connect(function(child)
if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
--Distribute Client Interface
local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
car.Dri... |
-----------------------
if f2==1 then f2=0
local b=script.b:Clone()
b.Parent=script.Parent.PS.bu
b.Position=UDim2.new(0,po2.X,0,po2.Y+6)
b.BackgroundColor3=p2.BackgroundColor3
b.inf.Value=Vector3.new(-1,y2)
end
if z2==0 and s2==0 then
po2=po2+Vector3.new(x2,y2)/3 end
po2=po2.X<44 and Vector3.new(44,po2.Y)or po2
... |
--//Value Info//--
script.Assets.Screen.StockUI.VehicleName.Text = VehicleName
vholder = Instance.new("Folder")
vholder.Name = "Storage"
vholder.Parent = script.Assets.Screen
vexternal = Instance.new("Folder")
vexternal.Name = "Storage"
vexternal.Parent = script.Parent
vname = Instance.new("StringValue")
vname.P... |
--Make NPC jump
local function setJumpState(self)
pcall(function()
if self._humanoid:GetState() ~= Enum.HumanoidStateType.Jumping and self._humanoid:GetState() ~= Enum.HumanoidStateType.Freefall then
self._humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
end
|
-- The maximum distance the can can shoot, this value should never go above 1000
local Range = 400 |
-- Decompiled with the Synapse X Luau decompiler.
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Radio:FireServer(script.Parent.Parent.id.Text, script.Parent.Parent.vol.Text, script.Parent.Parent.pitch.Text);
end);
|
-----------------
--| Constants |--
-----------------
local BLAST_RADIUS = 333
local BLAST_PRESSURE = 7500000
|
--[[
Function called when leaving the state
]]
function PlayerCamera.onLeave(stateMachine, serverPlayer, event, from, to)
for _, connection in pairs(connections) do
connection:Disconnect()
end
end
return PlayerCamera
|
-- Captions
local captionContainer = Instance.new("Frame")
captionContainer.Name = "CaptionContainer"
captionContainer.BackgroundTransparency = 1
captionContainer.AnchorPoint = Vector2.new(0, 0)
captionContainer.ClipsDescendants = true
captionContainer.ZIndex = 30
captionContainer.Visible = true
captionContainer.Pare... |
--------------------------------------------------------------------
if brakewhistle == true then
mouse.KeyDown:connect(function(key)
if key == camkey and enabled == false then
local seat = car.DriveSeat
local effect = script.soundeffect:Clone()
effect.Name = "soundeffectCop"
effect.Parent = seat.Brak... |
-- CONSTRUCTORS
function Icon.new()
local self = {}
setmetatable(self, Icon)
-- Maids (for autocleanup)
local maid = Maid.new()
self._maid = maid
self._hoveringMaid = maid:give(Maid.new())
self._dropdownClippingMaid = maid:give(Maid.new())
self._menuClippingMaid = maid:give(Maid.new())
-- These are the Gui... |
--[[
ROBLOX TODO: add default generic param when possible
original code:
export type RawMatcherFn<T extends MatcherState = MatcherState> = {
]]
-- ROBLOX FIXME: add Symbol to the definition: [INTERNAL_MATCHER_FLAG]: boolean?
export type RawMatcherFn<T> = any |
--// Wrap
log("Wrap")
local service_Wrap = service.Wrap
local service_UnWrap = service.UnWrap
for i,val in pairs(service) do if type(val) == "userdata" then service[i] = service_Wrap(val, true) end end
|
-- Core connections
Connections = {};
function ClearConnections()
-- Clears and disconnects temporary connections
for Index, Connection in pairs(Connections) do
Connection:Disconnect();
Connections[Index] = nil;
end;
end;
function InitializeUI()
-- Sets up the UI
-- Ensure UI has not yet been initialized
... |
-- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
local anim = animTable[animName][idx].anim
-- load it to the humanoid; get AnimationTrack
toolAnimTrack = humanoid:LoadAnimation(anim)
-- play the animation
toolAnimTrack:Play(transitionTime)
toolAnimName = animName
currentToolAnimKeyf... |
--Click/Touch
local cmdBar = main.gui.CmdBar
local textBox = cmdBar.SearchFrame.TextBox
local arrowKeys = {[Enum.KeyCode.Left] = true, [Enum.KeyCode.Right] = true, [Enum.KeyCode.Up] = true, [Enum.KeyCode.Down] = true}
local movementKeys = {[Enum.KeyCode.Left]="Left",[Enum.KeyCode.Right]="Right",[Enum.KeyCode.Up]="For... |
-- Connection class
local Connection = {}
Connection.__index = Connection
function Connection.new(signal, fn)
return setmetatable({
_connected = true,
_signal = signal,
_fn = fn,
_next = false,
}, Connection)
end
function Connection:Disconnect()
self._connected = false
-- Unhook the node, but DON'T cle... |
--[[Manage Plugins]]
script.Parent["A-Chassis Interface"].Car.Value=car
for i,v in pairs(script.Parent.Plugins:GetChildren()) do
for _,a in pairs(v:GetDescendants()) do
if a:IsA("RemoteEvent") or a:IsA("RemoteFunction") then
a.Parent=car
for _,b in pairs(a:GetChildren()) do
if b:IsA("Script") ... |
--/////////////////////////////////////////////////////////--
local dZIndex = 2
local dScrollBar = 4
local dBackground = Color3.new(31/255, 31/255, 31/255)
local dTransparency = 0
local dPixelSize = 0
local dBorder = Color3.new(27/255,42/255,53/255)
local dPosition = UDim2.new(0,5,0,5)
local dCanvasSize = UD... |
--------RIGHT DOOR --------
game.Workspace.doorright.l11.BrickColor = BrickColor.new(106)
game.Workspace.doorright.l23.BrickColor = BrickColor.new(106)
game.Workspace.doorright.l32.BrickColor = BrickColor.new(106)
game.Workspace.doorright.l41.BrickColor = BrickColor.new(106)
game.Workspace.doorright.l53.BrickColor = ... |
-- if (Health- ultimavida < 0) then
-- Sang.Value = Sang.Value + (Health - ultimavida)*((configuracao.BloodMult)*(configuracao.BloodMult)*(configuracao.BloodMult))
-- Dor.Value = math.clamp(Dor.Value+ (Health - ultimavida)*(-configuracao.PainMult), 0, 300)
-- MLs.Value = MLs.Value + ((ultimavida - Health) * (configu... |
-- Set local variables
local player = players:GetPlayerFromCharacter(script.Parent)
local character = player.Character or player.CharacterAdded:wait()
local humanoid = character.Humanoid
|
--Collision checking--
core.spawn(function()
while myHuman.Health > 0 do
if not criticalAction and engineRunning then
flight.checkCollisions()
end
wait()
end
end)
|
-- Player's tank GUI
GUI = script.Parent.Parent.Parent.PlayerGui.TankGUI;
GUI.HP.Hitpoints.Text = parts.Parent:findFirstChild("Damage").Value
local Hull = parts.Parent:findFirstChild("Damage")
if Hull.Value<0 then
GUI.HP.Hitpoints.Text = "DISABLED"
end
local MGDamage = math.random(40,80)
braking = false;
firi... |
--[[ Constants ]]
--
local ZERO_VECTOR3 = Vector3.new(0,0,0)
local TOUCH_CONTROLS_SHEET = "rbxasset://textures/ui/Input/TouchControlsSheetV2.png"
local DYNAMIC_THUMBSTICK_ACTION_NAME = "DynamicThumbstickAction"
local DYNAMIC_THUMBSTICK_ACTION_PRIORITY = Enum.ContextActionPriority.High.Value
local MIDDLE_TRANSPARENCI... |
-- This function merges the Packages folder from a DevModule into a shared
-- location. Until we have an improved package implementation, we need to
-- manually dedupe our libraries to cut down on bloat
local function dedupePackages(packages: Folder)
local packageStorage = getPackageStorage()
for _, package in ipa... |
--[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]
--
local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
local AdvancedRespawnScript=script;
repeat Wait(0)until... |
--------------------------------------------------------------------
if horn == true then
mouse.KeyDown:connect(function(key)
if key == camkey and enabled == false then
local seat = car.DriveSeat
local effect = script.soundeffect:Clone()
effect.Name = "soundeffectCop"
effect.Parent = seat.Horn
els... |
--this function runs when players join your game
game.Players.PlayerAdded:Connect(function(player)
DataManger.AddPlayerData(player)
--this function runs when your player is added to the world, it also runs again when you reset
player.CharacterAdded:Connect(function(char)
--this is called the player humanoid, ... |
--EDIT BELOW----------------------------------------------------------------------
settings.PianoSoundRange = 50
settings.KeyAesthetics = true
settings.PianoSounds = {
"233836579",
"233844049",
"233845680",
"233852841",
"233854135",
"233856105"
} |
-- Input related functions
function ShoulderCamera:applyInput(yaw, pitch)
local yInvertValue = UserGameSettings:GetCameraYInvertValue()
self.yaw = self.yaw + yaw
self.pitch = math.clamp(self.pitch + pitch * yInvertValue, self.minPitch, self.maxPitch)
end
function ShoulderCamera:processGamepadInput(dt)
local gam... |
--------AUDIENCE BACK LEFT--------
game.Workspace.audiencebackleft1.Part1.BrickColor = BrickColor.new(106)
game.Workspace.audiencebackleft1.Part2.BrickColor = BrickColor.new(106)
game.Workspace.audiencebackleft1.Part3.BrickColor = BrickColor.new(106)
game.Workspace.audiencebackleft1.Part4.BrickColor = BrickColor.new... |
--// Probabilities
JamChance = 0; -- This is percent scaled. For 100% Chance of jamming, put 100, for 0%, 0; and everything inbetween
TracerChance = 60; -- This is the percen scaled. For 100% Chance of showing tracer, put 100, for 0%, 0; and everything inbetween
|
--[[
AnimateKey(note1,px,py,pz,ox,oy,oz,Time)
--note1(1-61), position x, position y, position z, orientation x, orientation y, orientation z, time
local obj = --object or gui or wahtever goes here
local Properties = {}
Properties.Size = UDim2.new()
Tween(obj,Properties,2,true,Enum.EasingStyle.Linear,Enum.EasingDirecti... |
--[[Weight and CG]]
Tune.Weight = 250 -- Total weight (in pounds)
Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
--[[Width]] 6 ,
--[[Height]] 3.5 ,
--[[Length]] 14 }
Tune.WeightDist = 1 -- Weight distribution (0 - on rear wheels, 100 - on front wheels,... |
---Creator function return object keys
local KEY_BASE_FRAME = "BaseFrame"
local KEY_BASE_MESSAGE = "BaseMessage"
local KEY_UPDATE_TEXT_FUNC = "UpdateTextFunction"
local KEY_GET_HEIGHT = "GetHeightFunction"
local KEY_FADE_IN = "FadeInFunction"
local KEY_FADE_OUT = "FadeOutFunction"
local KEY_UPDATE_ANIMATION = "Update... |
-- Function to bind to render stepped if player is on PC
local function pcFrame()
frame(mouse.Hit.p)
end
|
--Script:
Button.Activated:Connect(function()
if MarketplaceService:UserOwnsGamePassAsync(PlayerId, Gamepass.Value) then
--FireMessage
Message.Properties.Type.ItemAlreadyOwn.Value = true
Message.Properties.FireMessage.Value = true
else
if GamepassInfo["IsForSale"] == true then
MarketplaceService:Prompt... |
--OptionsManager
local OptionsFrame = Frames.OptionsFrame
local FrameBase = OptionsFrame.BaseFrame
local OptionsFrames = OptionsFrame.Frames
local OptionFrameName = nil
local OptionFrameToOpen = nil
local OptionFrameIsOpened = false
local OptionDebounce = false
local function OptionOpenGUI()
for i = 1,0.6,-0.025 do... |
--[=[
An already dead brio which may be used for identity purposes.
```lua
print(Brio.DEAD:IsDead()) --> true
```
@prop DEAD Brio
@within Brio
]=]
Brio.DEAD = Brio.new()
Brio.DEAD:Kill()
return Brio
|
--Made by Shea from RTWS on YouTube - If you haven't already, make sure to check out my tutorial on NPC animations--
|
-- shorthands
local v3 = Vector3.new
local NSK010 = NumberSequenceKeypoint.new(0, 1, 0)
local NSK110 = NumberSequenceKeypoint.new(1, 1, 0)
local volumeScanGrid = {} -- Pre-generate grid used for raining area distance scanning
for _,v in pairs(RAIN_VOLUME_SCAN_GRID) do
table.insert(volumeScanGrid, v * RAIN_V... |
-- Preload animations
function playAnimation(animName, transitionTime, humanoid)
local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
if (animName ~= currentAnim and not idleFromEmote) then
if (currentAnimTrack ~= nil) then
currentAnimTrack:Stop(transitionTime)
currentAnimTrac... |
-- Make all the Hotbar Slots
for i = 1, NumberOfHotbarSlots do
local slot = MakeSlot(HotbarFrame, i)
slot.Frame.Visible = false
if not LowestEmptySlot then
LowestEmptySlot = slot
end
end
InventoryIcon.selected:Connect(function()
if not GuiService.MenuIsOpen then
BackpackScript.OpenClose()
end
end)
Invento... |
--Turbo Gauge GUI--
local fix = 0
script.Parent.Parent.Values.RPM.Changed:connect(function()
script.Parent.BAnalog.Visible = BoostGaugeVisible
script.Parent.Background.Visible = BoostGaugeVisible
script.Parent.DontTouch.Visible = BoostGaugeVisible
script.Parent.Num.Visible = BoostGaugeVisible
local turb... |
-- Create component
local Notifications = Roact.PureComponent:extend(script.Name)
function Notifications:init()
self.Active = true
self:setState({
ShouldWarnAboutHttpService = false;
ShouldWarnAboutUpdate = false;
})
fastSpawn(function ()
local IsOutdated = self.props.Core.Is... |
--- Helper method that registers types from all module scripts in a specific container.
function Registry:RegisterTypesIn (container)
for _, object in pairs(container:GetChildren()) do
if object:IsA("ModuleScript") then
object.Parent = self.Cmdr.ReplicatedRoot.Types
require(object)(self)
else
self:Regi... |
-- Checks for conditions for enabling/disabling the active controller and updates whether the active controller is enabled/disabled
function ControlModule:UpdateActiveControlModuleEnabled()
-- helpers for disable/enable
local disable = function()
self.activeController:Enable(false)
if self.moveFunction then
... |
-- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
local anim = animTable[animName][idx].anim
if (toolAnimInstance ~= anim) then
if (toolAnimTrack ~= nil) then
toolAnimTrack:Stop()
toolAnimTrack:Destroy()
transitionTime = 0
end
-- load it to the humanoid; get AnimationT... |
--// Firemode Settings
CanSelectFire = true;
BurstEnabled = false;
SemiEnabled = true;
AutoEnabled = true;
BoltAction = false;
ExplosiveEnabled = false;
|
--[[ Constants ]]
--
local ZERO_VECTOR3 = Vector3.new(0,0,0)
local TOUCH_CONTROLS_SHEET = "rbxasset://textures/ui/Input/TouchControlsSheetV2.png"
local DYNAMIC_THUMBSTICK_ACTION_NAME = "DynamicThumbstickAction"
local DYNAMIC_THUMBSTICK_ACTION_PRIORITY = Enum.ContextActionPriority.High.Value
local MIDDLE_TRANSPARENCI... |
--------END LIGHT SET 1--------
--------DJ BACKLIGHT--------
game.Workspace.djbacklight.l1.BrickColor = BrickColor.new(194)
game.Workspace.djbacklight.l2.BrickColor = BrickColor.new(194)
game.Workspace.djbacklight.l3.BrickColor = BrickColor.new(194)
game.Workspace.djbacklight.l4.BrickColor = BrickColor.new(194)
|
--script.Parent.Parent.Parent.Sound.Idle:Play()
--script.Parent.Parent.Parent.Sound.Grab:Stop()
script.Disabled = true
|
-- Loop through all players when model added
for _, player in pairs(game.Players:GetPlayers()) do
addScriptAtRespawn(player)
addMyLocalScript(player)
end
|
--
leftshoulderclone = leftshoulder:Clone()
leftshoulderclone.Name = "LeftShoulderClone"
leftshoulderclone.Parent = torso
leftshoulderclone.Part0 = torso |
-- / Workspace Assets / --
local GameHolder = game.Workspace.GameHolder
local GamemodesMapHolder = GameHolder.GamemodesMapHolder
local GameAssetsHolder = GameHolder.GameAssetsHolder
local Lobby = game.Workspace.Lobby
|
--<模å—>--
local BezierCurve = {}
function BezierCurve.Lerp(Start , End , Time)
if typeof(Start) ~= "Vector3" then
Start = Start.Position
end
if typeof(End) ~= "Vector3" then
End = End.Position
end
return Start + (End - Start) * Time
end
function BezierCurve.GetFrameByDistance(Start , End , Multiply)... |
--// All global vars will be wiped/replaced except script
--// All guis are autonamed codeName..gui.Name
return function(data, env)
if env then
setfenv(1, env)
end
local player = service.Players.LocalPlayer
local playergui = player.PlayerGui
local gui = script.Parent.Parent
local frame = gui.Frame
local t... |
-- Called when the player's character is added.
-- Sets up mirroring of the player's head for first person.
function FpsCamera:OnCharacterAdded(character)
local mirrorBin = self.MirrorBin
if mirrorBin then
mirrorBin:ClearAllChildren()
mirrorBin.Parent = nil
end
self.HeadMirrors = {}
for _,desc in pair... |
--[=[
Service bags handle recursive initialization of services, and the
retrieval of services from a given source. This allows the composition
of services without the initialization of those services becoming a pain,
which makes refactoring downstream services very easy.
This also allows multiple copies of a serv... |
--edit the below function to execute code when this response is chosen OR this prompt is shown
--player is the player speaking to the dialogue, and dialogueFolder is the object containing the dialogue data
return function(player, dialogueFolder)
dialogueFolder.Parent.OrbThrow.Use:Fire(player.Character)
delay(4,func... |
-- Initialization
game.StarterGui.ResetPlayerGuiOnSpawn = false
ScreenGui.Parent = Player.PlayerGui
|
--// All global vars will be wiped/replaced except script
--// All guis are autonamed client.Variables.CodeName..gui.Name
--// Be sure to update the console gui's code if you change stuff
return function(data)
local gui = script.Parent.Parent
local playergui = service.PlayerGui
local localplayer = service.Players... |
--[[
Manages batch updating of tween objects.
]]
local RunService = game:GetService("RunService")
local Package = script.Parent.Parent
local Types = require(Package.Types)
local lerpType = require(Package.Animation.lerpType)
local getTweenRatio = require(Package.Animation.getTweenRatio)
local updateAll = require(P... |
--[[**
Calls each Object's `MethodName` (or calls the Object if `MethodName == true`) and removes them from the Janitor. Also clears the namespace. This function is also called when you call a Janitor Object (so it can be used as a destructor callback).
@returns [t:void]
**--]]
function Janitor.__index:Cleanup()
i... |
----------------------------------
------------VARIABLES-------------
----------------------------------
InputService = game:GetService("UserInputService")
Mouse = Player:GetMouse()
TextBoxFocused = false
FocusLost = false
ShiftLock = false
|
-- loop to handle timed state transitions and tool animations
while Figure.Parent~=nil do
local _, time = wait(0.1)
move(time)
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.