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)
#GUI scripting. The camera wont move when i clicked the button
1 messages · Page 1 of 1 (latest)
Camera has to be in Scriptable mode
It already was from another script
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
Where is the script? I assume it's a LocalScript
Yeah it's a localscript under a part which a surfacegui is assigned to under workspace
** You are now Level 1! **
LocalScripts don't run in the workspace
Oh...
Let me fix this rq
It now detects input