Is Roblox Studio Broken?

Hi im trying to Tween a model called KeyCode But it print me this error.


Here’s my explorer

and here’s my script

local Tweenservice = game:GetService("TweenService")
local Pressed = false
script.Parent.MouseClick:Connect(function(plr)
	if Pressed == false then
		local Tween = Tweenservice:Create(workspace.Stage1.KeyCode.PrimaryPart, TweenInfo.new(.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, .5), {CFrame = workspace.KeyPad.PositionOut.CFrame})
		Pressed = true
		Tween:Play()
	end


end)

the keycode is suppose to tween when the player press the button but instead it printed an error
but the error said keypad not keycode which leave me confused. the keycode was name “KeyPad” but i changed it to “KeyCode” and there is no other instance called KeyPad. Please Help me

2 Likes

Can you show where is the KeyPad object in explorer window?

2 Likes

Its in game.Workspace.Stage1.KeyCode

1 Like

They mean KeyPad, not KeyCode.

2 Likes

Yes, but there’s no instance called “KeyPad”

2 Likes

The error says KeyPad is not a valid member of Workspace.

2 Likes

I think there is no KeyPad object exists as I can see in explorer picture, so you need to replace this:

workspace.KeyPad.PositionOut.CFrame

to this:

workspace.Stage1.KeyCode.PositionOut.CFrame

2 Likes

Yeah, that should fix the problem…

1 Like

It’s probably about your studio mine is not broken yet…

1 Like