What do you want to save?
Add Code snippet
New code examples in category Lua
-
-
Phoenix Logan 2022-02-09 11:20:27
functions click on gui roblox
function leftClick() print("Left mouse click") end function rightClick() print("Right mouse click") end script.Parent.MouseButton1Click:Connect(leftClick) script.Parent.MouseButton2Click:Connect(rightClick) Add solution -
A-312 2022-02-03 22:50:13
lua raycasting
EXPAND local function fireLaser() -- Set an origin and directional vector local rayOrigin = caster.Position local rayDirection = Vector3.new(0, -100, 0) -- Build a "RaycastParams" object and cast the ray local raycastParams = RaycastPara... Add solution -
Krish 2022-02-02 18:51:19
roblox how to change color of block
while true do script.Parent.Color = Color3.new(255/255,0/255,0/255) for i = 0,255,10 do wait() script.Parent.Color = Color3.new(255/255,i/255,0/255) end for i = 255,0,-10 do wait() script.Parent.Color = Color3.new(i/255,255/255,0/255) end fo... Add solution -
A-312 2022-02-01 04:31:12
not a valid member roblox
local Touch = workspace:WaitForChild("ItemShopTouch"):WaitForChild("Touch") -- since this is a local script, we can get player easily -- with this local player = game.Players.LocalPlayer -- GUI's in StarterGui will cloned into player... Add solution -