Scripts, models and UI kits for Roblox games.
Nothing is on sale yet. Our first products go up on Roblox and BuiltByBit, and the Discord hears about each one first.
local Players = game:GetService("Players")local LIMIT = 60 -- studs per secondlocal HRP = "HumanoidRootPart"Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) local root = char:WaitForChild(HRP) local pos = root.Position while char.Parent and task.wait(1) do local moved = root.Position - pos if moved.Magnitude > LIMIT then warn(plr.Name, "moved too fast") plr:Kick("Moving too fast") end pos = root.Position end end)end)
OutputPlayer2 moved too fast
local service = "DataStoreService"local saves = game:GetService(service) :GetDataStore("PlayerSaves")local function save(userId, data) local key = "player_" .. userId for attempt = 1, 3 do local ok, err = pcall(function() saves:SetAsync(key, data) end) if ok then return true end warn("Save failed, retrying:", err) task.wait(2 ^ attempt) end return falseendprint("Saved:", save(42, { coins = 250 }))
OutputSaved: true
local TS = game:GetService("TweenService")local button = script.Parentlocal info = TweenInfo.new(0.12)local small = { Size = button.Size }local grow = UDim2.fromOffset(12, 6)local big = { Size = small.Size + grow }button.MouseEnter:Connect(function() TS:Create(button, info, big):Play()end)button.MouseLeave:Connect(function() TS:Create(button, info, small):Play()end)button.Activated:Connect(function() print("Shop opened")end)
OutputShop opened