Hello, I am trying to create an atm system that when it is hit, it will drop money.
The problem is as follows, when cloning a part/mesh in my atm component in roblox studio, this part is only visible through the server view, however in roblox player it is visible to both, not sure why this error occurs and if it is a problem of mine or roblox
I have already tried to call the function that clones this part in different ways, I have called it using coroutines, task.delay, even creating a class, among others but it still gives the same problem, it only becomes visible if I call it directly as soon as the component starts
I am using the “Component” module from RbxUtil
function Atm:DropMoney()
-- Money(self.Instance.PrimaryPart.Position + Vector3.new(-0.046, 2.143, -1.174))
local Money = self.StacksMoney:Clone()
Money.Position = self.Instance.PrimaryPart.Position + Vector3.new(-0.046, 2.143, -1.174)
Money.Parent = game.Workspace
print("a")
end
function Atm:Start()
-- task.wait(5) -- if I make it wait x time before creating the part it is no longer visible
self:DropMoney()
end
https://gyazo.com/451bc4d289e5958cd1bc3afad78744a2
https://gyazo.com/dc56dcd2b8886c7d77b19a3a14ffdde3
Server view
Client view