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.Name = npc
newnpc.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer
newnpc.Parent = workspace.NPCS
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.
Just putting the link to the official one here: https://devforum.roblox.com/
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
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.
is there a special ver of lua for roblox?
Roblox used to use Lua. Now they use Luau which is an evolution of Lua by Roblox I think
oh I thought Luau was a typo XD
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.