text stringlengths 52 99.8k |
|---|
--Left lean
XR15RightLegLeftLean = 0
YR15RightLegLeftLean = -.2
ZR15RightLegLeftLean = .3
R15RightKneeLeftLean = -.3
XR15RightArmLeftLean = .5
YR15RightArmLeftLean = -.3
ZR15RightArmLeftLean = .2
R15RightElbowLeftLean = .2
XR15LeftLegLeftLean = .5
YR15LeftLegLeftLean = .35
ZR15LeftLegLeftLean = .55
R15LeftKneeLeftL... |
-- Module Scripts
local ModuleScripts = ServerScriptService:FindFirstChild("ModuleScripts")
local RaceModules = ModuleScripts:FindFirstChild("RaceModules")
local ReplicatedModuleScripts = ReplicatedStorage:FindFirstChild("ModuleScripts")
local GameSettings = require(RaceModules:FindFirstChild("GameSettings"))
local L... |
--[[
]]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Marketplace = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local AvatarEditor = ReplicatedStorage.AvatarEditor
local Spring = require(AvatarEditor.Shared.Util.Spring)
local Maid = require(AvatarEditor... |
--// Delcarables
local newRope = nil
local newDir = nil
local new = nil
local newAtt0 = nil
local newAtt1 = nil
local isHeld = false
local active = false
local TS = game:GetService("TweenService")
|
-- declarations
local toolAnim = "None"
local toolAnimTime = 0
local jumpAnimTime = 0
local jumpAnimDuration = 0.3
local toolTransitionTime = 0.1
local fallTransitionTime = 0.3
local jumpMaxLimbVelocity = 0.75
|
-- model by CatLeoYT XD --
local Tool = script.Parent
local speedforsmoke = 10
local CoilSound = Tool.Handle:WaitForChild("CoilSound")
function MakeSmoke(HRP, Human)
smoke=Instance.new("Smoke")
smoke.Enabled=HRP.Velocity.magnitude>speedforsmoke
smoke.RiseVelocity=2
smoke.Opacity=.25
smoke.Size=.5
smoke.Pare... |
--Wheelie tune
local WheelieD = 5
local WheelieTq = 90
local WheelieP = 10
local WheelieMultiplier = 1.5
local WheelieDivider = 1
|
--Tune
OverheatSpeed = .2 --How fast the car will overheat
CoolingEfficiency = .05 --How fast the car will cool down
RunningTemp = 85 --In degrees
Fan = true --Cooling fan
FanTemp = 100 --At what temperature the cooling fan will activate
FanTempAlpha = 90 --At what temperature the cooling fan will deactivate
FanSpee... |
--Suspension Hinges
bike.RearSection.RearSwingArmHinge.Size = Vector3.new(_Tune.HingeSize,_Tune.HingeSize,_Tune.HingeSize)
bike.RearSection.RearSwingArmHinge.CustomPhysicalProperties = PhysicalProperties.new(_Tune.HingeDensity,0,0,100,100)
if _Tune.RBricksVisible or _Tune.Debug then bike.RearSection.RearSwingArmHinge... |
--------| Reference |--------
local isClient = game:GetService("RunService"):IsClient()
|
--// Char Parts
local Humanoid = Personagem:WaitForChild('Humanoid')
local Head = Personagem:WaitForChild('Head')
local Torso = Personagem:WaitForChild('Torso')
local HumanoidRootPart = Personagem:WaitForChild('HumanoidRootPart')
local RootJoint = HumanoidRootPart:WaitForChild('RootJoint')
local Neck = Torso:WaitForC... |
-- all the tweens currently being updated
local allTweens: Set<Tween> = {}
setmetatable(allTweens, WEAK_KEYS_METATABLE)
|
-- Spawn a new firefly from the center when one flew too far
local Model = script.Parent
local Fly = Model.FireFly:Clone() -- Clone a fly from the start
Model.ChildRemoved:connect(function() -- When a fly got removed when he flew too far, paste a clone to spawn a new one
if Model:FindFirstChild("Center") then
l... |
--[[Engine]]
--Torque Curve
Tune.Horsepower = 140 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 6980 -- Use sliders to manipulate values
Tune.Redline = 8000 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 550... |
-- Updates that occur in the render phase are not officially supported. But when
-- they do occur, we defer them to a subsequent render by picking a lane that's
-- not currently rendering. We treat them the same as if they came from an
-- interleaved event. Remove this flag once we have migrated to the
-- new behavior.... |
--[[**
ensures value is a number where min <= value <= max
@param min The minimum to use
@param max The maximum to use
@returns A function that will return true iff the condition is passed
**--]]
function t.numberConstrained(min, max)
assert(t.number(min) and t.number(max))
local minCheck = t.numberMin(min)
... |
--Loop For Making Rays For The Bullet's Trajectory
for i = 1, 30 do
local thisOffset = offset + Vector3.new(0, yOffset*(i-1), 0)
local travelRay = Ray.new(point1,thisOffset)
local hit, position = workspace:FindPartOnRay(travelRay, parts.Parent)
local distance = (position - point1).magnitude
round.Size = Ve... |
--[=[
@return boolean
@param opt Option
Metamethod to check equality between two options. Returns `true` if both
options hold the same value _or_ both options are None.
```lua
local o1 = Option.Some(32)
local o2 = Option.Some(32)
local o3 = Option.Some(64)
local o4 = Option.None
local o5 = Option.None
print... |
--[[
Package link auto-generated by Rotriever
]]
local PackageIndex = script.Parent.Parent.Parent._Index
local Package = require(PackageIndex["JestTestResult"]["JestTestResult"])
export type AggregatedResult = Package.AggregatedResult
export type AssertionLocation = Package.AssertionLocation
export type AssertionR... |
--[[Transmission]]
Tune.TransModes = {"Auto"} --[[
[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 default mode ... |
-- ROBLOX deviation: skipped
-- Expect.extractExpectedAssertionsErrors = extractExpectedAssertionsErrors
|
--[[[Default Controls]]
--Peripheral Deadzones
Tune.Peripherals = {
MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width)
MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%)
ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%)
ControlRDZone = 5 , -... |
---------------------------------------------------
function module:CreateRanks()
coroutine.wrap(function()
local ranksInfo = main.signals.RetrieveRanksInfo:InvokeServer()
local permRanksInfo = ranksInfo.PermRanks
local ranksToSort = ranksInfo.Ranks
local permissions = ranksInfo.Permissions
--Organis... |
-- requiredArguments is a set of keys that must be mapped to non-nil values in arguments
-- optionalArguments is a mapping of optional keys in arguments to their default values
return function(arguments, requiredArguments, optionalArguments)
for key, _ in pairs(requiredArguments) do
if arguments[key] == nil then
... |
--Wheels Array
local fDensity = _Tune.FWheelDensity
local rDensity = _Tune.RWheelDensity
local fFwght = _WHEELTUNE.FFrictionWeight
local rFwght = _WHEELTUNE.RFrictionWeight
local fElast = _WHEELTUNE.FElasticity
local rElast = _WHEELTUNE.RElasticity
local fEwght = _WHEELTUNE.FElastWeight
local rEwght = _WHEELTUNE.REla... |
--[=[
Detects if a table is empty.
```lua
local Empty = {}
local NotEmpty = { "Stuff" }
print(TableKit.IsEmpty(Empty), TableKit.IsEmpty(NotEmpty)) -- prints true, false
```
@within TableKit
@param mysteryTable table
@return boolean
]=]
function TableKit.IsEmpty(mysteryTable: { [unknown]: unknown }): boo... |
----------------------------------------------
local debris = game:GetService("Debris")
while vehicle:FindFirstChild("StamperFloor") or vehicle:FindFirstChild("StamperFloor2") do vehicle.ChildRemoved:wait() end
local vehicleSize = vehicle:GetModelSize().magnitude
|
--[=[
@within TableUtil
@function Sync
@param srcTbl table -- Source table
@param templateTbl table -- Template table
@return table
Synchronizes the `srcTbl` based on the `templateTbl`. This will make
sure that `srcTbl` has all of the same keys as `templateTbl`, including
removing keys in `srcTbl` that are not... |
-- ====================
-- MISCELLANEOUS
-- Etc. settings for the gun
-- ====================
Knockback = 0; --Setting above 0 will enabling the gun to push enemy back. NOTE: If "ExplosiveEnabled" is enabled, this setting is not work
Lifesteal = 0; --In percent - Setting above 0 will allow user to steal enemy's ... |
-- Activate it on start.
if ( script.Activate.Value ) then
activate();
end
|
-- scripting level 1000000: go
-- if you type 2 dashes like this "--" you can create a comment
-- comments aren't executed, so you can type stuff like this!
|
-- Unequip logic here
function OnUnequipped()
Handle.UnequipSound:Play()
Handle.EquipSound:Stop()
Handle.EquipSound2:Stop()
LeftButtonDown = false
flare.MuzzleFlash.Enabled = false
Reloading = false
MyCharacter = nil
MyHumanoid = nil
MyTorso = nil
MyPlayer = nil
MyMouse = nil
if OnFireConnection then
On... |
-- white and black
--Play_Video_Event.Event:Connect(function()
-- print("playing video soon")
-- wait(1)
-- game.Workspace.Sound:Play()
-- local frames = 0
-- local chunks = 0
-- for _,v in pairs(Loaded_Vid) do
-- chunks += 1
-- local chunk = tostring(chunks)
-- local pixel = 0
-- for f = 1 , chunk_size do
-- fra... |
-- Initialization
local lastActivePath = {}
if game.Workspace:FindFirstChild("BasePlate") then
game.Workspace.BasePlate:Destroy()
end
local tracksModel = Instance.new("Model")
tracksModel.Name = "Tracks"
tracksModel.Parent = game.Workspace
function packagePathModels()
local pathPackager = require(script.PathPack... |
-- Customized explosive effect that doesn't affect teammates and only breaks joints on dead parts
local TaggedHumanoids = {}
local function OnExplosionHit(hitPart, hitDistance, blastCenter)
if hitPart and hitDistance then
local character, humanoid = FindCharacterAncestor(hitPart.Parent)
if character then
loc... |
---[[ Chat Behaviour Settings ]]
module.WindowDraggable = false
module.WindowResizable = false
module.ShowChannelsBar = false
module.GamepadNavigationEnabled = false
module.AllowMeCommand = false -- Me Command will only be effective when this set to true
module.ShowUserOwnFilteredMessage = true --Show a user the filt... |
--local part,pos,norm,mat = workspace:FindPartOnRay(ray,banto)
--banto:MoveTo(Vector3.new(banto.PrimaryPart.Position.X,pos.Y+2.25,banto.PrimaryPart.Position.Z))
--bp.Position = Vector3.new(bp.Position.X,pos.Y+2.25,bp.Position.Z)
until (banto.PrimaryPart.Position-goal).magnitude < 10 or tick()-start >10
walk:Stop()
b... |
-- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
function configureAnimationSet(name, fileList)
if (animTable[name] ~= nil) then
for _, ... |
--Used to visualize waypoints
local visualWaypoint = Instance.new("Part")
visualWaypoint.Size = Vector3.new(0.3, 0.3, 0.3)
visualWaypoint.Anchored = true
visualWaypoint.CanCollide = false
visualWaypoint.Material = Enum.Material.Neon
visualWaypoint.Shape = Enum.PartType.Ball
|
-- Device check
local IS_CONSOLE = GuiService:IsTenFootInterface()
local IS_MOBILE = UserInputService.TouchEnabled and not UserInputService.MouseEnabled and not IS_CONSOLE
|
-- This is the same as Icon.new(), except it adds additional behaviour for certain specified names designed to mimic core icons, such as 'Chat'
function Icon.mimic(coreIconToMimic)
local iconName = coreIconToMimic.."Mimic"
local icon = IconController.getIcon(iconName)
if icon then
return icon
end
icon = Icon.n... |
-- Listen for the part being touched
part.Touched:Connect(onTouched)
|
------------------------------------------CONFIGURABLE VARIABLES]]------------------------------------------------------------------------------
music.Parent = script.Parent -- This is where the sound will be placed. If you want the sound to be heard everywhere, don't change it or put it into Workspace. |
--// Use the below table to set command permissions; Commented commands are included for example purposes
settings.Permissions = {
-- "ff:HeadAdmins"; --// Changes :ff to HeadAdmins and higher (HeadAdmins = Level 300 by default)
-- "kill:300"; --// Changes :kill to level 300 and higher (Level 300 = HeadAdmins by de... |
-- Determine whether we're in tool or plugin mode
ToolMode = (Tool.Parent:IsA 'Plugin') and 'Plugin' or 'Tool'
|
-- this script removes its parent from the workspace after 24 seconds
local Debris = game:GetService("Debris")
Debris:AddItem(script.Parent,24)
|
--// Firemode Settings
CanSelectFire = false;
BurstEnabled = false;
SemiEnabled = true;
AutoEnabled = false;
BoltAction = false;
ExplosiveEnabled = false;
|
--[[WARNING!!! MAKE SURE THIS MODULE IS IN SERVER STORAGE OR SERVER SCRIPT SERVICE]]
|
-- Function to bind to touch moved if player is on mobile
local function mobileFrame(touch, processed)
-- Check to see if the touch was on a UI element. If so, we don't want to update anything
if not processed then
-- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
-- to creat... |
--[=[
Executes code at a specific point in Roblox's engine
@class onSteppedFrame
]=]
local RunService = game:GetService("RunService")
|
--[[Engine]]
--Torque Curve
Tune.Horsepower = 231 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 5000 -- Use sliders to manipulate values
Tune.Redline = 7000 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 560... |
--[[
Intended for use in tests.
Similar to await(), but instead of yielding if the promise is unresolved,
_unwrap will throw. This indicates an assumption that a promise has
resolved.
]]
function Promise.prototype:_unwrap()
if self._status == Promise.Status.Started then
error("Promise has not resolved or reje... |
-- Overrides Keyboard:UpdateJump() because jump is handled in OnRenderStepped
function ClickToMove:UpdateJump()
if FFlagUserClickToMoveFollowPathRefactor then
-- Nothing to do (handled in OnRenderStepped)
else
self.isJumping = self.jumpRequested
end
end
|
--[[ SERVICES ]]
local PlayersService = game:GetService('Players')
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChatService = game:GetService("Chat")
local TextService = game:GetService("TextService") |
--[[[Default Controls]]
--Peripheral Deadzones
Tune.Peripherals = {
MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width)
MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%)
ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%)
ControlRDZone = 5 , -... |
-- @Description Return a copy of the table without any keys.
-- @Arg1 Table
function Basic.TableToArray(Tbl)
local Array = {}
for _,v in pairs(Tbl) do
table.insert(Array, v)
end
return Array
end
|
-- Changes made from EchoReaper's version:
-- GetCurrentFPS() method removed
-- FPS is only tracked when the 'Loop' function is running for performance reasons
-- Styled code in consistency with the rest of the AeroGameFramework codebase
|
-----------------
--| Variables |--
-----------------
local PlayersService = game:GetService('Players')
local Camera = nil
local CameraSubjectChangeConn = nil
local SubjectPart = nil
local PlayerCharacters = {} -- For ignoring in raycasts
local VehicleParts = {} -- Also just for ignoring
local LastPopAmount = 0
... |
-- Set the "AngularVelocity" property on all of the CylindricalConstraint motors
local function setMotorVelocity(vel)
motorFL.AngularVelocity = vel
motorBL.AngularVelocity = vel
-- Motors on the right side are facing the opposite direction, so negative velocity must be used
motorFR.AngularVelocity = -vel
motorBR... |
-- Convenient syntax for creating a tree of instanes
local function create(className)
return function(props)
local inst = Instance.new(className)
local parent = props.Parent
props.Parent = nil
for name, val in pairs(props) do
if type(name) == "string" then
inst[name] = val
else
val.Parent = ins... |
-- Show the help text for joining and leaving channels. This is not useful unless custom channels have been added.
-- So it is turned off by default.
module.ShowJoinAndLeaveHelpText = false
|
--[[Remove Character Weight]]
--Get Seats
local Seats = {}
function getSeats(p)
for i,v in pairs(p:GetChildren()) do
if v:IsA("VehicleSeat") or v:IsA("Seat") then
local seat = {}
seat.Seat = v
seat.Parts = {}
table.insert(Seats,seat)
end
getSeats(v)
end
end
getSeats(car)
--Store ... |
--made by Bertox
--lul
local ts = game:GetService("TweenService")
local fadeDRL = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local fadeDRL2 = TweenInfo.new(4, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local goal = {}
local goal2 = {}
local F = {}
local car = script.Parent.Parent.Pare... |
--[[
___ _______ _
/ _ |____/ ___/ / ___ ____ ___ (_)__
/ __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
/_/ |_| \___/_//_/\_,_/___/___/_/___/
SecondLogic @ Inspare
]]
script.Parent:WaitForChild("Speedo")
script.Parent:WaitForChild("Tach")
script.Parent:WaitForChild("ln")
script.... |
--
end
else
print("sh")
end
else
print("arms")
end
end
function Key(key)
if key then
key = string.lower(key)
if (key=="c") then
if on == 1 then
on = 0
elseif on == 0 then
on = 1
end
Crouch(on)
end
end
end
function Equip(mouse)
mouse.KeyDown:connect(Key)
end
script.Parent.Equipped:connect(Equip)
|
---------------------------
--[[
--Main anchor point is the DriveSeat <car.DriveSeat>
Usage:
MakeWeld(Part1,Part2,WeldType*,MotorVelocity**) *default is "Weld" **Applies to Motor welds only
ModelWeld(Model,MainPart)
Example:
MakeWeld(car.DriveSeat,misc.PassengerSeat)
MakeWeld(car.DriveSeat,misc.SteeringW... |
--// Converts DateTime to ISO8601 timestamp
local function format(num, digits)
return string.format("%0" .. digits .. "i", num)
end
local function parseDateTime()
local osDate = os.date("!*t")
local year, mon, day = osDate["year"], osDate["month"], osDate["day"]
local hour, min, sec = osDate["hour"], osDate["mi... |
-- Get references to the DockShelf and its children
local fldr = script.Parent.Parent.SelEmoji
local btn = script.Parent
local function toggleWindow()
if fldr.Visible then
-- Close the window by tweening back to the button position and size
fldr:TweenSizeAndPosition(
UDim2.new(0, 0, 0, 0),
UDim2.new(0.822... |
--[=[
Impulses the spring, increasing velocity by the amount given. This is useful to make something shake,
like a Mac password box failing.
@param velocity T -- The velocity to impulse with
@return ()
]=]
function SpringObject:Impulse(velocity)
self._currentSpring:Impulse(SpringUtils.toLinearIfNeeded(velocity)... |
-- print("CurrentAnim ", currentAnim, " ", frameName)
if (frameName == "End") then
if currentAnim == "walk" then
runAnimTrack.TimePosition = 0.0
currentAnimTrack.TimePosition = 0.0
else
-- print("Keyframe : ".. frameName)
local repeatAnim = currentAnim
-- return to idle if finishing an emote
i... |
-- Called when character is added
function BaseOcclusion:CharacterAdded(char, player)
end
|
---- ARITHMETIC ----
function ActiveCastStatic:AddVelocity(velocity: Vector3)
assert(getmetatable(self) == ActiveCastStatic, ERR_NOT_INSTANCE:format("AddVelocity", "ActiveCast.new(...)"))
assert(self.StateInfo.UpdateConnection ~= nil, ERR_OBJECT_DISPOSED)
self:SetVelocity(self:GetVelocity() + velocity)
end
funct... |
-- Running --
local function Run(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
Running = true
humanoid.WalkSpeed = 30
while Running and Stamina2.MinValue > 0 do
Stamina2.MinValue -= 2
wait(.01)
end
if Stamina2.MinValue <= 20 then
humanoid.WalkSpeed = 16
end
end
end
UIS.InputBegan:Con... |
-- 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 = g... |
--[[ INSTRUCTIONS
- Place in the model
- Make sure model is anchored
- That's it. It will weld the model and all children.
THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE ... |
-- Function to simulate day-night cycle
local function dayNightCycle()
while true do
wait(dayDuration) -- Wait for the specified day duration
-- Daytime award
awardPointsToPlayers()
wait(dayDuration / 2) -- Half of the day for nighttime
-- Nighttime award
awardPointsToPlayers()
end
end
|
--[[
Dax,
See the MeleeScript.
]]
local canmelee = true;
local tool = script.Parent;
function onKeyDown(key)
key:lower();
if key == "v" then
if canmelee == false then
return;
end
tool.Melee:play()
canmelee = false;
local rgrip = tool.Parent["Right Arm"].RightGrip;
script.melee.Value = true;
... |
-- Decompiled with the Synapse X Luau decompiler.
local v1 = {};
v1.__index = v1;
function v1.new()
local v2 = setmetatable({}, v1);
v2.cameras = require(script:WaitForChild("CameraModule"));
v2.controls = require(script:WaitForChild("ControlModule"));
return v2;
end;
function v1.GetCameras(p1)
return p1.camera... |
-- Customization
AntiTK = false; -- Set to false to allow TK and damaging of NPC, true for no TK. (To damage NPC, this needs to be false)
MouseSense = 0.5;
CanAim = true; -- Allows player to aim
CanBolt = true; -- When shooting, if this is enabled, the bolt will move (SCAR-L, ACR, AK Series)
LaserAttached =... |
--[[**
ensures value is a number where min < value
@param min The minimum to use
@returns A function that will return true iff the condition is passed
**--]]
function t.numberMinExclusive(min)
return function(value)
local success, errMsg = t.number(value)
if not success then
return false, errMsg or ""
... |
--[[ By: Brutez. ]]
--
local JeffTheKillerScript=script;
repeat Wait(0)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("HumanoidRootPart");
local JeffTheKiller=Je... |
-- Connect to the current and all future cameras
workspace.Changed:connect(OnWorkspaceChanged)
OnWorkspaceChanged('CurrentCamera')
|
-- Roblox character sound script
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local SOUND_DATA = {
Climbing = {
SoundId = "",
Looped = true,
},
Died = {
SoundId = "",
},
FreeFalling = {
SoundId = "",
Looped = true,
},
GettingUp = {
SoundId = "",
},
... |
-- body.HB.BrickColor = bool and BrickColor.new("Pearl") or BrickColor.new("Black")
-- body.HB.Material = bool and "Neon" or "SmoothPlastic
-- body.L2.Light.Enabled = bool --if you want That Bright Lights.
elseif lights == 'HB' then
body.HB.Material = bool and "Neon" or "SmoothPlastic"
body.HB.Light.Enabled =... |
--[[[Default Controls]]
--Peripheral Deadzones
Tune.Peripherals = {
MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width)
MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%)
ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%)
ControlRDZone = 5 , -... |
-- запоминаем заготовку
local sample = script.Parent.Lift:Clone() -- берём заготовку
local rand = Random.new() -- инициализация рандома
script.Parent.Lift:Destroy() -- удаляем исходник
for i = -7, 7 do
local pos = CFrame.new(0,0, 10.5*i + 10 + script.Parent.Parent.BasePart.Position.Z)
local tmp=sample:Clone()
... |
-- Concatenate these two tables, return result.
function CommonUtil.TableConcat(t1,t2)
for i=1,#t2 do
t1[#t1+1] = t2[i]
end
return t1
end
|
--[[**
ensures Roblox Vector2int16 type
@param value The value to check against
@returns True iff the condition is satisfied, false otherwise
**--]]
t.Vector2int16 = t.typeof("Vector2int16")
|
--- Sets the text in the command bar text box, and captures focus
function Window:SetEntryText(text)
Entry.TextBox.Text = text
if self:IsVisible() then
Entry.TextBox:CaptureFocus()
Entry.TextBox.CursorPosition = #text + 1
Window:UpdateWindowHeight()
end
end
|
--[[Susupension]]
Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled
--Front Suspension
Tune.FSusDamping = 500 -- Spring Dampening
Tune.FSusStiffness = 9000 -- Spring Force
Tune.FAntiRoll = 50 -- Anti-Roll (Gyro Dampening)
Tune.FSusLength = 2... |
---------------------------
--[[
--Main anchor point is the DriveSeat <car.DriveSeat>
Usage:
MakeWeld(Part1,Part2,WeldType*,MotorVelocity**) *default is "Weld" **Applies to Motor welds only
ModelWeld(Model,MainPart)
Example:
MakeWeld(car.DriveSeat,misc.PassengerSeat)
MakeWeld(car.DriveSeat,misc.SteeringW... |
-- Import into an entire datastore type:
local function importDataStoresFromTable(origin, destination, warnFunc, methodName, prefix, isOrdered)
for name, scopes in pairs(origin) do
if type(name) ~= "string" then
warnFunc(("%s: ignored %s > %q (name is not a string, but a %s)")
:format(methodName, prefix, to... |
-- Player specific convenience variables
local MyPlayer = nil
local MyCharacter = nil
local MyHumanoid = nil
local MyTorso = nil
local MyMouse = nil
local RecoilAnim
local RecoilTrack = nil
local IconURL = Tool.TextureId -- URL to the weapon icon asset
local DebrisService = game:GetService('Debris')
local Players... |
-- tween the sound to the speed
local tween = game:GetService("TweenService"):Create(waterSound,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In),{["Volume"] = math.clamp(speed/maxSpeed,0,1)}) -- end of tweencreate
tween:Play()
end
|
-- VIP SERVER OWNER
VipServerOwner = "NonAdmin";
|
-- Simple raycast alias
local function Cast(origin, direction, ignoreDescendantsInstance, ignoreWater)
local castRay = Ray.new(origin, direction)
return Workspace:FindPartOnRay(castRay, ignoreDescendantsInstance, false, ignoreWater)
end
|
------//Aim Animations
self.RightAim = CFrame.new(-.575, 0.1, -1) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0));
self.LeftAim = CFrame.new(1.4,0.25,-1.45) * CFrame.Angles(math.rad(-120),math.rad(35),math.rad(-25));
|
--[[Steering]]
Tune.SteerInner = 26 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 25 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = .06 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = .1 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 330 -- Spee... |
--Handlebars hinge
bike.FrontSection.TripleTreeHinge.Size = Vector3.new(_Tune.HingeSize,_Tune.HingeSize,_Tune.HingeSize)
bike.FrontSection.TripleTreeHinge.CustomPhysicalProperties = PhysicalProperties.new(_Tune.HingeDensity,0,0,100,100)
if _Tune.HingesVisible or _Tune.Debug then bike.FrontSection.TripleTreeHinge.Tran... |
--[[
Invisicam - Occlusion module that makes objects occluding character view semi-transparent
2018 Camera Update - AllYourBlox
--]]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.