I thought a parameter inside of a MouseButton1Down event would return the player's name but it keeps outputting, Workspace.Terminal.Part.SurfaceGui.Frame.Start.Script:7: attempt to index local 'player' (a number value)
Can somebody help me out?
local t = script.parent.parent.Title local s = script.Parent s.MouseButton1Down:Connect(function(player) t:TweenPosition(UDim2.new(0.065,0,-0.6,0),Enum.EasingDirection.In,Enum.EasingStyle.Back,1) s:TweenPosition(UDim2.new(0.065,0,2,0),Enum.EasingDirection.In,Enum.EasingStyle.Back,1) wait (1.5) t.Text = "Welcome, ".. player.Name ..". Please enter your passcode:" t:TweenPosition(UDim2.new(0.065,0,0.15,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,1) end)
Thanks!
Also, if I try switching it to a LocalScript, it flat out does nothing. Like the script literally won't even print something not even in the function and I don't know why.