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