Search
 
SCRIPT & CODE EXAMPLE
 

LUA

how to execute scripts when a button gui is pressed 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)
Comment

PREVIOUS NEXT
Code Example
Lua :: lua 
Lua :: roblox get player from character 
Lua :: how to choose a random item from a table lua 
Lua :: roblox lua random number 
Lua :: luau region 
Lua :: roblox kill brick script 
Lua :: how to stop a renderstepped loop in lua 
Lua :: roblox loop players 
Lua :: Connect Text Label to Leaderstats 
Lua :: luau how to find value in table 
Lua :: loop true childs roblox 
Lua :: roblox rotate model 
Lua :: repeat until lua 
Lua :: lua list of all keys 
Lua :: lua print 
Lua :: lua oop 
Lua :: how to make everyone on team see each other name roblox 
Lua :: roblox add attribute 
Lua :: how do i use the enums module lua assist 
Lua :: how to make a run in roblox lua 
Lua :: roblox part touched 
Matlab :: matlab plot vertical line 
Matlab :: matlab 1d matrix declarationg 
Matlab :: zsh corrupt history file 
Basic :: c++ code to c code converter 
Elixir :: elixir ecto query to sql 
Elixir :: split list in elixir 
Scala :: How to make immutable variable in scala 
Actionscript :: mv ~/.npmrc ~/.npmrc.old npm prefix -g 
Excel :: excel paste delimited text into separate columns 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =