text stringlengths 52 99.8k |
|---|
--Tuning tips: If your car tends to oversteer, increase the ratio of friction towards the front (E.G. .65 front .6 rear), do the opposite in case of understeer
|
-- A state object which follows another state object using spring simulation.
export type Spring<T> = StateObject<T> & Dependent & {
-- kind: "Spring" (add this when Luau supports singleton types)
-- Uncomment when ENABLE_PARAM_SETTERS is enabled
-- setPosition: (Spring<T>, newValue: Animatable) -> (),
-- setVelo... |
-- Connect 'MoveToFinished' event to the 'onWaypointReached' function
human.MoveToFinished:Connect(onWaypointReached)
|
-------- OMG HAX
r = game:service("RunService")
local damage = 5
local slash_damage = 12
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
local UnsheathSound =... |
--//both of you, dance like you want to win!
local SSS = game:GetService("ServerScriptService")
local TS = game:GetService("TweenService")
local Global = require(SSS.Server.Scripts.Server.CoreSystems.Modules.Global)
local Deb = false
local Status = false
local function Toggle()
if not Deb then
if not Status the... |
--SECOND DOOR
local LMLOP2 = script.Parent.Door2.Left.LockMechanisms.LM.CFrame
local LMLTGP2 = script.Parent.Door2.Left.LockMechanisms.LMToGo.CFrame
local RMLOP2 = script.Parent.Door2.Right.LockMechanisms.LM.CFrame
local RMLTGP2 = script.Parent.Door2.Right.LockMechanisms.LMToGo.CFrame
local LDOP2 = script.Parent.Door... |
--[[
TheNexusAvenger
Applies a winter theme to Skylands.
--]]
|
--[[Transmission]]
Tune.TransModes ={"Auto","Semi"} --[[
[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 m... |
--[[ss1.Touched:connect(function()
if IsOpen.Value == false then
OtherDir.Value = false
opendoor()
wait(TimeDelay)
closedoor()
end
end)]]
trigger.Changed:Connect(function()
if trigger.Value == true and IsOpen.Value == false then
opendoor()
elseif trigger.Value == false and IsOpen.Value == true then
c... |
--// SS3 controls for AC6 by Itzt, originally for 2014 Infiniti QX80. i don't know how to tune ac lol
wait(0.1)
local player = game.Players.LocalPlayer
local HUB = script.Parent.HUB
local limitButton = HUB.Name
local FE = game.Workspace.FilteringEnabled
local lightOn = false
local Camera = game.Workspace.CurrentCa... |
--[[
Used to catch any errors that may have occurred in the promise.
]]
function Promise.prototype:catch(failureCallback)
return self:andThen(nil, failureCallback)
end
|
-- initialize to idle
playAnimation("idle", 0.1, Humanoid)
pose = "Standing"
while Figure.Parent ~= nil do
local _, time = wait(0.1)
move(time)
end
|
-- debounce=false
-- end
end
me.Touched:connect(Hit)
|
--[[Susupension]]
Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled
--Front Suspension
Tune.FSusDamping = 400 -- Spring Dampening
Tune.FSusStiffness = 17000 -- Spring Force
Tune.FSusLength = 1.9 -- Resting Suspension length (in studs)
Tune.FSusM... |
--Creates both buffer and non-buffer rockets.
function RocketCreator:CreateRocket(IsBufferRocket)
--Create the base parts and mesh.
local Rocket = Instance.new("Part")
Rocket.Name = "Rocket"
Rocket.Size = Vector3.new(1,1,4)
Rocket.CanCollide = false
local Mesh = Instance.new("SpecialMesh")
Mesh.Name = "Rocket... |
--[[Misc]]
Tune.LoadDelay = 1.0 -- Delay before initializing chassis (in seconds)
Tune.AutoStart = true -- Set to false if using manual ignition plugin
Tune.AutoFlip = true -- Set to false if using manual flip plugin
Tune.AutoUpdate = true -- Automatically applies minor updates to the chassis if any are f... |
--script.Parent.Parent.Parent:FindFirstChild("A-Chassis Tune"):WaitForChild('A-Chassis Interface')
handler = script.Parent
handler.OnServerEvent:Connect(function(plr, side)
print('received')
handler:FireClient(game.Players:WaitForChild(plr.Name))
if side == 'front' then
airbags.FL.Transparency = 0
airbags.FR.... |
-- Read the comments below to set your admin commands to your liking --
local Banned = {"Put Name Here"} --Put the person you want to bans name here, or use the command ";ban [Player]"
|
-- -- The "process.env" object has a bunch of particularities: first, it does not
-- -- directly extend from Object; second, it converts any assigned value to a
-- -- string; and third, it is case-insensitive in Windows. We use a proxy here to
-- -- mimic it (see https://nodejs.org/api/process.html#process_process_env)... |
--[=[
Fired when the Merch Booth is closed.
This fires when either the catalog or item detail view are closed.
@prop merchBoothClosed RBXScriptSignal
@within MerchBooth
@client
]=]
uiStatesEvents.merchBoothClosed = Instance.new("BindableEvent")
|
--<< Returns hit, position, normal, time >>
function raycast(model, start, vector, brickFunction)
local hit, normal, time = raycastRecursive(model, start, vector, brickFunction, vector.unit, dot(start, vector.unit))
if (dot(normal, vector) > 0) then
normal = -normal
end
return hit, start + time * vector, normal... |
--Electric Music--
local function AttachParticleControl(source_part)
local prtc = nil
local function Start()
prtc = script.Bolt:clone()
prtc.Parent = source_part
end
local function Update()
end
local function Stop()
if prtc ~= nil then
prtc:destroy()
prtc = nil
end
end
return {Star... |
-- Location: game.ReplicatedStorage.Consume
-- Synapse Decompiler
-- Purchase Here: https://brack4712.xyz/synapse/purchase/
wait(0.5)
Tool = script.Parent
local play = game.Players.LocalPlayer
local char = play.Character
local root = char:WaitForChild("HumanoidRootPart")
local hum = char:WaitForChild("Humanoid")
loc... |
--[[Controls]]
local _CTRL = _Tune.Controls
local Controls = Instance.new("Folder",script.Parent)
Controls.Name = "Controls"
for i,v in pairs(_CTRL) do
local a=Instance.new("StringValue",Controls)
a.Name=i
a.Value=v.Name
a.Changed:connect(function()
if i=="MouseThrottle" or i=="MouseBrake" then
if... |
--[=[
Use to test that the right padding between the given GuiObject or Rect and the other GuiObject or Rect.
The last argument is optional. If nil, the matcher will pass only if the difference **right** edge of the given GuiObject or Rect and the **right** edge of the other GuiObject or Rect is zero or positive.
... |
--// Check if they own a Pass that is given on Spawn
local OnSpawn = function(Player)
for Index, PassTable in pairs(Passes) do
if Owns:Invoke(Player, PassTable.Name) == true then
Give(Player, PassTable.Give, false)
end
end
end
|
-- -- -- -- -- -- --
--DIRECTION SCROLL--
-- -- -- -- -- -- --
Lift:WaitForChild("Direction").Changed:connect(function(val)
if val == 1 then
This.Display.ARW1.U1.BrickColor = BrickColor.new("Institutional white")
This.Display.ARW1.U2.BrickColor = BrickColor.new("Institutional white")
This.Display.ARW1.M1.... |
--// Damage Settings
BaseDamage = 80; -- Torso Damage
LimbDamage = 60; -- Arms and Legs
ArmorDamage = 58; -- How much damage is dealt against armor (Name the armor "Armor")
HeadDamage = 200; -- If you set this to 100, there's a chance the player won't die because of the heal script
|
--Made by Luckymaxer
Debris = game:GetService("Debris")
RunService = game:GetService("RunService")
Character = script.Parent
Humanoid = Character:FindFirstChild("Humanoid")
Smoke = script:FindFirstChild("Smoke")
function DestroyScript()
Debris:AddItem(script, 0.5)
end
if not Smoke or not Humanoid or Humanoid.H... |
-----------------
--| Constants |--
-----------------
local COOLDOWN = .7 -- Seconds until tool can be used again
|
-- API facing functions
events.getCanvases.OnInvoke = getCanvases(contexts, services)
events.placeArt.OnInvoke = placeArt(contexts, services)
events.removeAllArt.OnInvoke = removeAllArt(contexts, services)
|
-------------------------------------------
local weld2 = Instance.new("Weld")
weld2.Part0 = torso
weld2.Parent = torso
weld2.Part1 = arms[2]
weld2.C1 = CFrame.new(-0.4, 1.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),-0.25,0) --Right leg
arms[2].Name = "RDave"
arms[2].CanCollide = true
welds[2] = weld2 |
-- Don't mess with anything below kthx --
return {Settings,{Banned,Mods,Admins,SuperAdmins,Owners},Custom_Commands}
|
-- constants
local VERSION = 1
local PROPERTY_ID = configuration.GOOGLE_ANALYTICS_TRACKING_ID
local PLACE_ID = game.PlaceId
|
--[=[
@param name string
@param inboundMiddleware ClientMiddleware?
@param outboundMiddleware ClientMiddleware?
@return ClientRemoteSignal
Returns a new ClientRemoteSignal that mirrors the matching RemoteSignal created by
ServerComm with the same matching `name`.
```lua
local mySignal = clientComm:GetSignal("M... |
-- Reload animation
function reload()
if not reloading then
reloading=true;
updateAmmo()
local reloadTime = tankStats.ReloadTime.Value;
Loaded = false
local Timer = 0
for i = 7, 1, -1 do
wait(reloadTime/8);
Timer = Timer + 1
if Timer >= 2 and Loaded == false then
GUI.ReloadSound:Pl... |
--Common functions
local function StringSplit(s, delimiter)
local spl = {}
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
table.insert(spl, match)
end
return spl
end
|
-- -- -- -- -- -- --
--DIRECTION SCROLL--
-- -- -- -- -- -- --
while wait() do
-- -- -- -- -- -- --
--DIRECTION SCROLL--
-- -- -- -- -- -- --
if Lift:WaitForChild("Direction").Value == 1 then
This.Display.ARW1.U.BrickColor = BrickColor.new(ActiveARWColour)
This.Display.ARW1.U.Material = "Neon"
This.Disp... |
-- Maid object:
local Maid = {
-- _cleanup_tasks = {},
-- _is_cleaned = false,
}
Maid.__index = Maid
function Maid:AddCleanupTask(task)
if self._is_cleaned == true then
PerformCleanupTask(task)
return function() end
elseif type(task) == "function" then
table.insert(self._cleanup_tasks, task)
elseif typeo... |
-- Play music track
AudioPlayerModule.playAudio("Main_Background_Theme")
|
----------------------------------------------------------------[SS6] TO ADJUST ANY OF THE STEERING OPTIONS, GO TO LINE 66 "--change"
ssl = carSeat.Parent.Parent.LW.WheelML
ssr = carSeat.Parent.Parent.RW.WheelMR
strlckL = 1
strlckR = 1
strspd = script.Parent.Storage.SteerSpeed.Value
strprg = 0
maxlockL = carSeat.St... |
----- hot tap handler
for i, v in pairs(hotTap:GetChildren()) do
if v:FindFirstChild("ClickDetector") then
v.ClickDetector.MouseClick:Connect(function()
if hotOn.Value == false then
hotOn.Value = true
faucet.ParticleEmitter.Enabled = true
waterSound:Play()
hotTap:SetPrimaryPartCFrame(hotTap.Pri... |
-- Implements Javascript's `Map.prototype.forEach` as defined below
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach
function Map:forEach<K, V>(callback: callbackFn<K, V> | callbackFnWithThisArg<K, V>, thisArg: Object?): ()
if typeof(callback) ~= "function" then
error... |
-- This is the attack surface. It's imperitative that it is minimized as much as possible.
|
-- Either a constant value of type T, or a state object containing type T.
export type CanBeState<T> = StateObject<T> | T
|
--[[
Runs the fire animation.
--]]
function EggCreator:PlayLaunchAnimation()
--Launch the arm.
ReleaseMotor.DesiredAngle = 3
wait(ANIMATION_TIME)
Egg.Transparency = 1
--Delay the animation.
wait(ANIMATION_DELAY_TIME)
--Reset the arm.
ReleaseMotor.DesiredAngle = 0
wait(ANIMATION_TIME)
--Reset the egg.
... |
--[[Run]]
--Print Version
local ver=require(car["A-Chassis Tune"].README)
print("Novena: AC6T Loaded - Build "..ver)
--Runtime Loops
-- ~60 c/s
game["Run Service"].Stepped:connect(function()
--Steering
Steering()
--RPM
RPM()
--Suspension
if not workspace:PGSIsEnabled() and _Tune.SusEnable... |
--[[Weight and CG]]
Tune.Weight = 3214 -- Total weight (in pounds)
Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
--[[Width]] 6 ,
--[[Height]] 4 ,
--[[Length]] 15 }
Tune.WeightDist = 51 -- Weight distribution (0 - on rear wheels, 100 - on front wheels,... |
--Handles the ball being touched.
local function SlingshotBallHit(TouchPart)
if TouchPart.Name == "Handle" or not TouchPart.Parent then return end
local HitHumanoid = TouchPart.Parent:FindFirstChild("Humanoid")
if HitHumanoid and HitHumanoid.Parent ~= LastHitCharacter then
if SLINGSHOT_START_DAMAGE == CurrentD... |
-- Make signal strict
setmetatable(Signal, {
__index = function(_tb, key)
error(("Attempt to get Signal::%s (not a valid member)"):format(tostring(key)), 2)
end,
__newindex = function(_tb, key, _value)
error(("Attempt to set Signal::%s (not a valid member)"):format(tostring(key)), 2)
end,
})
return {
new = ... |
-------- OMG HAX
r = game:service("RunService")
local damage = 10
local slash_damage = 10
local lunge_damage = 20
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "http://www.roblox.com/asset/?id=11998777"
SlashSound.Parent = sword
local LungeSo... |
--
--
Monster:Initialize()
Monster:InitializeUnique()
while true do
if not Monster:IsAlive() then
if Data.IsDead == false then
Data.IsDead = true
Data.TimeOfDeath = tick()
Self.Died:Fire()
end
if Data.IsDead == true then
if tick()-Data.TimeOfDeath > Info.RespawnWaitTime then
Monster:Respawn()
... |
--[[
This file is necessary for constructing the default Icon template
Do not remove this module otherwise TopbarPlus will break
Modifying this file may also cause TopbarPlus to break
It's recommended instead to create a separate theme module and use that instead
To apply your theme after creating it, do:
```lua
local... |
--[[Steering]]
Tune.SteerInner = 21 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 19 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = .12 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = .1 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 320 -- Spee... |
--[=[
Use to determine if the given GuiObject or Rect is within the other
GuiObject or Rect. This will fail if part of the given GuiObject or Rect
extends beyond the extents of the other GuiObject or Rect.
This can be useful in making sure child UI elements do not accidentally leak
outside of their containers.
... |
--[[Misc]]
Tune.LoadDelay = .2 -- Delay before initializing chassis (in seconds)
Tune.AutoStart = false -- Set to false if using manual ignition plugin
Tune.AutoFlip = true -- Set to false if using manual flip plugin
|
-- Get list of attachments to make ballsocketconstraints between:
function RigTypes.getAttachments(model, rigType)
if rigType == Enum.HumanoidRigType.R6 then
return RigTypes.getR6Attachments(model)
elseif rigType == Enum.HumanoidRigType.R15 then
return RigTypes.getR15Attachments(model)
else
return {}
end
en... |
--[[
Applies the theme.
--]]
return function(MapModel)
--Replace the colors.
ReplaceColors(MapModel,BrickColor.new("Bright green"),BrickColor.new("Institutional white"))
end
|
--onselected, save shoulders and get player
script.Parent.Equipped:connect(function()
if selected then return end
selected = true
player = game.Players:playerFromCharacter(script.Parent.Parent)
local ch = script.Parent.Parent
WaitForChild(ch, "Torso")
RSH = WaitForChild(ch.Torso, "Right Shoulder")
LSH = WaitFo... |
--Settings
local MaxDistance = 15
local TimeToEnter = 0.7
local EnterKey = Enum.KeyCode.E
local EnterButton = Enum.KeyCode.ButtonX |
--------------------------------------------------
script.Parent.Values.RPM.Changed:connect(function()
intach.Rotation = -65 + script.Parent.Values.RPM.Value * 250 / 8000
end)
script.Parent.Values.Velocity.Changed:connect(function(property)
inspd.Rotation = -30 + (440 / 160) * (math.abs(script.Parent.Values.Veloci... |
--[[
LOWGames Studios
Date: 27 October 2022
by Elder
]]
--
local u1 = nil;
coroutine.wrap(function()
u1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
end)();
return function(p1)
local f
f = p1.Touched:Connect(function()
end)
local v1 = p1:GetTouchingParts();
f:Dis... |
-- functions
local function GetSquad(player)
for _, squad in pairs(SQUADS:GetChildren()) do
if squad:FindFirstChild(player.Name) then
return squad
end
end
end
|
-- Camera Shake Presets
-- Stephen Leitnick
-- February 26, 2018
|
-- ROBLOX deviation: since owner could be a function or a class component, we
-- need to do additional handling to get its name. It's easier to make this a
-- reusable function
local function describeOwner(owner: nil | ReactComponent<any>): string?
if typeof(owner) == "function" then
return debug.info(owner :: (an... |
-- teererererererphof
local player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
if player ~= nil then |
-- ROBLOX TODO: Uncomment this type once Luau has supported ... syntax
-- type Function = (...) -> any;
-- ROBLOX TODO: Fix once Luau has support for default type arguments
type MockDefaultY = Array<any>
type MockFunctionState<T, Y> = {
calls: Array<Y>,
instances: Array<T>,
invocationCallOrder: Array<number>,
res... |
--Get User Input
game:GetService("UserInputService").InputBegan:Connect(function(InputObj)
if InputObj.UserInputType == Enum.UserInputType.Keyboard then
if InputObj.KeyCode == EnterKey then
if AdornedSeat then
EnterStart("Keyboard")
else
ExitSeat()
end
end
elseif InputObj.KeyCode == EnterButton... |
--timer.Value = timer.MaxValue -- refresh added
timer.Value = timer.MaxValue
if child:IsA("BasePart") then
petalz(child.Position)
end
end
function OnAdded2(child)
for d = 1, 10 do
wait(0.1)
if child:IsA("BasePart") then
if d == 10 then
child:Destroy()
else
child.Transparency = child.Transpa... |
--[[Spawn(function()
while true do
fireanimdelay = fireanimdelay - game:GetService("RunService").Heartbeat:wait()
if fireanimdelay <= 0 then
fireanimdelay = 0
if anim2 and fireanimloop then anim2:Stop() fireanimloop = false end
end
wait()
end
end)]]
function wait(TimeToWait)
if TimeToWait ~= nil the... |
-- Move the arrow
local arrowTweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0)
TweenService:Create(InteractionArrow, arrowTweenInfo, {Position = ARROW_DESTINATION}):Play()
|
-- Class
local RadialMenuClass = {}
RadialMenuClass.__index = RadialMenuClass
RadialMenuClass.__type = "RadialMenu"
function RadialMenuClass:__tostring()
return RadialMenuClass.__type
end
|
-- Decompiled with the Synapse X Luau decompiler.
local v1 = {
Name = "json-array-decode",
Aliases = {},
Description = "Decodes a JSON Array into a comma-separated list",
Group = "DefaultUtil",
Args = { {
Type = "string",
Name = "JSON",
Description = "The JSON array."
} }
};
local l__HttpServic... |
---------------------------------------------------
This = script.Parent
Elevator = This.Parent.Parent.Parent.Parent.Parent
CustomLabel = require(This.Parent.Parent.Parent.Parent.Parent.CustomLabel)
Characters = require(script.Characters)
CustomText = CustomLabel["CUSTOMFLOORLABEL"]
Elevator:WaitForChild("Floor").... |
-- how many bullets are fired at a time
local BulletCount = 20 |
--[[**
Returns a t.union of each value in the table as a t.literal
@param valueTable The table to get values from
@returns True iff the condition is satisfied, false otherwise
**--]]
function t.valueOf(valueTable)
local values = {}
local length = 0
for _, value in pairs(valueTable) do
length = length + 1
... |
--Find platform for the default image id
if game:GetService("GuiService"):IsTenFootInterface() then
SwitchButtonType("Gamepad")
elseif game:GetService("UserInputService").TouchEnabled then
SwitchButtonType("Touch")
else
SwitchButtonType("Keyboard")
end
|
--This script exists to let you add armor to mobs and also, to auto re-equip armor on respawn.
function ArmorModule.RemoveArmor(character)
local humanoid = character:FindFirstChild("Humanoid") or character:FindFirstChild("Human")
--Remove old armour.
if humanoid ~= nil then
if character:FindFirstChild("Arm1") ~... |
------Body Variables------
local myHuman = marine.Humanoid
local myRoot = marine.HumanoidRootPart
local myHead = marine.Head
|
--> FUNCTIONS
local function TransparencyHandler(Increment, Goal)
for count = 1, 20 do
TextBox.TextTransparency += Increment
task.wait()
end
TextBox.TextTransparency = Goal
end
local function TextHandler()
TransparencyHandler(-.05, 0)
TransparencyHandler(.05, 1)
end
|
--[[
Create a new expectation
]]
function Expectation.new(value)
local self = {
value = value,
successCondition = true,
condition = false,
matchers = {},
_boundMatchers = {},
}
setmetatable(self, Expectation)
self.a = bindSelf(self, self.a)
self.an = self.a
self.ok = bindSelf(self, self.ok)
self.e... |
---------------------------------------------------
This = script.Parent
Lift = This.Parent.Parent.Parent
CustomLabel = require(Lift.CustomLabel)
Characters = require(script.Characters)
CustomText = CustomLabel["CUSTOMFLOORLABEL"]
Lift:WaitForChild("Floor").Changed:connect(function(floor)
--custom indicator code... |
--[[**
ensures all keys in given table pass check
@param check The function to use to check the keys
@returns A function that will return true iff the condition is passed
**--]]
function t.keys(check)
assert(t.callback(check))
return function(value)
local tableSuccess, tableErrMsg = t.table(value)
if table... |
-- Colors
local FriendlyReticleColor = Color3.new(0, 1, 0)
local EnemyReticleColor = Color3.new(1, 0, 0)
local NeutralReticleColor = Color3.new(1, 1, 1)
local AmmoInClip = ClipSize
local Tool = script.Parent
local Handle = WaitForChild(Tool, 'Handle')
local WeaponGui = nil
local Reloading = false
local IsShooting... |
-- Called when character is added
function BaseOcclusion:CharacterAdded(char: Model, player: Player)
end
|
----------------------------------------------------------------------
--------------------[ GET WELD CFRAMES ]------------------------------
----------------------------------------------------------------------
for _, v in pairs(Gun:GetChildren()) do
if v:IsA("BasePart") and v ~= Handle then
if v:FindFirstChild... |
-- -- -- -- -- -- --
--DIRECTION SCROLL--
-- -- -- -- -- -- --
while true do
wait()
if Lift:WaitForChild("Floor").Value == tonumber(This.Parent.Name) and Lift:WaitForChild("Velocity").Value == 0 then
if Lift:WaitForChild("Direction").Value == 1 then
This.Display.ARW1.UP.BrickColor = BrickColor.new(ActiveC... |
--[[
Get the beforeAll hooks from the current level.
]]
function LifecycleHooks:getBeforeAllHooks()
return self._stack[#self._stack][TestEnum.NodeType.BeforeAll]
end
|
-- ====================
-- LIMITED CLIP
-- Make a gun has a limit clip
-- ====================
LimitedClipEnabled = false;
Clips = 10;
MaxClip = 10; --Put "math.huge" to allow user to carry unlimited clip
|
--Gear Ratios
Tune.FinalDrive = 2.93 -- Gearing determines top speed and wheel torque
Tune.Ratios = { -- Higher ratio = more torque, Lower ratio = higher top speed
--[[Reverse]] 3.460 , -- Copy and paste a ratio to add a gear
--[[Neutral]] 0 , -- Ratios can also be deleted
--[[ 1 ]] 5.00 , -- Rever... |
-- Oy i made this simple script for ur game change the animation ids. They are inside of the text buttons located in the animations frame
|
-- regeneration
function regenHealth()
if Humanoid.Health == 0 then -- Ded
regening = false
z = Figure:GetChildren()
for i= 1, #z do
if z[i].ClassName == "Shirt" or z[i].ClassName == "Pants" or z[i].ClassName == "Body Colors" then
z[i]:Destroy()
elseif z[i].ClassName == "Part" then
part = z[... |
------------------
------------------
function waitForChild(parent, childName)
while true do
local child = parent:findFirstChild(childName)
if child then
return child
end
parent.ChildAdded:wait()
end
end
local Figure = script.Parent
local Torso = waitForChild(Figure, "Torso")
local RightShoulder = wai... |
-- The graph contains a directed acyclic graph of edges:
-- horizontal: delete an item from a
-- vertical: insert an item from b
-- diagonal: common item in a and b
--
-- The algorithm solves dual problems in the graph analogy:
-- Find longest common subsequence: path with maximum number of diagonal edges
-- Find short... |
-- Time it takes to reload weapon
local ReloadTime = 2 |
-- Holding Services
rs = game:GetService("ReplicatedStorage")
|
---------------------------
--Seat Offset (Make copies of this block for passenger seats)
car.DriveSeat.ChildAdded:connect(function(child)
if child.Name=="SeatWeld" and child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
child.C0=CFrame.new(0,-.5,0)*CFrame.fromEulerAnglesXYZ(-(... |
-- ClientComm
-- Stephen Leitnick
-- December 20, 2021
local Comm = require(script.Parent)
local Util = require(script.Parent.Parent.Util)
local Types = require(script.Parent.Parent.Types)
|
-- Adds a metatable to a table and all its descending tables
local fullmeta;fullmeta = function(t, meta)
setmetatable(t, meta)
for index, other in next, t do
if type(other) == 'table' then
fullmeta(other, meta)
end
end
return t
end
return fullmeta
|
-- placed these in here cause yolo
wait(0.1)
ship = script.Parent
r = math.random(1,4)
if r == 1 then
script.Rocky.angularvelocity = Vector3.new(0.1,0,0)
elseif r == 2 then
script.Rocky.angularvelocity = Vector3.new(-0.1,0,0)
elseif r == 3 then
script.Rocky.angularvelocity = Vector3.new(0,0,0.1)
elseif r == ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.