You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I made a tablet part that goes up everytime you click a key on your keyboard. The tablet part tweens up perfectly fine but it wont work when i try and make it go down. -
What is the issue? Include screenshots / videos if possible!
I dont know what im doing wrong -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried YT and Devforum
Here is my open code:
RunService.RenderStepped:Connect(function()
local Monitor = game.ReplicatedStorage.Monitor:Clone()
Monitor.Parent = game.Workspace.CurrentCamera
local MonitorPart = Monitor:FindFirstChild("Monitor")
local MonitorDown = Monitor:WaitForChild("MonitorDown")
local MonitorUp = MonitorPart.Parent:WaitForChild("MonitorUp")
local ts = game:GetService("TweenService")
local openMonitor = ts:Create(MonitorPart, TweenInfo.new(0.3), {CFrame = MonitorUp.CFrame})
openMonitor:Play()
end)
Here is my close code:
RunService.RenderStepped:Connect(function()
local Monitor = game.Workspace.CurrentCamera:WaitForChild("Monitor")
local MonitorPart = Monitor:FindFirstChild("Monitor")
local MonitorDown = Monitor:WaitForChild("MonitorDown")
local MonitorUp = MonitorPart.Parent:WaitForChild("MonitorUp")
local ts = game:GetService("TweenService")
local closeMonitor = ts:Create(MonitorPart, TweenInfo.new(0.3), {CFrame = MonitorDown.CFrame})
closeMonitor:Play()
end)