generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: CFraming the Torso?

Previous Thread :: Next Thread 
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
09 Mar 2016 02:21 PM
I have this simple script:

game:GetService("RunService").RenderStepped:connect(function()
if game.Workspace.Player and game.Workspace.Player.Torso then
game.Workspace.Player.Torso.CFrame = CFrame.new(0, 10, 0)
end
end)


This works except that it glitches and the camera looks like it's falling and the Torso is alternating position several studs down and back up.

How can I CFrame the Torso constantly without making it glitch like that?


Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
09 Mar 2016 02:52 PM
Just anchor it...?
Report Abuse
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
09 Mar 2016 02:53 PM
But I want to know why it is glitching.

I thought someone might know.


Report Abuse
TexasOreo is not online. TexasOreo
Joined: 08 Apr 2014
Total Posts: 25
09 Mar 2016 03:21 PM
It "glitches" because the character is constantly being dragged downward, you have to stop the movement by anchoring like @king mentioned.
Report Abuse
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
09 Mar 2016 03:30 PM
That explanation doesn't explain why the same doesn't happen to unanchored parts.

They don't glitch unlike the Torso.


Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
09 Mar 2016 03:37 PM
@OP I do not know the answer, since Ié never seen what you just described. According to me, it should just change the position and nothing else special should happen... BUT! Maybe instead of finding that bug, we can come up with a solution for your problem? Do you want to teleport the player? If so, here are some quick solutions:

--Change the HumanoidRootPart instead:

player.Character.HumanoidRootPart.CFrame = CFrame.new(0,10,0)

--Use the MoveTo method. If you use this method to teleport a player into a part, then it will teleport the player on top of that part.

player.Character:MoveTo(Vector3.new(0,10,0))

I hope this helps a bit with your problem :D

~sycips~
Report Abuse
Asinny is not online. Asinny
Joined: 04 Oct 2014
Total Posts: 2757
09 Mar 2016 03:40 PM
"That explanation doesn't explain why the same doesn't happen to unanchored parts."

the same thing DOES happen to unanchored parts
literally every part in the character is unanchored



Report Abuse
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
09 Mar 2016 03:40 PM
the character actually does not move up and down, it's the camera that glitches which makes it look like the character is glitching

i've found the problem, thank you



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image