#GUI scripting. The camera wont move when i clicked the button

1 messages · Page 1 of 1 (latest)

royal plume
#
local button = script.Parent

local camPart = workspace.MainMenuGUI.Skillset.CamPart
local currentcamera = workspace.CurrentCamera



local function ButtonPressed()
    button.Active = false
    button.Visible = false
    
    local TweenService = game:GetService("TweenService")
    local tweeninfo = TweenInfo.new(0.5,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
    TweenService:Create(currentcamera,tweeninfo, {CFrame = camPart.CFrame}):Play()
end

button.MouseButton1Click:Connect(function()
    ButtonPressed()
end)
young grove
royal plume
#

i also just made it scriptable to be sure and it didnt work

#

I just placed a print on the script to see if something happens when i click it and i got no output

young grove
royal plume
past peakBOT
#

studio** You are now Level 1! **studio

young grove
royal plume
#

Let me fix this rq

#

It now detects input