Roblox lua how to apply gravity to a object

roblox lua how to apply gravity to a object local part = script.Parent part.Anchored = false –applys gravity forces game.Workspace.Gravity = 196.2 –sets the default gravity
roblox lua how to apply gravity to a object local part = script.Parent part.Anchored = false –applys gravity forces game.Workspace.Gravity = 196.2 –sets the default gravity
roblox lua get game place id local placeid = game.PlaceId print(placeid)
roblox lua exploiting rconsole roblox lua metatable
roblox key pressed script local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.KeyDown:connect(function() print(“Pressed a key.”) end)
roblox check if player has gamepass local id = –gamepass id here game.Players.PlayerAdded:Connect(function(player) if game:GetService(“MarketplaceService”):UserOwnsGamePassAsync(player.UserId,id) then –do what you want to do in here end end)
rgb to hex lua — passing a table like {255, 100, 20} function application:rgbToHex(rgb) local hexadecimal = ‘0X’ for key, value in pairs(rgb) do local hex = ” while(value > 0)do local index = math.fmod(value, 16) + 1 value = math.floor(value / 16) hex = string.sub(‘0123456789ABCDEF’, index, index) .. hex end if(string.len(hex) == 0)then hex […]
repeat until lua — Prints all square numbers up to 100 c = 1 repeat print(c .. ” squared is ” .. c*c) c = c + 1 until c == 101
Remote functions and events example in lua local NewBlewPart = game.Workspace.Neon –Make a Part and name i To “Neon” NewBlewPart.Touched:Connect(function() print(“You Touched Me!”) –Says a Dialogue When Touched The Part “NewBlewPart” Which is Just a Variable For a Base Part. wait(1) end) –Script Officially Made By Rigby#9052 on Discord
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 […]
print table lua function print_table(node) local cache, stack, output = {},{},{} local depth = 1 local output_str = “{\n” while true do local size = 0 for k,v in pairs(node) do size = size + 1 end local cur_index = 1 for k,v in pairs(node) do if (cache[node] == nil) or (cur_index >= cache[node]) then […]