Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

MouseButton1Click isn't valid member of TextButton?

So it says Mouse MouseButton1Click isn't valid member of TextButton but its a Text button so why doesn't it work?

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera


script.Parent.Mousebutton1Click:Connect(function()
	script.Parent.Parent.Parent:WaitForChild("Frame").Visible = true
repeat wait()
	Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
	Camera.CFrame = workspace.CameraPart.CFrame
	script.Parent.Frame.TextButton.MouseButton1Click:Connect(function()
		script.Parent.Frame.Visible = false
	end)
	
	
	
	end)

1 answer

✓ Accepted answer

Accept this answer because it's so good.

script.Parent.MouseButton1Click:Connect(function()

You wrote a lowercase "b" silly

2 comments

1

Ohhhhhh Oof

0

accept pls

This discussion is preserved as it was. New answers, comments, and votes are closed.