of     1   

xRman
#149859162Sunday, November 16, 2014 6:04 AM GMT

You click the part, and you hold it down to make the Transparency 1. If you let go, the brick will have Transparency 0. Basically, I have a simple click detector script that you click once, transparency 1, click again, transparency 0. Is there any way to make it so if you click & hold, transparency 1, let go, transparency 0. function onClicked(playerWhoClicked) if game.Workspace.Lights.rvl.L.Enabled == false then game.Workspace.rvc.Transparency = 1 game.Workspace.Lights.rvl.L.Enabled = true else game.Workspace.rvc.Transparency = 0 game.Workspace.Lights.rvl.L.Enabled = false end end script.Parent.ClickDetector.MouseClick:connect(onClicked) The script works, but I don't know how to make it click & hold.
[rfa#hidefromsearch]
#149859608Sunday, November 16, 2014 6:13 AM GMT

[rfa#hidefromsearch]
[rfa#hidefromsearch]
#149859749Sunday, November 16, 2014 6:16 AM GMT

[rfa#hidefromsearch]
xRman
#149860181Sunday, November 16, 2014 6:25 AM GMT

"MouseUp is not a valid member of ClickDetector"
Drakles
#149862599Sunday, November 16, 2014 7:29 AM GMT

Change MouseClick to MouseButton1Down. Change MouseUp to MouseButton1Up.
xRman
#149899860Sunday, November 16, 2014 9:17 PM GMT

MouseButton1Down is not a valid member of ClickDetector.
xRman
#149901148Sunday, November 16, 2014 9:34 PM GMT

b1
xRman
#149904535Sunday, November 16, 2014 10:21 PM GMT

b2
xRman
#149905749Sunday, November 16, 2014 10:36 PM GMT

b3
xRman
#149908033Sunday, November 16, 2014 11:06 PM GMT

b4...
Happywalker
#149908688Sunday, November 16, 2014 11:15 PM GMT

ClickDetectors don't have a release event I think
C_Sharper
#149909147Sunday, November 16, 2014 11:22 PM GMT

local script in startergui local targeting = "" --Name of the brick in workspace local mouse = game.Players.LocalPlayer:GetMouse() local down = false mouse.Button1Down:connect(function() down = true end) mouse.Button1Up:connect(function() down = false end) while true do wait() if down == true then if mouse.Target == game.Workspace:WaitForChild(targeting) then for i = 0,1,.1 do mouse.Target.Transparency = i wait() end end elseif down == false and mouse.Target == game.Workspace:WaitForChild(targeting) then game.Workspace:WaitForChild(targeting).Transparency = 0 end end Didn't write in studio. The targeting variable is the brick in Workspace.
Happywalker
#149936046Monday, November 17, 2014 6:28 AM GMT

It's not a Gui, it's a brick e.e, and it could be more efficient without dat loop.
C_Sharper
#149946928Monday, November 17, 2014 4:20 PM GMT

Happy, this functions correctly. But goes in the StarterGui. Obviously I'm more advanced then chu c:

    of     1