#is the script fine??

1 messages · Page 1 of 1 (latest)

brittle snow
#

the only issue is that when it teleports to the specific part, it just randomly bugs and teleports you somewhere else rather than the desired location

still crown
#

set cframe, not position.

vale stone
#

Player.Parent:WaitForChild("Humanoid") is not going anywhere

#

instead use Player.Character (also wait for the character being spawned with the Player.CharacterAdded event)

proud turtle
#

it's not a player it's a basepart 😭

#

it's a touched event

vale stone
#

damn, the variable name trolled me

#

you're right

#

also what you would use to instantly move the character of player is character:PivotTo(...)

proud turtle
#

yeah it fooled me for a bit aswell

still crown
proud turtle
still crown
still crown
# proud turtle set cframe not position kinda doesn't give anything (in this script) but alright

setting a cframe will teleport the entire assembly. ideally you would teleport the hrp like otherPart.Parent:FindFirstChild("HumanoidRootPart") but y'know they're probably new and don't yet know about stuff like that, so for the moment i'm fairly sure you can cframe any part of the assembly and the whole assembly will move with it, so if you happen to teleport a leg or an arm then it will be teleport in a slightly incorrect/unexpected position, which is likely what is happening 👍

proud turtle
still crown
proud turtle
#

that's cool

still crown
# proud turtle that's cool

its important to know that setting .position (or .rotation / .orientation for that matter), does not have this property, that will instead temporarily disable constraints so you can move those parts in object space without having to muck about with the constraints too much. https://create.roblox.com/docs/reference/engine/classes/BasePart#Position

When setting this property, any Welds or Motor6Ds connected to this part will have the matching C0 or C1 property updated to allow the part to move relative to any other parts it is joined to. WeldConstraints will also be temporarily disabled and re-enabled during the move.

proud turtle
#

i knoww i knowwwwww

#

wasn't ever disagreeing with your general point

still crown
vale stone
brittle snow
#

oh my

#

i thought I actually wasnt gonna get replied to LMAO

still crown
brittle snow
#

btw how does this work