Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this work?

Asked by
Oullim 0
8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
local cam = workspace.CurrentCamera
cam.CameraType = "Scriptable"
cam.CoordinateFrame=CFrame.new(-874.681, -337.064, 370.89)
cam.Focus=CFrame.new(-874.957, -337.348, 358.569)
function onButtonClicked() 
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end 

game.Workspace.Play.SurfaceGui.Frame.TextButton.MouseButton1Click:connect(onButtonClicked) 

It focus's fine but then the button wont press... Btw This is a Surface Gui so i dunno Thanks in advance

0
It works fine for me bubbaman73 143 — 8y
0
@bubbaman73 Uh it doesn't for me lol Oullim 0 — 8y
0
That's obvious, though. DeadToMe 105 — 8y
0
@DeadToMe lol... Oullim 0 — 8y
0
Is this a Script or a LocalScript? BlueTaslem 18071 — 8y

Answer this question