hi, this is my code
script.Parent["Create Event"].OnServerEvent:Connect(function(donotuse, npc)
local newnpc = script["Example NPC"]:Clone()
local userId = game.Players:GetUserIdFromNameAsync(npc)
local humanoidDescriptionFromUser = game.Players:GetHumanoidDescriptionFromUserId(userId)
newnpc.Humanoid:ApplyDescription(humanoidDescriptionFromUser)
newnpc.Name = npc
newnpc.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer
newnpc.Parent = workspace.NPCS
end)
Try asking on a Roblox developer form, as Roblox is not directly related to replit in any way, and there will be more experienced users to help on a Roblox forum.
2 Likes
dragonhunter1:
Roblox developer form
Just putting the link to the official one here: https://devforum.roblox.com/
2 Likes
oh yeah, i forgot to tell yall, i fixed the problem totally should be a spoiler put the applydescription after setting the npc clone to workspace
1 Like
also roblox is related to replit (the coding language)
Roblox is not related to Replit in any way. It may be related to coding, but Roblox’s programming language (Luau) is not on Replit. Do not confuse Roblox’s Luau with Replit’s Lua.
3 Likes
is there a special ver of lua for roblox?
1 Like
Roblox used to use Lua. Now they use Luau which is an evolution of Lua by Roblox I think
6 Likes
oh I thought Luau was a typo XD
2 Likes
system
Closed
June 17, 2023, 10:07pm
10
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.