Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This awkward bug is causing players to float under the map?

For some random reason,|PAST THIS POINT IS JUST AN ASSUMPTION| the only feasible explanation i have found is that teleporting the player using this line of code bugs the player, and the HumanoidRootPart is where it was teleporting but it didn't carry the rest of the body with it. Since the welds are still there, it didn't fall into the void.

Eve.Character.HumanoidRootPart.Position = mainrand.RandomCHILD(game.Workspace.Map).Baseplate.Position + Vector3.new(0,30,0)

Eve being the player. This is the ONLY line of code that I wrote that moves the player, etc, so im not sure whats going on.

Images:

http://prntscr.com/ohs07w

http://prntscr.com/ohs0bg

4 comments

0

would you use cframe instead? like Eve.HumanoidRootPart.CFrame = CFrame.new("")

0

i found that using .Position for a players character's parts will anchor the part, but not on screen and make it still able to move. Basically, the position is locked in place but visually it doesn't affect anything.

0

That did it, post an answer and I will accept.

0

thanks

1 answer

✓ Accepted answer

I mean it's probably better to use a part inside of the player, but I don't work with this kind of code much.

Eve.Character:FindFirstChildOfClass("Part").CFrame = mainrand.RandomCHILD(game.Workspace.Map).Baseplate.CFrame + Vector3.new(0,30.1,0)

Again, I don't work with this stuff so if it doesn't work then don't take my advice anymore.

3 comments

0

Im pretty sure that teleports every part to the same point, as in creating a monster, but I believe Vector3 is a little brute-force so ill try CFrame.

0

kk

0

CFrame worked. Ignored the findfirstchildofclass, etc.

This discussion is preserved as it was. New answers, comments, and votes are closed.