repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
Roblox/gear | Roblox-gear-28b88df/src/gear/999866560/src/SwordScript.server.luau | luau | .luau | --// Made by StarWars
local Tool = script.Parent
local Handle = Tool:FindFirstChild("Handle")
if not Handle then return end
local Sword = require(754568173)
local Player = nil
local Character = nil
local Humanoid = nil
local Torso = nil
local SwordData = Sword.SwordFunctions.GetData("Cane")
local SwordModel = Sword... | 461 |
Roblox/gear | Roblox-gear-28b88df/src/getUploadedAssetForComparison.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local function getUploadedAssetForComparison(sourceGear: Instance): Instance?
for _, rawGear in ReplicatedStorage.Assets:GetChildren() do
if rawGear.Name == sourceGear.Name then
return rawGear
end
end
return nil
end
return getUploadedAssetForCom... | 75 |
Roblox/gear | Roblox-gear-28b88df/src/preloadSounds.luau | luau | .luau | local ContentProvider = game:GetService("ContentProvider")
-- `Sound.TimeLength` reads 0 until the engine has fetched the audio, so any
-- comparison has to wait for both trees to finish loading first.
local function preloadSounds(roots: { Instance? })
local sounds = {}
for _, root in roots do
if root == nil then
... | 165 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.