Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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

0
would you use cframe instead? like Eve.HumanoidRootPart.CFrame = CFrame.new("") Bylli_Oruze 38 — 4y
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. KDarren12 705 — 4y
0
That did it, post an answer and I will accept. RunKittenzRComin 170 — 4y
0
thanks KDarren12 705 — 4y

1 answer

Log in to vote
1
Answered by
KDarren12 705 Donator Moderation Voter
4 years ago

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.

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. RunKittenzRComin 170 — 4y
0
kk KDarren12 705 — 4y
0
CFrame worked. Ignored the findfirstchildofclass, etc. RunKittenzRComin 170 — 4y
Ad

Answer this question