Answers for "roblox how to make local script"

2

getting local player roblox

local Players = game:GetService("Players")
local player = Players.LocalPlayer
Posted by: Guest on October-12-2021
0

what does local mean in roblox

-- A local variable is accessible only in the block where it’s declared. 
-- Local variables are declared using the local statement:

function add(number)
	local myNumber = 50
  	myNumber = myNumber + number -- This will work because is Inside the code Block
end
myNumber = myNumber + 10 -- This wont work because we cannot access it
Posted by: Guest on December-30-2021

Code answers related to "roblox how to make local script"

Browse Popular Code Answers by Language