There is no MouseClick1Down if u look it down here
RBXScriptSignal
Activated ( Instance inputObject )
Fires when the button is activated
RBXScriptSignal
MouseButton1Click ( )
Fired when the mouse has fully left clicked the GUI button
RBXScriptSignal
MouseButton1Down ( int x , int y )
Fired when the mouse is in the left mouse down state on the GUI object
RBXScriptSignal
MouseButton1Up ( int x , int y )
Fired when the left mouse has released the GUI object
RBXScriptSignal
MouseButton2Click ( )
Fired when the mouse has fully right clicked the GUI button
RBXScriptSignal
MouseButton2Down ( int x , int y )
Fired when the mouse is in the right mouse down state on the GUI object
RBXScriptSignal
MouseButton2Up ( int x , int y )
Fired when the right mouse button has been released on a GUI Object
try using
local myPart = Instance.new("Part", game.Workspace) script.Parent.Activated:Connect(function(OnClick) end)~~~~~~~~~~~~~~~~~
or
If left click
local myPart = Instance.new("Part", game.Workspace) script.Parent.MouseButton1Click:Connect(function(OnClick) end)~~~~~~~~~~~~~~~~~
if right click
local myPart = Instance.new("Part", game.Workspace) script.Parent.MouseButton2Click:Connect(function(OnClick) end)~~~~~~~~~~~~~~~~~
If it does not work then message me
MouseClick1Down does not exist thoo check it from here
https://developer.roblox.com/en-us/api-reference/class/TextButton
2 comments
In the first script where it says Second script, It should be for the second script
its MouseButton1Click not MouseClick1Down