For some reason my Click Detector that I had put inside of my Local Script / Script (tried both) doesn’t detect when it’s clicked on. Does anyone know what causes this?
Code:
local ts = game:GetService("TweenService")
local labdoor = script.Parent.Parent["Laboratory door"]
local cframe = labdoor.CFrame
local goal = {Position = Vector3.new(484.15, 67.44, 188.125)}
local tweeninfo = TweenInfo.new(1)
local tween = ts:Create(labdoor, tweeninfo, goal)
script.Parent.MouseClick:Connect(function(plr)
print(plr.Name, " pressed the button!")
tween:Play()
end)
I tried putting it both inside and outside of click detector, server sided and client sided script, but they don’t seem to do anything.