of     1   

Plusile
#146489840Sunday, September 21, 2014 7:16 AM GMT

How do you make a script for a bed that's like the one in the game Urbis? When you click the pillow your character is teleported to the bed in a laying down pose while the body is still in animation. Then when you jump your character jumps off the spot it was laying on.
Plusile
#146532347Sunday, September 21, 2014 9:00 PM GMT

I just figured it out. This block of code will put the player in lay down position without trying to hop up. And the player can jump up on user input. I need to tweak the code a bit so that the player is in the right air position. local Client = workspace.Player1 repeat wait() until Client ~= nil local Torso = Client:FindFirstChild("Torso") local Humanoid = Client:FindFirstChild("Humanoid") Torso.CFrame = CFrame.new(Vector3.new(-14.8, 0.5, 60.2)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-180))
Plusile
#146541872Sunday, September 21, 2014 11:12 PM GMT

Ok I no longer need help it works the only thing is that the pillow needs to be CanCollide = false and the orientation depends where the bed is. I'll make the mouse interaction system.
Plusile
#146561780Monday, September 22, 2014 3:46 AM GMT

Here is the new improved code: local Detector = script.Parent.ClickDetector Detector.MouseClick:connect(function(p) local char = p.Character char.Torso.CFrame = CFrame.new(Vector3.new(1,35,67)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) char.Humanoid.PatformStand = true end)

    of     1