Despite your best efforts to use SetPrimaryPartCFrame
, does your character keep spawning from the sky in an empty baseplate?
Then transform your code:
game.Players.PlayerAdded:Connect(player)
local character = player.Character or player.CharacterAdded:Wait()
character:SetPrimaryPartCFrame(cframe)
end)
game.Players.PlayerAdded:Connect(player)
player:LoadCharacter()
local character = player.Character
character:SetPrimaryPartCFrame(cframe)
end)
Interesting hack.
Insight gathered from the link below:
Hi Developers,
UPDATE: This change is not live yet but is still planned.
In late May we are going to make some changes to the ordering of events that are fired during the avatar loading process. We will announce the exact date for this change closer to when it is going to go live.
The aim of this change is to make the avatar loading event ordering easier for developers to understand and to make it easier to write code which interacts with avatar loading. Currently there are a number of idiosy…
This post is in response to @anthlons ’s of a similar name .
That’s better.
1 Like
This one is a massive pain, SetPrimaryPartCFrame is deprecated and this one makes the network usage higher, just use :PivotTo()
instead
1 Like
The SetPrimaryPartCFrame
is called by the server and is only done once per joined player. Are there other un-intended side effects?
it’s pretty much it from what I’ve used earlier if you have to use this to tween all the NPCs or some objects, SetPrimaryPartCFrame was probably calculating them in a serial way + they were uncached back when PVInstance weren’t introduced which is quite unhealthy.
1 Like
Judgy_Oreo
(DisplayName)
February 22, 2025, 9:51am
#5
PlayerJoined
?
(Unoffical API , that shows hidden members as well.)
2 Likes
lambarini
(lambarini)
February 22, 2025, 10:53am
#7
couldnt you just use a spawnpoint?
also how does bro have internal roblox player (tell us the method)
Some games need characters to spawn dynamically. For example, in a line simulator.
Look at the top bar. It uses the previous Rōblox logo along with an older chat icon. I’m using the 2021E version of Rōblox with Freedom Distribution.
1 Like
VisualPlugin
(少・公・火・口ヶ口・火・公・少)
February 26, 2025, 7:32pm
#10
I don’t believe it existed in v463 (a version of Rōblox that I’m building for), but I’ll look into it.