S

@sphandR

bj

Lua
1 year ago
math.randomseed(os.time()) local name = 1 local value = 2 local cardArray = { {"Two", 2}, {"Three", 3}, {"Four", 4}, {"Five", 5}, {"Six", 6}, {"Seven", 7},

study

Lua
1 year ago
--local script local gunModel = script.Parent.Parent local remoteEvent = gunModel.Gun:WaitForChild("RemoteEvent") local currentPlayer, mouse, connection local canFire = true local cooldownTime = 0.25 local lastFireTime = 0

practice

Lua
1 year ago
--localscript local gunModel = script.Parent.Parent local remoteEvent = gunModel.Gun:WaitForChild("RemoteEvent") local currentPlayer, mouse, connection local canFire = true local cooldownTime = 0.25 local lastFireTime = 0

walkScript

Lua
1 year ago
local player = game:GetService("Players").LocalPlayer local uis = game:GetService("UserInputService") local keyCode = Enum.Keycode.LeftShift local runDiff = -7 uis.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed and player.Character:FindFirstChild("Humanoid") then if input == keyCode then player.Character.Humanoid.Walkspeed += runDiff end

gulp

Lua
1 year ago
--serverscript local event = game.ReplicatedStorage:WaitForChild("timeAbility") local ts = game:GetService("TweenService") local tsSound = game.Workspace.sounds.tsStart local tsResume = game.Workspace.sounds.tsResume local lastUsedTime = 0 local cooldownTime = 15 event.OnServerEvent:Connect(function(player) local currentTime = tick()

map

Lua
1 year ago
--{Breakable Bridges}-- --breakableBridge1 local breakingSound = game.Workspace.Sounds.breakingSound local breakSound = game.Workspace.Sounds.breakSound local breakableBridge1 = game.Workspace.map.breakableBridge1 script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then breakingSound:Play()

read-only table

Lua
1 year ago
function readOnly(t) local proxy = {} local mt = { __index = t, __newindex = function(t, k, v) error("attempt to update a read-only table", 2) end } setmetatable(proxy, mt) return proxy

test

Lua
1 year ago
math.randomseed(os.time()) dice = math.random(1, 5) function testFunction() if (dice == 1) then print("dice = 1") elseif (dice == 2) then print("dice = 2") elseif (dice == 3) then print("dice = 3")

executer

Lua
1 year ago
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "🐱‍🏍optic executer🐱‍🏍", Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default). LoadingTitle = "optics loader", LoadingSubtitle = "by optic services", Theme = "Default", -- Check https://docs.sirius.menu/rayfield/configuration/themes DisableRayfieldPrompts = false,

markov chain

Lua
1 year ago
-- LUA MARKOV GENERATOR; ; local markovOrder = 3; local markovChainLength = 16; local randomStart = 0; local markovInputList = {1, 5, 7, 8, 3, 2, 1, 9, 3, 4, 6, 8, 2}; ; math.randomseed(os.time()- os.clock() * 1000); ; print("LUA MARKOV GENERATOR");

maze

Lua
1 year ago
io.output(south) local rooms = {} rooms[1] = { south=3, east=2 } rooms[2] = { south=4, west=1

asd

Lua
1 year ago
host = "www.w3.org" file = "/TR/REC-html132.html" while true do local s, status = c:recieve(2^10) io.write(s) if status == "closed" then break end end function download(host, file)

Tubers 93 gui

Lua
1 year ago
print 'script by tubers93BackBackBack' --[INSTANCES] local main = Instance.new("ScreenGui") local frame = Instance.new("Frame") local titler = Instance.new("TextLabel") local button = Instance.new("TextButton") local button2 = Instance.new("TextButton") local button3 = Instance.new("TextButton")

asd

Lua
1 year ago
local array = {math.cos(3), math.sin(1), 9, 6} table.insert(array, 2, 7) table.sort(array) table.remove(array, 2) for i, v in ipairs(array) do print(i, v) end

sine

Lua
1 year ago
-- Import the math library (it's usually available by default) local math = require("math") -- Define an angle in radians local angle = math.pi / 4 -- Calculate the sine of the angle local sine_value = math.sin(angle)

NumberGuess

Lua
1 year ago
math.randomseed(os.time()*1000000) dice = math.random(1, 100) botDice = math.random(1, 100) playerInput = 67 playerDiff = math.abs(playerInput - dice) function rollFunction()

LOVE2D Test

Lua
1 year ago
--{Load}-- function love.load() target = {} target.x = 300 target.y = 300 target.radius = 50 score = 0 timer = 0

asd

Lua
1 year ago
math.randomseed(os.time()- os.clock() * 1000); -- make dictionary; function defaultdict(default_value_factory); local t = {}; local metatable = {}; metatable.__index = function(t, key); if not rawget(t, key) then; rawset(t, key, default_value_factory(key)); end; return rawget(t, key);

STI

Lua
1 year ago
--- Simple and fast Tiled map loader and renderer. -- @module sti -- @author Landon Manning -- @copyright 2019 -- @license MIT/X11 local STI = { _LICENSE = "MIT/X11", _URL = "https://github.com/karai17/Simple-Tiled-Implementation", _VERSION = "1.2.3.0",

LOVE2D

Lua
1 year ago
--{Load}-- function love.load() target = {} target.x = 300 target.y = 300 target.radius = 50 score = 0 timer = 0