prompt stringlengths 2 14.7k | completion stringlengths 1 99.7k |
|---|---|
--wl.MaxVelocity = 0.007
--wl.Part0 = script.Parent.Parent.Misc.FL.Door.WD
--wl.Part1 = wl.Parent | |
--[[Weight and CG]] |
Tune.Weight = 1100 -- Total weight (in pounds)
Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
--[[Width]] 6.5 ,
--[[Height]] 4.8 ,
--[[Length]] 17 }
Tune.WeightDist = 51 -- Weight distribution (0 - on rear wheels, 100 - on front wheels, can be <0 or >... |
-- 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, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
math.randomseed(tick())
function configureAnimationSet(name, fileList)
if animTable[name] then
for _, connection in pairs(animTable[name].connections) do
connection:disconnect()
end
en... |
--//Server Animations |
RightHighReady = CFrame.new(-1, 0.55, -1.1) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0));
LeftHighReady = CFrame.new(1,0.55,-1.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0));
RightLowReady = CFrame.new(-1, 0.55, -1.1) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0));
LeftLowReady =... |
-- Replacements for RootCamera:RotateCamera() which did not actually rotate the camera
-- suppliedLookVector is not normally passed in, it's used only by Watch camera |
function BaseCamera:CalculateNewLookCFrame(suppliedLookVector)
local currLookVector = suppliedLookVector or self:GetCameraLookVector()
local currPitchAngle = math.asin(currLookVector.y)
local yTheta = math.clamp(self.rotateInput.y, -MAX_Y + currPitchAngle, -MIN_Y + currPitchAngle)
local constrainedRotateInput = Ve... |
--[[
Function called upon entering the state
]] |
function PlayerGame.onEnter(stateMachine, serverPlayer, event, from, to)
local player = serverPlayer.player
coroutine.wrap(
function()
local character = player.Character
if not character or not character.PrimaryPart then
player:LoadCharacter()
character = player.Character or player.CharacterAdded:W... |
-- Here be dragons
-- luacheck: ignore 212 |
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local LINE_HEIGHT = 20
local WINDOW_MAX_HEIGHT = 300
|
--[[Engine]] |
--Torque Curve
Tune.Horsepower = 560 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 500 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 3900 -- Use sliders to manipulate values
Tune.Redline = 4500 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 4500
Tune.PeakSh... |
-- |
sp=script.Parent
sp.Luminate.SourceValueChanged:connect(function(val)
if val==1 then
sp.Transparency=0
sp.Sparkles.Enabled=true
elseif val==0 then
sp.Transparency=.5
sp.Sparkles.Enabled=false
end
end)
|
--[[[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 , -- Controller steering R-d... |
--AudioLib.__index = function(s, i) return s[i] end |
function AudioLib.new(container)
local self = {}
self.DefaultProperties = {
Children = nil;
--ClearAllChildren = true;
Looped = false;
PlaybackSpeed = 1;
Playing = false;
SoundId = nil;
TimePosition = 0;
Volume = 0.25;
}
self.Playlist = {}
self.Shuffle = false
function self:GetSound() -- R... |
--Defining the parts of the shelf |
local sp=script.Parent
local drawer=sp.DrawerModel.Drawer
local val = script.bool.Value
function onClicked(clicked)
if val == true then
val = false
drawer.ClickDetector.MaxActivationDistance=0
drawer.Sound:Play()
for loop = 1, 20 do
sp:SetPrimaryPartCFrame(sp.PrimaryPart.CFrame * CFrame.new(0, 0,-.1) * CFr... |
-- Basic Settings |
AdminCredit=false; -- Enables the credit GUI for that appears in the bottom right
AutoClean=false; -- Enables automatic cleaning of hats & tools in the Workspace
AutoCleanDelay=60; -- The delay between each AutoClean routine
CommandBar=true; -- Enables the Command Bar | GLOBAL KEYBIND: \
FunCommands=true;... |
--// initialize variables //-- |
local playerTable = nil
local viewingNumber = 1
local player = game.Players.LocalPlayer
local focusedOnText = false
local UIS = game:GetService("UserInputService")
wait(1)
|
--valava rotato..... fasta valava!!!!!!!!!! gooo.. goooooo!!!!! reaching maximum velocity!!!!!!!!!!!!! |
local gabeNewell = script.Parent.Valve
local TS = game:GetService("TweenService")
local CD = Instance.new("ClickDetector",gabeNewell)
CD.MaxActivationDistance = 4
local deb = false
CD.MouseClick:Connect(function()
if not deb then
deb = true
local corp = TS:Create(gabeNewell,TweenInfo.new(1.5,Enum.EasingStyle.Cu... |
--Automatic Settings |
Tune.AutoShiftMode = "RPM" --[[
[Modes]
"Speed" : Shifts based on wheel speed
"RPM" : Shifts based on RPM ]]
Tune.AutoUpThresh = -200 -- Automatic upshift point (relative to peak RPM, positive = Over-rev)
Tune.AutoDownThresh = 1400 -- Automatic downshift point (relative to peak RPM, pos... |
--| Animations |-- |
local Anims = Access.Animations
|
--[=[
Cleans up the BaseObject and sets the metatable to nil
]=] |
function BaseObject:Destroy()
self._maid:DoCleaning()
setmetatable(self, nil)
end
return BaseObject
|
--[[
ADMIN POWERS
0 Player
1 VIP/Donor
2 Moderator
3 Administrator
4 Super Administrator
5 Owner
6 Game Creator
First table consists of the different variations of the command.
Second table consists of the description and an example of how to use it.
Third index is the ADMIN POWER required to use the comman... |
return {
{{'test','othertest'},{'Test command.','Example'},6,{'number','string/'},function(pl,args)
print(pl,args[1],args[2])
end}
};
|
--CreateGUI() |
humanoid.HealthChanged:connect(HealthChanged) |
-- (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 = "Hair"
p.Parent = h
p.Position = hit.Parent:findFirstChild("Head").Position
p.Name = "Handle"
p.formFactor =... |
----------------------- |
local _lastTeleport = tick()
local _currentQueue = {}
function Queue._addToQueue(player)
local waitingFor = Conf.min_queue_players - Queue._currentQueueCount()
-- If this was the last player we were waiting for, start the queue timeout countdown
if waitingFor == 1 then
_lastTeleport = tick()
end
_currentQue... |
----- Locales ----- |
local ScreenGui = script.Parent
|
--[[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 = 9700 -- Spring Force
Tune.FAntiRoll = 300 -- Anti-Roll (Gyro Dampening)
Tune.FSusLength = 5 -- Suspension le... |
--while Tool == nil do
-- Tool = script.Parent
-- wait(.5)
--end |
local mass = 0
local player = nil
local equalizingForce = 236 / 1.2 -- amount of force required to levitate a mass
local gravity = .75 -- things float at > 1
local moving = false
local maxFuel = 1000
while Tool == nil do
Tool = script.Parent
wait(.5)
end
local currfuel = Tool:FindFirstChild("CurrFuel")
while cur... |
-- Dependencies |
local Conf = require(ReplicatedFirst.Configurations.MainConfiguration)
local Signal = require(ReplicatedStorage.Libraries.Signal)
local Broadcast = require(ReplicatedStorage.Libraries.Broadcast)
local stageFolder = ServerScriptService.Stages
|
--[[*
* Keeps track of the current dispatcher.
]] |
local Packages = script.Parent.Parent.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
type Array<T> = LuauPolyfill.Array<T>
|
-- 3.) Put 'Tachometer' and 'ShiftLight' in Body. | |
-- init chat bubble tables |
local function initChatBubbleType(chatBubbleType, fileName, imposterFileName, isInset, sliceRect)
this.ChatBubble[chatBubbleType] = createChatBubbleMain(fileName, sliceRect)
this.ChatBubbleWithTail[chatBubbleType] = createChatBubbleWithTail(fileName, UDim2.new(0.5, -CHAT_BUBBLE_TAIL_HEIGHT, 1, isInset and -1 or 0), ... |
--[[Initialize]] |
script.Parent:WaitForChild("A-Chassis Interface")
script.Parent:WaitForChild("Plugins")
script.Parent:WaitForChild("README")
local car=script.Parent.Parent
local _Tune=require(script.Parent)
wait(_Tune.LoadDelay)
local Drive=car.Wheels:GetChildren()
--Remove Existing Mass
function DReduce(p)
for i,v ... |
--[[Status Vars]] |
local _IsOn = _Tune.AutoStart
if _Tune.AutoStart then car.DriveSeat.IsOn.Value=true end
local _GSteerT=0
local _GSteerC=0
local _GThrot=0
local _GThrotShift=1
local _GBrake=0
local _CBrake=0
local _CThrot=0
local _ClutchOn = true
local _ClPressing = false
local _RPM = 0
local _HP = 0
local _OutTor... |
--[[
yea i script howd u know
]] |
repeat wait() until script.Parent.Parent == game:GetService("Players").LocalPlayer.Character
local remote = script.Parent:FindFirstChild("getMouse")
game:GetService("Players").LocalPlayer:GetMouse().Button1Down:Connect(function()
if game.Players.LocalPlayer.Character:FindFirstChild("Mori") then
remote:InvokeSe... |
--[[
Package link auto-generated by Rotriever
]] |
local PackageIndex = script.Parent._Index
local Package = require(PackageIndex["roblox_rodux"]["rodux"])
return Package
|
--Data |
export type SoundData = {
MaxConcurrentTracks: {[string]: number}?,
Sounds: {[string]: SoundDataEntry},
}
export type SoundDataEntryEvent = {
Time: number,
Name: string,
[string]: any,
}
export type SoundDataEntry = {
Id: number,
Length: number,
Properties: {[string]: any}?,
Effec... |
--Fixed some stuff and made ants go after diffrent targets. |
local hill = script.Parent
local EntityData = require(game.ReplicatedStorage.Modules.EntityData)
local activeAnts = {}
function GetTableLength(tab)
local total = 0
for _,v in next, tab do
total = total + 1
end
return total
end
addAnt = coroutine.wrap(function()
while wait(5) do
if GetTableLength(activeAnts... |
--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)
local plrData = require(game.ReplicatedStorage.Source.Modules.Util):GetPlayerData(player)
plrData.Money.Gold.Value = plrData.Money.Gold.Value - 5
plrData.Character.Injuries.Burned.Value = false
end
|
--("no gui found - adding") |
local newgui=script.Parent.VehicleGui:clone()
newgui.Parent=pl.PlayerGui
newgui.Vehicle.Value=script.Parent.Parent
script.Parent.Parent.HasGunner.Value = true
newgui.Script.Disabled = false
newgui.EventScript.Disabled = false |
--[[Drivetrain]] |
Tune.Config = "FWD" --"FWD" , "RWD" , "AWD"
--Differential Settings
Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed)
Tune.FDiffLockThres = 50 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel)
Tune.RDiffSlipThr... |
--[[
Gets the os.date of specified os.time, and then returns a formatted string of human readable data. If no format is
specified, the string will fall back on the default format. Create formats by appending os.date keys with $.
]] |
function ReadableDate.fromTime(time, format)
local output = format or DEFAULT_FORMAT
local dateTable = os.date("*t", time)
for type, amount in pairs(dateTable) do
output = string.gsub(output, string.format("$%s", type), tostring(amount))
end
return output
end
return ReadableDate
|
-------------------------------------------------------------------------- |
local _WHEELTUNE = {
--[[
SS6 Presets
[Eco]
WearSpeed = 1,
TargetFriction = .7,
MinFriction = .1,
[Road]
WearSpeed = 2,
TargetFriction = .7,
MinFriction = .1,
[Sport]
WearSpeed = 3,
TargetFriction = .79,
MinFriction = .1, ]]
TireWearOn = true ,
--Frict... |
--[[Run]] |
--Print Version
local ver=require(car["A-Chassis Tune"].README)
print("//INSPARE: AC6 Loaded - Build "..ver)
--Runtime Loop
while wait() do
--Steering
Steering()
--Powertrain
Engine()
--Flip
if _Tune.AutoFlip then Flip() end
--Update External Values
_IsOn = car.DriveSeat.IsOn.Value
_... |
--[[**
Gets whatever object is stored with the given index, if it exists. This was added since Maid allows getting the task using `__index`.
@param [t:any] Index The index that the object is stored under.
@returns [t:any?] This will return the object if it is found, but it won't return anything if it doesn't exist.
... |
function Janitor.__index:Get(Index)
local This = self[IndicesReference]
if This then
return This[Index]
end
end
|
------------------
------------------ |
while true do
local p = game.Players:GetChildren()
for i = 1,#p do
if p[i].Character~=nil then
if p[i].Character:findFirstChild("Torso")~=nil then
if (p[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude < 5 then
local anim = Instance.new("StringValue")
anim.Value = possibleAn... |
-- Making Motor3D |
local Joint = script.Parent.LimbsJoint
Joint.LeftLegAnimation.LeftL.Part1 = Joint.LeftLegAnimation
Joint.RightLegAnimation.RightL.Part1 = Joint.RightLegAnimation
Joint.LeftLegAnimation.LeftL.Part0 = script.Parent.UpperTorso
Joint.RightLegAnimation.RightL.Part0 = script.Parent.UpperTorso
Joint.LeftArmAnimation.Left... |
--!strict |
export type WeakMap<K, V> = {
-- method definitions
get: (self: WeakMap<K, V>, K) -> V,
set: (self: WeakMap<K, V>, K, V) -> WeakMap<K, V>,
has: (self: WeakMap<K, V>, K) -> boolean,
}
type WeakMapPrivate<K, V> = {
_weakMap: { [K]: V },
-- method definitions
get: (self: WeakMapPrivate<K, V>, K) -> V,
set: (self... |
--<DON'T TOUCH THE SCRIPT UNLESS YOU KNOW WHAT YOU ARE DOING! |
local RS = game:GetService('ReplicatedStorage')
local TS = game:GetService('TweenService')
local Tool = script.Parent
local TextureArray = {}
local Activated = false
local Debounce = false
local Cooldown = 1
local Prop = nil
local LaughAnim = nil
Tool.Activated:Connect(function()
if not Debounce then
Debounce =... |
-----------------------------------------------------------
----------------------- STATIC DATA -----------------------
----------------------------------------------------------- |
local RunService = game:GetService("RunService")
local table = require(script.Parent:WaitForChild("Table"))
local Signal = require(script.Parent:WaitForChild("Signal"))
local FastCast = nil -- Static reference to the FastCast static module.
|
--[=[
Constructs a new Maid which will clean up when the brio dies.
Will error if the Brio is dead.
:::info
Calling this while the brio is already dead will throw a error.
:::
```lua
local brio = Brio.new("a")
local maid = brio:ToMaid()
maid:GiveTask(function()
print("Cleaning up!")
end)
brio:Kill() --> ... |
function Brio:ToMaid()
assert(self._values ~= nil, "Brio is dead")
local maid = Maid.new()
maid:GiveTask(self:GetDiedSignal():Connect(function()
maid:DoCleaning()
end))
return maid
end
|
-- Also set this to true if you want the thumbstick to not affect throttle, only triggers when a gamepad is conected |
local onlyTriggersForThrottle = false
local ZERO_VECTOR3 = Vector3.new(0,0,0)
local bindAtPriorityFlagExists, bindAtPriorityFlagEnabled = pcall(function()
return UserSettings():IsUserFeatureEnabled("UserPlayerScriptsBindAtPriority")
end)
local FFlagPlayerScriptsBindAtPriority = bindAtPriorityFlagExists and bindAtPri... |
---Strobe SCRIPT, DO NOT EDIT!--- |
for i,v in pairs(game.workspace.PLights:GetChildren()) do
spawn(function()
while true do
wait(math.random())
v.MLSelling.Dimmer:Invoke(180)
wait(0.001)
v.MLSelling.Dimmer:Invoke(0)
end
end)
end
|
--[[
Manages batch updating of spring objects.
]] |
local RunService = game:GetService("RunService")
local Package = script.Parent.Parent
local PubTypes = require(Package.PubTypes)
local Types = require(Package.Types)
local packType = require(Package.Animation.packType)
local springCoefficients = require(Package.Animation.springCoefficients)
local updateAll = require... |
-- If you want to know how to retexture a hat, read this: http://www.roblox.com/Forum/ShowPost.aspx?PostID=10502388 |
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 = "Handle" -- It doesn't make a difference, but if you want to make your place in Explorer neater, change this... |
----- Modules |
local CooldownModule = require(RS.Modules.CooldownGui)
|
--[[
Returns the target CFrame for the camera while in Dead mode
]] |
function CameraStateDead.getTargetCFrame(targetPart)
local _, yaw, _ = targetPart.CFrame:toEulerAnglesYXZ()
return CFrame.new(targetPart.CFrame.p) * CFrame.fromEulerAnglesYXZ(0, yaw, 0) * CFrame.new(0, 15, 10) * -- Offset
CFrame.Angles(math.rad(-20), 0, 0) -- Rotation
end
|
--[=[
Retrieves an attribute, and if it is nil, returns the default
instead.
@param instance Instance
@param attributeName string
@param default T?
@return T?
]=] |
function AttributeUtils.getAttribute(instance, attributeName, default)
local value = instance:GetAttribute(attributeName)
if value == nil then
return default
end
return value
end
|
--[=[
@within Plasma
@function checkbox
@tag widgets
@param label string -- The label for the checkbox
@param options {disabled: boolean, checked: boolean}
@return CheckboxWidgetHandle
A checkbox. A checkbox may either be controlled or uncontrolled.
By passing the `checked` field in `options`, you make the ch... |
local Runtime = require(script.Parent.Parent.Runtime)
local create = require(script.Parent.Parent.create)
return Runtime.widget(function(text, options)
options = options or {}
local checked, setChecked = Runtime.useState(false)
local clicked, setClicked = Runtime.useState(false)
local refs = Runtime.useInstanc... |
--DO NOT EDIT BELOW! |
while wait() do
Main.Money.Text = Money.Value
end
|
--[[
Returns the current value of this Spring object.
The object will be registered as a dependency unless `asDependency` is false.
]] |
function class:get(asDependency: boolean?)
if asDependency ~= false then
useDependency(self)
end
return self._currentValue
end
|
--// Commands
--// Highly recommended you disable Intellesense before editing this... |
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
local function Init()
Functions = server.Functions;
Admin = server.Admin;
Anti = server.Anti;
Cor... |
-- events |
REMOTES.Kick.OnServerEvent:Connect(function(player, other)
local squad = GetSquad(other)
if squad then
if player.Name == squad.Leader.Value then
LeaveSquad(other)
end
end
end)
REMOTES.SetLeader.OnServerEvent:Connect(function(player, other)
local squad = GetSquad(other)
if squad then
if player.Name ... |
--[=[
Accepts an array of Promises and returns a Promise that is resolved as soon as `count` Promises are resolved from the input array. The resolved array values are in the order that the Promises resolved in. When this Promise resolves, all other pending Promises are cancelled if they have no other consumers.
`cou... |
function Promise.some(promises, amount)
assert(type(amount) == "number", "Bad argument #2 to Promise.some: must be a number")
return Promise._all(debug.traceback(nil, 2), promises, amount)
end
|
--functions |
function pose1()
local player = game.Players.LocalPlayer
if (player == nil) then return end
char = player.Character
Rshoulder = char.Torso:findFirstChild("Right Shoulder")
Lshoulder = char.Torso:findFirstChild("Left Shoulder")
Rhip = char.Torso:findFirstChild("Right Hip")
Lhip = char.Torso:findFirstChild("Left ... |
-- Local Variables |
local IntermissionRunning = false
local EnoughPlayers = false
local GameRunning = false
local Events = ReplicatedStorage.Events
local CaptureFlag = Events.CaptureFlag
local ReturnFlag = Events.ReturnFlag
|
--Glenn's Anti-Exploit System (GAE for short). This code is very ugly, but does job done |
local function SecureSettings(Player, Gun, Module)
if Player then
local PreNewModule = Gun:FindFirstChild("Setting")
if Gun and PreNewModule then
local NewModule = require(PreNewModule)
if (CompareTables(Module, NewModule) == false) then
if KickPlayer then
Player:Kick("You have been kicked and bloc... |
-- ================================================================================
-- PUBLIC FUNCTIONS
-- ================================================================================ |
function GuiController:UpdateSpeed()
end -- GuiController:UpdateSpeed()
function GuiController:Start(s)
speeder = s
primary = speeder.PrimaryPart
engine = speeder.engine
BoostSetup()
end -- GuiController:Start()
function GuiController:Stop()
end -- GuiController:Stop() |
--METHOD 1 PARAMS |
local CALMDOWN = 0.5
local CALMDOWN_RENDER = nil |
-------------------------------------------------------------------------------- |
local function SetWaterState(ReadyToUse: boolean)
for _, WaterPart in Fountain.Water:GetChildren() do
if WaterPart:IsA("BasePart") then
if not WaterColor[WaterPart] then
WaterColor[WaterPart] = WaterPart.Color
end
Tween:Play(WaterPart, {1, "Circular"}, {Color = ReadyToUse and WaterColor[WaterPart] or ... |
--[[
A limited, simple implementation of a Signal.
Handlers are fired in order, and (dis)connections are properly handled when
executing an event.
]] |
local function immutableAppend(list, ...)
local new = {}
local len = #list
for key = 1, len do
new[key] = list[key]
end
for i = 1, select("#", ...) do
new[len + i] = select(i, ...)
end
return new
end
local function immutableRemoveValue(list, removeValue)
local new = {}
for i = 1, #list do
if list[... |
-- 2xy0x |
local module = {}
module.LastStandingPos = nil;
module.DontUpdateYet = false;
module.DamageMultiplication = 0.065
module.MinimumFallDamageStuds = 90
return module
|
--[[
Updates the value stored in this State object.
If `force` is enabled, this will skip equality checks and always update the
state object and any dependents - use this with care as this can lead to
unnecessary updates.
]] |
function class:set(newValue: any, force: boolean?)
-- if the value hasn't changed, no need to perform extra work here
if self._value == newValue and not force then
return
end
self._value = newValue
-- update any derived state objects if necessary
updateAll(self)
end
local function Value<T>(initialValue: T):... |
-- Get references to the DockShelf and its children |
local dockShelf = script.Parent.Parent.Parent.Parent.Parent.DockShelf
local dockbtn = dockShelf.JCookie
local aFinderButton = dockShelf.AFinder
local Minimalise = script.Parent
local window = script.Parent.Parent.Parent
|
--[Lokalizacje]
--[Góra] |
g1 = script.Parent.Parent.gura1
legansio = false
g2 = script.Parent.Parent.gura2
legansio = false
g3 = script.Parent.Parent.gura3
legansio = false
g4 = script.Parent.Parent.gura4
legansio = false
g5 = script.Parent.Parent.gura5
legansio = false
g6 = script.Parent.Parent.gura6
legansio = false
g7 = script.Parent.... |
--[[
Package link auto-generated by Rotriever
]] |
local PackageIndex = script.Parent.Parent.Parent._Index
local Package = require(PackageIndex["JestMatcherUtils"]["JestMatcherUtils"])
export type MatcherHintOptions = Package.MatcherHintOptions
export type DiffOptions = Package.DiffOptions
return Package
|
-- Tags -- |
local pantsId = script.Parent.Parent.ClickPart.Pants.PantsTemplate
local shirtId = script.Parent.Parent.ClickPart.Shirt.ShirtTemplate
local cPart = script.Parent
local cDetector = script.Parent.ClickDetector
|
-- Don't change the wait time. Sorry, it breaks the script... | |
-- Implements equivalent functionality to JavaScript's `array.indexOf`,
-- implementing the interface and behaviors defined at:
-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
--
-- This implementation is loosely based on the one described in the polyfill
-- source in t... |
return function<T>(array: Array<T>, searchElement: any, fromIndex: number?): number
local fromIndex_ = fromIndex or 1
local length = #array
-- In the JS impl, a negative fromIndex means we should use length - index;
-- with Lua, of course, this means that 0 is still valid, but refers to the
-- end of the array t... |
-- goro7 |
local plr = game.Players.LocalPlayer
function update()
-- Calculate scale
local scale = (plr.PlayerGui.MainGui.AbsoluteSize.Y - 30) / script.Parent.Parent.Size.Y.Offset
if scale > 1.5 then
scale = 1.5
end
if scale > 0 then
script.Parent.Scale = scale
end
end
plr.PlayerGui:WaitForChild("MainGui"):GetPr... |
--Enum.SavedQualitySetting.Automatic |
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("Head")
wait(1)
local Camera=game.Workspace.CurrentCamera
if Camera:FindFirstChild("MotionBlur") then
Camera.MotionBlur:Destroy()
end
local blur=Instance.new("BlurEffect")
blur.P... |
---Size |
local FSX = Frame.Size.X.Scale
local FSY = Frame.Size.Y.Scale
Player.DataFolder.Points.Changed:Connect(function()
StatTrack.Text = Points.Value
local function GoBack()
Frame:TweenSize(
UDim2.new(FSX,0,FSY,0),
Enum.EasingDirection.Out,
Enum.EasingStyle.Back,
0.125,
true
)
end
Frame:TweenSize... |
--------LEFT DOOR 7-------- |
game.Workspace.doorleft.l71.BrickColor = BrickColor.new(135)
game.Workspace.doorleft.l72.BrickColor = BrickColor.new(135)
game.Workspace.doorleft.l73.BrickColor = BrickColor.new(135)
game.Workspace.doorleft.l61.BrickColor = BrickColor.new(135)
game.Workspace.doorleft.l62.BrickColor = BrickColor.new(135)
game.Workspace... |
--Serivice |
game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) |
--Info.WhiteList = {"Master3395","Itscapcake","thecookieboiyt"} |
Info.WhiteList = {
["Master3395"] = true,
[""] = true,
}
function Info:Convert(object)
if object.ClassName == "ImageLabel" then
object.ImageTransparency = 1
end
for _,obj in pairs(object:GetDescendants()) do
if obj.ClassName == "ImageLabel" or obj.ClassName == "ImageButton" then
obj.ImageTransparency... |
-- loop |
local count = 0
local startTick = tick()
while true do
local timeElapsed = tick() - startTick
-- if the game has loaded and the minimum time has elapsed then break the loop
if game:IsLoaded() and timeElapsed > MIN_TIME and game.Workspace.Finish.Value==1 then
break
end
-- animate the text
textLabel.Text = "L... |
--nextsound=0 |
nextjump=0
chasing=false
variance=4
damage=11
attackrange=4.5
sightrange=60
runspeed=18
wonderspeed=8
healthregen=false
colors={"Sand red","Dusty Rose","Medium blue","Sand blue","Lavender","Earth green","Brown","Medium stone grey","Brick yellow"}
function raycast(spos,vec,currentdist)
local hit2,pos2=game.Workspac... |
-- Factor of torque applied to change the wheel direction
-- Larger number generally means faster braking |
local BRAKING_TORQUE = 16000
|
-- Initialize mesh tool |
local MeshTool = require(CoreTools:WaitForChild 'Mesh')
Core.AssignHotkey('H', Core.Support.Call(Core.EquipTool, MeshTool));
Core.AddToolButton(Core.Assets.MeshIcon, 'H', MeshTool)
|
-- Runs when someone touches our pet |
function touch(part)
-- IF player AND not dead AND has no master
if part.Parent:FindFirstChild('Humanoid') and part.Parent:FindFirstChild('Humanoid').health > 0 and not master then
-- Assign the master
master = part.Parent.Head
--Create a new spring
spring = Instance.new("SpringConstraint", pet)
spring.... |
-- ربط الدالة بحدث الاصطدام |
plank.Touched:Connect(onTouched)
|
-- Make sure to spell it 100% correct. |
local permissions = {
cmds = 'Players',
help = 'Players',
m = 'Moderators',
kick = 'Moderators',
}
local defaultLevel = 'Creators' -- The permission level that will be set for commands not configured above.
|
-- Note that VehicleController does not derive from BaseCharacterController, it is a special case |
local VehicleController = {}
VehicleController.__index = VehicleController
function VehicleController.new(CONTROL_ACTION_PRIORITY)
local self = setmetatable({}, VehicleController)
self.CONTROL_ACTION_PRIORITY = CONTROL_ACTION_PRIORITY
self.enabled = false
self.vehicleSeat = nil
self.throttle = 0
self.steer ... |
--Weld stuff here |
MakeWeld(car.Misc.Tach.M,car.DriveSeat,"Motor").Name="M"
ModelWeld(misc.Tach.Parts,misc.Tach.M)
MakeWeld(car.Misc.Speedo.N,car.DriveSeat,"Motor").Name="N"
ModelWeld(misc.Speedo.Parts,misc.Speedo.N)
MakeWeld(car.Misc.Wheel.W,car.DriveSeat,"Motor").Name="W"
ModelWeld(car.Misc.Wheel.Parts,car.Misc.Wheel.W)
car.DriveSea... |
-- LocalScript |
local numValue = Player.Eventos.EasterEvent -- substitua "NumValue" pelo nome da sua NumberValue
local textLabel = script.Parent -- substitua "TextLabel" pelo nome do seu TextLabel
|
--// Aim|Zoom|Sensitivity Customization |
ZoomSpeed = 0.20; -- The lower the number the slower and smoother the tween
AimZoom = 15; -- Default zoom
AimSpeed = 0.24;
UnaimSpeed = 0.20;
CycleAimZoom = 30; -- Cycled zoom
MouseSensitivity = 0.25; -- Number between 0.1 and 1
SensitivityIncrement = 0.05; -- No touchy
|
--Simple function to make the door appear and disappear |
local clickDetector = script.Parent.ClickDetector
function onMouseClick()
if script.Parent.CanCollide == false then
print "Close door"
script.Parent.CanCollide = true
script.Parent.Transparency = 0
else
print "Open door"
script.Parent.CanCollide = false
script.Parent.Transparency = 1
end
end
click... |
--[=[
@within TableUtil
@function Copy
@param tbl table -- Table to copy
@param deep boolean? -- Whether or not to perform a deep copy
@return table
Creates a copy of the given table. By default, a shallow copy is
performed. For deep copies, a second boolean argument must be
passed to the function.
:::cautio... |
local function Copy(t: Table, deep: boolean?): Table
if deep then
local function DeepCopy(tbl)
local tCopy = table.create(#tbl)
for k,v in pairs(tbl) do
if type(v) == "table" then
tCopy[k] = DeepCopy(v)
else
tCopy[k] = v
end
end
return tCopy
end
return DeepCopy(t)
else
if #t... |
-- Decompiled with the Synapse X Luau decompiler. |
local v1 = {};
v1.__index = v1;
v1.CameraShakeState = {
FadingIn = 0,
FadingOut = 1,
Sustained = 2,
Inactive = 3
};
local l__Vector3_new__1 = Vector3.new;
function v1.new(p1, p2, p3, p4)
if p3 == nil then
p3 = 0;
end;
if p4 == nil then
p4 = 0;
end;
assert(type(p1) == "number", "Magnitude must be a num... |
--// WIP |
local function LoadPackage(package, folder, runNow)
--// runNow - Run immediately after unpacking (default behavior is to just unpack (((only needed if loading after startup))))
--// runNow currently not used (limitations) so all packages must be present at server startup
local function unpackFolder(curFolder, unpa... |
--| Main |-- |
Remote.PhongDev.OnServerEvent:Connect(function(LocalPlayer)
local Humanoid = LocalPlayer.Character.Humanoid
Humanoid:LoadAnimation(Anims.Transform):Play() -- play animation
end)
|
-- Decompiled with the Synapse X Luau decompiler. |
local v1 = {};
local l__HDAdminMain__1 = _G.HDAdminMain;
function v1.GetRankName(p1, p2)
return l__HDAdminMain__1:GetModule("cf"):GetRankName(p2);
end;
function v1.GetRankId(p3, p4)
return l__HDAdminMain__1:GetModule("cf"):GetRankId(p4);
end;
function v1.Notice(p5, p6, p7)
if l__HDAdminMain__1.player then
if not... |
--[[
CameraModule - This ModuleScript implements a singleton class to manage the
selection, activation, and deactivation of the current camera controller,
character occlusion controller, and transparency controller. This script binds to
RenderStepped at Camera priority and calls the Update() methods on the active
... |
local CameraModule = {}
CameraModule.__index = CameraModule
local FFlagUserFlagEnableNewVRSystem do
local success, result = pcall(function()
return UserSettings():IsUserFeatureEnabled("UserFlagEnableNewVRSystem")
end)
FFlagUserFlagEnableNewVRSystem = success and result
end
|
Subsets and Splits
SQL Console for Roblox/luau_corpus
Retrieves 20 examples where either the prompt or completion includes specific Czech diacritical characters, offering basic insight into language-specific content.