I'm storing numbers in variables to use them later. But everything works fine until it gets to line 23. Here's the error i got
20:53:26.978 - ReplicatedFirst.BedScript:23: bad argument #3 to 'Angles' (number expected, got no value)
local player = game.Player.LocalPlayer local char = player.Character local mouse = Player:GetMouse() local debounce = false local cframeS --position local cframeE --position local cframeSA --angles local cframeEA --angles mouse.Button1Down:connect(function() if debounce == false then debounce = true print(mouse.Target.Name) if mouse.Target.Name == "BedPart"then local part = game.Workspace.EventParts:FindFirstChild(mouse.Target.Name) if part.Value == "Bed1"then cframeS = 428.399, 138, 255.3 cframeSA = 0,185.5,0 elseif part.Value == "Bed2"then cframeS = 428.399, 138, 239.8 cframeSA = 0,0,0 end char.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(cframeS)) * CFrame.Angles(cframeSA) wait(5) Debounce = false end end end)