What do you want to save?
Add Code snippet
New code examples in category Lua
-
Meredith Rodriguez 2021-09-04 09:27:01
Print the sum of all the odd or even numbers until a given number lua
local function Solve(Range, Limit, CrashRange, OddMode) local Range = Range or 1 local Limit = Limit or 1 local CrashRange = CrashRange or 999999999 local OddMode = OddMode or false local Even = {} local Odd = {} local Result =... Add solution -
Ecir Hana 2021-09-03 17:45:02
remote event unable to cast value to object roblox
-- server script -- You need to specify the PLAYER that you want to fire to local player = game:GetService("Players").PLAYERNAME local event = game.ReplicatedStorage.RemoteEvent remoteEvent:FireClient(player, "arguments") -- or you ... Add solution -
ThaddeusB 2021-09-01 04:26:02
Roblox camera manipulation
local player = game.Players.LocalPlayer -- Checks the player it is in. local character = player.Character or player.CharacterAdded:Wait() -- Finds the character but if its not found it waits for it. local camera = workspace.CurrentCamera -- Finds the curr... Add solution -
Springgirl 2021-08-27 11:36:01
draw circle love2d
-- DrawMode: "fill" or "line" love.graphics.circle(DrawMode, x, y, radius, segments) -- Example function love.draw() love.graphics.setColor(1, 0, 0) love.graphics.circle("fill", 300, 300, 50, 5) -- Draw red circle wi... Add solution