hello, im trying to make a cutscene where an npc/humanoid (not the player) opens up a chest. the npc is a clone from the replicated server while the chest is already in the workspace/game. so far the script is just a cloner and a animation player for the npc right now
Can you elaborate more on this? What do you want to achieve?
If you’re asking on how to animate a chest, you could make it as a “character” (with welds, Motor6Ds, and a humanoid) to animate it like a normal character rig.
my bad, i was in a rush
so basicly theres this cutscene that plays when you donate. an npc that is a humanoid will “spawn” (that was cloned from the replicated server) and play an animation of opening a chest, the chest is already in the workspace. the animation of the explorer itself works because it was played after spawned. im still confused about the chest part.
local wow = game.ServerStorage.Events.Explorer
local TS = game:GetService(“TweenService”)
local market = game:GetService(“MarketplaceService”)
local id = 1199684975script.Parent.MouseClick:Connect(function(Player)
market:PromptProductPurchase(Player,id)
end)market.ProcessReceipt = function(receiptInfo, player)
if receiptInfo.ProductId == id then
print(“wowza”)
local clonedz = wow:Clone()
task.wait(2)
clonedz.Parent = game.Workspace
end
end