Datasets:
completion stringlengths 1 99.7k | text stringlengths 2 14.7k |
|---|---|
pl=game.Players:GetPlayerFromCharacter(w.Part1.Parent)
if pl~=nil then | --("IsAHumanoid") |
local CosmeticPartProvider = PartCacheModule.new(CosmeticBullet, 100, CosmeticBulletsFolder)
| -- NEW V13.1.0 - PartCache tie-in. If you use the PartCache module to create cosmetic bullets, you can now directly tie that in.
-- Ensure you're using the latest version of PartCache. |
local player = game.Players.LocalPlayer
| -- Récupérez le joueur local |
local function visiblearms(bool)
if armsvisible then
local castshadow = not bool
for i, part in ipairs(armparts) do
part.LocalTransparencyModifier = armtransparency
part.CanCollide = false
part.CastShadow = castshadow
end
end
end
| -- loop through all the arm parts and make them visible in first person |
function scriptChildModified(child)
local fileList = animNames[child.Name]
if (fileList ~= nil) then
configureAnimationSet(child.Name, fileList)
end
end
script.ChildAdded:connect(scriptChildModified)
script.ChildRemoved:connect(scriptChildModified)
for name, fileList in pairs(animNames) do
configureAnimatio... | -- Setup animation objects |
-- In build mode, after every time you change this script, copy the script, delete it, and paste it back into your hat, if you don't,
-- nothing will change, I don't know why, but this is how I make my givers. | |
--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... | --[[[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... | --[[[Default Controls]] |
local Drive={}
--Power Front Wheels
if _Tune.Config == "FWD" or _Tune.Config == "AWD" then
for i,v in pairs(car.Wheels:GetChildren()) do
if v.Name=="FL" or v.Name=="FR" or v.Name=="F" then
table.insert(Drive,v)
end
end
end
--Power Rear Wheels
if _Tune.Config == "RWD" or _Tune.Config == "AWD" t... | --[[Drivetrain Initialize]] |
local ClientBridge = require(script.ClientBridge)
local ClientIdentifiers = require(script.ClientIdentifiers)
local ClientProcess = require(script.ClientProcess)
local Types = require(script.Parent.Types)
local Client = {}
function Client.start()
ClientProcess.start()
ClientIdentifiers.start()
end
function Client... | --!strict |
function Flip()
--Detect Orientation
if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then
FlipWait=tick()
--Apply Flip
else
if tick()-FlipWait>=3 then
FlipDB=true
local gyro = car.DriveSeat.Flip
gyro.maxTorque = Vector3.new(10000,0,10000)
gyro.P=30... | --[[Flip]] |
--
function Path:Destroy()
for _, event in ipairs(self._events) do
event:Destroy()
end
self._events = nil
if rawget(self, "_visualWaypoints") then
self._visualWaypoints = destroyVisualWaypoints(self._visualWaypoints)
end
self._path:Destroy()
setmetatable(self, nil)
for k, _ in pairs(self) do
self[k] = nil... | --[[ NON-STATIC METHODS ]] |
--[Don't physically apply alignment to wheels]
--[Values are in degrees]
Tune.FCamber = -1
Tune.RCamber = -1
Tune.FToe = 0
Tune.RToe = 0
| --[[Wheel Alignment]] |
module.GeneralChannelName = "All" -- You can set to nil to turn off echoing to a general channel. | ---[[ Channel Settings ]] |
local function Steering()
local SteerLocal = script.Parent.Values.SteerC.Value
--Mouse Steer
if _MSteer then
local msWidth = math.max(1,mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth/200)
local mdZone = _Tune.Peripherals.MSteerDZone/100
local mST = ((mouse.X-mouse.ViewSizeX/2)/msWidth)
if math.abs(mST)<=mdZ... | --[[Steering]] |
function Prone()
L_87_:FireServer("Prone")
L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), {
CameraOffset = Vector3.new(0, -3, 0)
}):Play()
L_3_:WaitForChild("Humanoid").WalkSpeed = 4
L_127_ = 4
L_126_ = 0.025
L_47_ = true
L_67_ = 0.01
L_66_ = -0.05
L_68_ = 0.05
Proned2 = Vector... | --// Stances |
local configModel = script.Parent.Config
local scoreBlock = script.Parent.ScoreBlock
local uS = configModel.UploadScore
local rS = configModel.RemoteScore
local lSU = configModel.LocalScoreUpdate
uS.Refresh.Value = SCORE_UPDATE
rS.Score.Value = NAME_OF_STAT
rS.Original.Value = PLAYER_SAVE
rS.DataStore.Value = DATA_... | -- Stuff (do not edit below) |
local engineStartTween = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, false, 0)
local Remotes = Vehicle:WaitForChild("Remotes")
local SetThrottleRemote = Remotes:WaitForChild("SetThrottle")
local SetThrottleConnection = nil
local EngineSoundEnabled = true
local TireTrailEnabled = true
loca... | -- tween engine sound volume when we start driving |
local function WaitForChild(parent, childName)
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
| --------------------- TEMPLATE ASSAULT RIFLE WEAPON ---------------------------
-- Waits for the child of the specified parent |
local e=2.718281828459045
local function posvel(d,s,p0,v0,p1,v1,x)
if s==0 then
return p0
elseif d<1-1e-8 then
local h=(1-d*d)^0.5
local c1=(p0-p1+2*d/s*v1)
local c2=d/h*(p0-p1)+v0/(h*s)+(2*d*d-1)/(h*s)*v1
local co=math.cos(h*s*x)
local si=math.sin(h*s*x)
local ex=e^(d*s*x)
return co/ex*c1+si/ex*c2... | --[[
A simplistic spring implementation.
]] |
--p.Ground(part"because cframe and position", zone size, size of part, number how many part spawn, time delay and remove)
--P.Ground(script.parent,độ mở của vòng tròn rock,Size Rock,số rock spawm,Thời gian rock còn trên mặt đất) | |
TracerTransparency = 0;
TracerLightEmission = 1;
TracerTextureLength = 0.1;
TracerLifetime = 0.05;
TracerFaceCamera = true;
TracerColor = BrickColor.new('White');
| --// Tracer Vars |
--
local PlayersService = game:GetService('Players')
local VRService = game:GetService("VRService")
| --[[ Services ]] |
Tune.ABSEnabled = true -- Implements ABS
Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS)
Tune.FBrakeForce = 1500 -- Front brake force
Tune.RBrakeForce = 1000 -- Rear brake force
Tune.PBrakeForce = 5000 -- Handbrake force
Tune.FLgcyBForce = 15000 -- Front brake force [PG... | --[[Brakes]] |
local ratio = 6.1/#themeColors
local themeFrame = pages.custom["AB ThemeSelection"]
local themeDe = true
local function updateThemeSelection(themeName, themeColor)
if themeName == nil then
for i,v in pairs(themeColors) do
if v[1] == main.pdata.Theme then
themeName = v[1]
themeColor = v[2]
break
en... | -- << CUSTOM >>
-- Theme |
function wait_time(duration)
local start = tick()
local Heartbeat = game:GetService("RunService").Heartbeat
repeat Heartbeat:Wait() until (tick() - start) >= duration
return (tick() - start)
end
| -- a better alternative implementation for the wait function |
local DataStoreCache = {}
local DataStore2 = {}
local combinedDataStoreInfo = {}
| --Library |
serverMain:WaitForChild("Plyr").Value = Player
local gunMomentum = Spring.new(V3())
gunMomentum.s = S.momentumSettings.Speed
gunMomentum.d = S.momentumSettings.Damper
local gunRecoilSpring = Spring.new(V3())
gunRecoilSpring.s = S.recoilSettings.springSpeed
gunRecoilSpring.d = S.recoilSettings.springDamper
local ca... | --------------------------------------------------------------------------------------
--------------------[ GUN SETUP ]-----------------------------------------------------
-------------------------------------------------------------------------------------- |
module.ChatOnWithTopBarOff = false
module.ScreenGuiDisplayOrder = 6 -- The DisplayOrder value for the ScreenGui containing the chat.
module.ShowFriendJoinNotification = true -- Show a notification in the chat when a players friend joins the game.
| -- Make the chat work when the top bar is off |
local DataStoreService = game:GetService("DataStoreService")
local OrderedBackups = {}
OrderedBackups.__index = OrderedBackups
function OrderedBackups:Get()
local success, value = pcall(function()
return self.orderedDataStore:GetSortedAsync(false, 1):GetCurrentPage()[1]
end)
if not success then
return false... | --[[
berezaa's method of saving data (from the dev forum):
What I do and this might seem a little over-the-top but it's fine as long as you're not using datastores excessively elsewhere is have a datastore and an ordereddatastore for each player. When you perform a save, add a key (can be anything) with the value of... |
This = script.Parent
Elevator = This.Parent.Parent.Parent
CustomLabel = require(This.Parent.Parent.Parent.CustomLabel)
Characters = require(script.Characters)
CustomText = CustomLabel["CUSTOMFLOORLABEL"]
Elevator:WaitForChild("Floor").Changed:connect(function(floor)
--custom indicator code--
ChangeFloor(tostring(... | --------------------------------------------------- |
function keyDown(K)
local Key = string.lower(K)
if Key == S.Keys.lowerStance and S.canChangeStance then
if (not Running) then
if Stance == 0 then
if S.stanceSettings.Stances.Crouch then
Crouch()
elseif S.stanceSettings.Stances.Prone then
Prone()
end
elseif Stance == 1 then
if S.s... | --------------------[ KEYBOARD FUNCTIONS ]-------------------------------------------- |
t.numberNegative = t.numberMaxExclusive(0)
| --[[**
ensures value is a number where value < 0
@returns A function that will return true iff the condition is passed
**--]] |
local function ApplyTags(target)
while target:FindFirstChild('creator') do
target.creator:Destroy()
end
local creatorTagClone = CreatorTag:Clone()
DebrisService:AddItem(creatorTagClone, 1.5)
creatorTagClone.Parent = target
end
| -- Removes any old creator tags and applies a new one to the target |
function UnDigify(digit)
if digit < 1 or digit > 61 then
return ""
elseif digit == 1 then
return "1"
elseif digit == 2 then
return "!"
elseif digit == 3 then
return "2"
elseif digit == 4 then
return "@"
elseif digit == 5 then
return "3"
elseif digit == 6 then
return "4"
elseif digit == 7 then
... | ----------------------------------
------------FUNCTIONS-------------
---------------------------------- |
local Enabled = true
local mouse = Player:GetMouse()
local ButtonDown = false
local Key = nil
local cooldown = 5
local Debounce = 1
| --Variables-- |
Tune.Config = "RWD" --"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... | --[[Drivetrain]] |
for _, drop in pairs(DROPS:GetChildren()) do
HandleDrop(drop)
end
local t = 0
RunService.Stepped:connect(function(_, deltaTime)
t = t + deltaTime
for drop, dropInfo in pairs(drops) do
local offset = drop.Position - CAMERA.CFrame.p
if math.abs(offset.X) < UPDATE_RANGE and math.abs(offset.Y) < UPDATE_RANGE ... | -- initiate |
local function getClientPlatform()
-- TODO: Get input, and return Keyboard, Controller, or Touch
return "Keyboard"
end
| --[[
Returns the platform / user input of the client.
]] |
type AnyTable = { [any]: any }
local Util = {}
Util.None = newproxy()
| -- Util
-- Stephen Leitnick
-- April 29, 2022 |
Tune.SteerInner = 58 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 58 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = .5 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = .5 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 325 -- Speed of gradient cut... | --[[Steering]] |
local v1 = {
Died = 0,
Running = 1,
Swimming = 2,
Climbing = 3,
Jumping = 4,
GettingUp = 5,
FreeFalling = 6,
FallingDown = 7,
Landing = 8,
Splash = 9
};
local v2 = nil;
local v3 = {};
local l__ReplicatedStorage__4 = game:GetService("ReplicatedStorage");
local v5 = l__ReplicatedStorage__4:FindFirstC... | -- Decompiled with the Synapse X Luau decompiler. |
local l__Ice__1 = game.Players.LocalPlayer:WaitForChild("Data"):WaitForChild("Ice");
local l__Parent__1 = script.Parent;
l__Ice__1.Changed:Connect(function()
if l__Ice__1.Value <= 0.9 and l__Ice__1.Value >= 1 then
l__Parent__1.Crackle.Volume = 0.1;
return;
end;
if l__Ice__1.Value <= 0.1 and l__Ice__1.Value >= ... | -- Decompiled with the Synapse X Luau decompiler. |
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 ... | --[[Transmission]] |
script.Parent.Parent.Values.RPM.Changed:connect(function()
local t = 0
t = (totalPSI*20)
BOVact = math.floor(t)
end)
script.Parent.Parent.Values.RPM.Changed:connect(function()
wait(0.1)
local t2 = 0
t2 = (totalPSI*20)
BOVact2 = math.floor(t2)
end)
script.Parent.Parent.Values.RPM.Changed:connect(function()
if B... | --BOV-- |
local RebirthFormule = game:GetService("ReplicatedStorage").GameProperties.RebirthFormule
local Formula = RebirthFormule.Value + (RebirthFormule.Value * Multiplier.Value)
local MultiplierFormule = game:GetService("ReplicatedStorage").GameProperties.MultiplierFormule | --Formula secreta del crustacio kaskarudo |
Tune.FGyroDamp = 100 -- Front Wheel Non-Axial Dampening
Tune.RGyroDamp = 100 -- Rear Wheel Non-Axial Dampening
| --[[Wheel Stabilizer Gyro]] |
--
local MouseLockController = {}
MouseLockController.__index = MouseLockController
function MouseLockController.new()
local self = setmetatable({}, MouseLockController)
self.isMouseLocked = false
self.savedMouseCursor = nil
self.boundKeys = {Enum.KeyCode.Z} -- defaults
self.mouseLockToggledEvent = Instance.new... | --[[ The Module ]] |
local SurfaceArtSelector = Roact.Component:extend("SurfaceArtSelector")
SurfaceArtSelector.defaultProps = {
numItemsPerPage = 3,
}
function SurfaceArtSelector:init()
self.isAnimating = false
self.position, self.updatePosition = Roact.createBinding(0)
self.target, self.updateTarget = Roact.createBinding(0)
self.... | --[[
UI to select the surface art to place onto the canvas.
]] |
t.Instance = primitive("Instance")
| --[[**
ensures Roblox Instance type
@param value The value to check against
@returns True iff the condition is satisfied, false otherwise
**--]] |
function IconController.setGameTheme(theme)
IconController.gameTheme = theme
local icons = IconController.getIcons()
for _, icon in pairs(icons) do
icon:setTheme(theme)
end
end
function IconController.setDisplayOrder(value)
value = tonumber(value) or TopbarPlusGui.DisplayOrder
TopbarPlusGui.DisplayOrder = val... | -- METHODS |
local O = true
function onClicked()
if O == true then
O = false
One()
elseif O == false then
O = true
Two()
end
end
script.Parent.MouseButton1Down:connect(onClicked)
| -- Don't edit below unless you know what you're doing. |
type Service = {
Name: string,
Client: ServiceClient,
KnitComm: any,
[any]: any,
}
| --[=[
@interface Service
.Name string
.Client ServiceClient
.KnitComm Comm
.[any] any
@within KnitServer
]=] |
CameraGo = true; -- No touchy
FirstPersonOnly = false; -- SET THIS TO FALSE TO ENABLE THIRD PERSON, TRUE FOR FIRST PERSON ONLY
TPSMouseIcon = 1415957732; -- Image used as the third person reticle
| --// Dev Vars |
local RunSpeed = 23 -- Change this to the speed you want the player to go
local AfterSpeed = 16 -- Best if you leave this alone. This is the speed the player will be after pressing shift.
| --RUNNING SCRIPT--
------------------------------- |
return function(tbl)
--- Variables
local found = false
--- Scan local function
local function Scan(v)
--- Already found userdata
if found then
return
end
--- Iterate
for key, value in pairs(v) do
--- Already found userdata
if found then
return
end
--- Main check
if type(... | --[[
Returns true if a table/dictionary contains userdata (somewhat deep)
Functions.HasUserdata(
table, <-- |REQ| Table/dictionary
)
--]] |
local Support = require(Libraries:WaitForChild 'SupportLibrary')
| -- Libraries |
SteeringAngle = 40 --{Steering angle in degrees}
SteerSpeed = 0.05 --{.01 being slow, 1 being almost instantly}
TiresFront = 2 --{1 = eco, 2 = road, 3 = sport}
TiresRear = 2 --{1 = eco, 2 = road, 3 = sport}
DownforceF = 0 --{[0-5] Provides downforce to the front at the cost of drag}
DownforceR = 0 --{[0-5] Provides do... | --//Handling//-- |
function TaskScheduler:CreateScheduler(targetFps)
local scheduler = {}
local queue = {}
local sleeping = true
local event,paused
local start
local frameUpdateTable = {}
local sleep--get syntax highlighter to shut up on line 68
local function onEvent()
local iterationStart = tick()
local targetFrameUpdate... | --[[
param targetFps Task scheduler won't run a task if it'd make the FPS drop below this amount
(WARNING) this only holds true if it is used properly. If you try to complete 10 union operations
at once in a single task then of course your FPS is going to drop -- queue the union operations
up one at... |
UpdateBackpackLayout()
| -- Position the frames and sizes for the Backpack GUI elements |
for name, fileList in pairs(animNames) do
animTable[name] = {}
animTable[name].count = 0
animTable[name].totalWeight = 0
-- check for config values
local config = script:FindFirstChild(name)
if (config ~= nil) then | -- Setup animation objects |
--
Tune.FBrakeForce = 300 -- Front brake force
Tune.RBrakeForce = 250 -- Rear brake force
Tune.PBrakeForce = 500 -- Parking brake force
Tune.LinkedBrakes = true -- Links brakes up, uses both brakes while braking
Tune.BrakesRatio = 60 -- The ratio of the brakes (0 = rear brake; 100 = front brake)
| --[[Brakes]] |
Queue._gameMode = Conf.default_game_mode
Queue._destinationId = Conf.modes[Queue._gameMode].gameplay_place
Queue._timeoutEnabled = true
| ----------------------- |
_BuildVersion = require(script.Parent.README)
| --[[START]] |
WalkAnimEnabled = true; -- Set to false to disable walking animation, true to enable
SwayEnabled = true; -- Set to false to disable sway, true to enable
TacticalModeEnabled = false; -- SET THIS TO TRUE TO TURN ON TACTICAL MODEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
| --// Extras |
local u1 = nil;
coroutine.wrap(function()
u1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
end)();
local v1 = {
New = function(p1, p2, p3, p4)
p2 = p2 or Color3.new(0.2, 0.2, 0.2);
p3 = p3 or Enum.Font.FredokaOne;
p4 = p4 or Enum.FontSize.Size18;
u1.StarterGui:SetCore("ChatMakeSystemMessage",... | -- Decompiled with the Synapse X Luau decompiler. |
local function fields(defaults)
if defaults == nil then
defaults = {}
end
return function(input)
local _object = {}
for _k, _v in pairs(defaults) do
_object[_k] = _v
end
if type(input) == "table" then
for _k, _v in pairs(input) do
_object[_k] = _v
end
end
return _object
end
end
return {
... | -- Compiled with roblox-ts v1.3.3 |
--[Cubic stud : pounds ratio]
--[STANDARDIZED: Don't touch unless needed]
Tune.WeightScaling = 1/50 --Default = 1/50 (1 cubic stud = 50 lbs)
Tune.LegacyScaling = 1/10 --Default = 1/10 (1 cubic stud = 10 lbs) [PGS OFF]
return Tune
| --[[Weight Scaling]] |
local set = script.Settings
local sp = set.Speed
local enabled = set.Enabled
local loop = set.Loop
local debug_ = set.Debug
local hum = script.Parent:WaitForChild("Humanoid")
if debug_.Value == true then
if hum then
print("Success")
else
print("No Humanoid")
end
end
local humanim = hum:LoadAnimation(script:Find... | --Variables-- |
R6TorsoTuckIn = .5
R6RightArmTuckIn = .2
R6LeftArmTuckIn = .2
| --Tuck in |
ChargedShotEnabled = false;
ChargingTime = 1;
| -- ====================
-- CHARGED SHOT
-- Make a gun charging before firing. Useful for a gun like "Railgun" or "Laser Cannon"
-- ==================== |
local DoorFX = {}
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
function DoorFX.OPEN(door)
if not door then return end
for i = 1, 2 do
tweenService:Create(door["Door" .. i].PrimaryPart, tweenInfo, {CFrame = door["Doo... | --This module is for any client FX related to the DoubleDoor |
function ServiceBag:Init()
assert(not self._initializing, "Already initializing")
assert(self._serviceTypesToInitializeSet, "Already initialized")
self._initializing = true
while next(self._serviceTypesToInitializeSet) do
local serviceType = next(self._serviceTypesToInitializeSet)
self._serviceTypesToInitiali... | --[=[
Initializes the service bag and ensures recursive initialization
can occur
]=] |
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 ... | --[[Transmission]] |
Tune.Weight = 3000 -- 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, can be <0 or >100)... | --[[Weight and CG]] |
local Pcolors = {{255, 255, 255}, {255, 180, 161}, {226, 231, 255}}
local Lcolors = {{255, 255, 255}, {255, 237, 199}, {205, 227, 255}}
local INDcolor = {255, 130, 80}
local plactive = false
local prevChild
F.Setup = function(light_type, popups, tb, fog_color)
event.IndicatorsAfterLeave.Disabled = true
for idx, c... | -- server side setup |
--Torque Curve
Tune.Horsepower = script.Tune_HorsePower.Value -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 6000 -- Use sliders to manipulate values
Tune.Redline = 6700 -- Copy and paste slider values into the respective tune values
Tune.EqP... | --[[Engine]] |
CanToggleMouse = {allowed = true; activationkey = Enum.KeyCode.F;} -- lets you move your mouse around in firstperson
CanViewBody = true -- whether you see your body
Sensitivity = 0.6 -- anything higher would make looking up and down harder; recommend anything between 0~1
Smoothness = 0.05 -- recommend anything bet... | -- you can mess with these settings |
function NpcModule.Walk(Npc, Pos, PathParams, Return)
local Path = NpcModule.GetPath(Npc, Pos, PathParams)
local Humanoid = Npc:FindFirstChild("Humanoid")
if Path ~= false then
if Humanoid then
for I, Waypoint in pairs(Path:GetWaypoints()) do
Humanoid:MoveTo(Waypoint.Position)
Humanoid.MoveToFinished:... | -- Module 3 |
--
local PlayersService = game:GetService('Players')
local VRService = game:GetService("VRService")
local CameraInput = require(script.Parent:WaitForChild("CameraInput"))
local Util = require(script.Parent:WaitForChild("CameraUtils"))
| --[[ Services ]] |
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local humanoid = character:WaitForChild("Humanoid")
local PlayerGui = player:WaitForChild("PlayerGui") | -- Local player |
function onRunning(speed)
if speed>0 then
pose = "Running"
else
pose = "Standing"
end
end
function onDied()
pose = "Dead"
end
function onJumping()
pose = "Jumping"
end
function onClimbing()
pose = "Climbing"
end
function onGettingUp()
pose = "GettingUp"
end
function onFreeFall()
pose = "FreeFall"
end... | -- functions |
local function AddRecentApp(App)
if RecentAppEnabled == true then
local sameapp = false
if home:FindFirstChild(App) then
if side.RecentApps:FindFirstChild(App) then
sameapp = true
end
side.Status:TweenPosition(UDim2.new(0.094,0,0.638,0), "InOut", "Quint", 0.5, true)
side.B1:TweenPosition(UDim2.new(0.024... | --Functions (Needed to organize) |
local frame = main.gui.MainFrame.Pages.Settings
local pages = {
custom = frame.Custom;
}
local themeColors = main.settings.ThemeColors or {
{"Red", Color3.fromRGB(150, 0, 0), };
{"Orange", Color3.fromRGB(150, 75, 0), };
{"Brown", Color3.fromRGB(120, 80, 30), };
{"Yellow", Color3.fromRGB(130, 120, 0), };
{"... | -- << VARIABLES >> |
ScrollingFrame = NewGui('ScrollingFrame', 'ScrollingFrame')
ScrollingFrame.Selectable = false
ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
ScrollingFrame.Parent = InventoryFrame
UIGridFrame = NewGui('Frame', 'UIGridFrame')
UIGridFrame.Selectable = false
UIGridFrame.Size = UDim2.new(1, -(ICON_BUFFER*2), 1, 0)
UIG... | -- Make the ScrollingFrame, which holds the rest of the Slots (however many) |
if not shellyGood then bp.Parent,bg.Parent= nil,nil return end
bp.Parent = nil
wait(math.random(3,8))
end
local soundBank = game.ServerStorage.Sounds.NPC.Shelly:GetChildren()
shelly.Health.Changed:connect(function()
if shellyGood then
bp.Parent,bg.Parent= nil,nil
shelly.PrimaryPart.Transparency =1
shelly.PrimaryPar... | --bp.Position = shelly.PrimaryPart.Position |
local KEY_BASE_FRAME = "BaseFrame"
local KEY_BASE_MESSAGE = "BaseMessage"
local KEY_UPDATE_TEXT_FUNC = "UpdateTextFunction"
local KEY_GET_HEIGHT = "GetHeightFunction"
local KEY_FADE_IN = "FadeInFunction"
local KEY_FADE_OUT = "FadeOutFunction"
local KEY_UPDATE_ANIMATION = "UpdateAnimFunction"
local TextService = game:... | ---Creator function return object keys |
character:FindFirstChild("UpperTorso").LocalTransparencyModifier = 0
character:FindFirstChild("LowerTorso").LocalTransparencyModifier = 0 | -- Left Leg |
function Component:render()
local internalData = self[InternalData]
local message = componentMissingRenderMessage:format(
tostring(internalData.componentClass)
)
error(message, 0)
end
| --[[
Returns a snapshot of this component given the current props and state. Must
be overridden by consumers of Roact and should be a pure function with
regards to props and state.
TODO (#199): Accept props and state as arguments.
]] |
local footstepsSound = rootPart:WaitForChild("Footsteps")
| -- Sounds |
DualWeldEnabled = false; --Enable the user to hold two guns instead one. In order to make this setting work, you must clone its PrimaryHandle and name it like SecondaryHandle. NOTE: Enabling "CustomGripEnabled" won't make this setting working
AltFire = false; --Enable the user to alt fire. NOTE: Must have aleast... | -- ====================
-- MISCELLANEOUS
-- Etc. settings for the gun
-- ==================== |
vSpeed = math.sqrt((vParts.Seat.Velocity.x)^2+(vParts.Seat.Velocity.y)^2+(vParts.Seat.Velocity.z)^2)
PS.Coords.Text =" Coords: " .."("..math.ceil(vParts.Seat.Position.x)..","..math.ceil(vParts.Seat.Position.z)..")"
PS.Alt.Text =" Altitude: ".. math.ceil(vParts.Seat.Position.y).." ft"
PS.Speed.Text = " Speed: ".. ... | --Basic stuff for the GUI interface |
... | --[END]]
--[[ Last synced 10/14/2020 09:23 || RoSync Loader ]] |
function RemoteSignal:Connect(fn)
if self._directConnect then
return self._re.OnServerEvent:Connect(fn)
else
return self._signal:Connect(fn)
end
end
function RemoteSignal:_processOutboundMiddleware(player: Player?, ...: any)
if not self._hasOutbound then
return ...
end
local args = table.pack(...)
for _,... | --[=[
@param fn (player: Player, ...: any) -> nil -- The function to connect
@return Connection
Connect a function to the signal. Anytime a matching ClientRemoteSignal
on a client fires, the connected function will be invoked with the
arguments passed by the client.
]=] |
["Walk"] = "http://www.roblox.com/asset/?id=507767714",
["Idle"] = "http://www.roblox.com/asset/?id=507766666",
["SwingTool"] = "rbxassetid://1262318281"
}
local anims = {}
for animName,animId in next,preAnims do
local anim = Instance.new("Animation")
anim.AnimationId = animId
game:GetService("ContentProvider"):Preloa... | --["Walk"] = "rbxassetid://1136173829", |
return function(data, env)
if env then
setfenv(1, env)
end
local playergui = service.PlayerGui
local localplayer = service.Players.LocalPlayer
local scr = client.UI.Prepare(script.Parent.Parent)
local window = scr.Window
local msg = data.Message
local color = data.Color
local found = client.UI.Get("Outpu... | --// All global vars will be wiped/replaced except script |
bike.DriveSeat.ChildRemoved:connect(function(child)
--[[if child.Name=="SeatWeld" and child:IsA("Weld") then
script.Parent:Destroy()
end]]
bike.Body.bal.LeanGyro.D = 0
bike.Body.bal.LeanGyro.MaxTorque = Vector3.new(0,0,0)
bike.Body.bal.LeanGyro.P = 0
bike.RearSection.Axle.HingeConstraint.MotorMaxTorqu... | --[[Shutdown]] |
local Owners={} -- Can set SuperAdmins, & use all the commands
local SuperAdmins={} -- Can set permanent admins, & shutdown the game
local Admins={} -- Can ban, crash, & set Moderators/VIP
local Mods={} -- Can kick, mute, & use most commands
local VIP={} -- Can use nonabusive commands only on self | --------------------------------------------------------------
-- You DO NOT need to add yourself to any of these lists!!! --
-------------------------------------------------------------- |
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... | --these are for button checks. It's kinda ugly so if you have a better way pm me |
Tune.LoadDelay = .1 -- 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
| --[[Misc]] |
Dataset card
The Luau dataset is a collection of code fragments collected from the Roblox Luau Data Sharing program.
Only experiences where creators gave us permission to contribute to the public Luau Dataset were used for producing this dataset.
Languages:
Lua, Luau
License:
MIT
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Format:
The dataset format is in jsonl format, with prompt / completion fields.
Dataset usage:
This dataset is designed for fine tuning large language models.
Risks:
The dataset has been filtered for various quality signals, though Roblox makes no guarantees of data quality.
Evaluation:
We have found that typically fine tuning a generalist code LLM improve it’s performance on Roblox Lua code quality by 10 to 20%.
- Downloads last month
- 13