You can write your topic however you want, but you need to answer these questions:
I’m trying to clone this amongus like so:
2.But the problem is, when I press play, although the script cloned the model (itself), it didn’t clone the content within it. Here’s a picture
So btw, I was writing this script when I was really tired so, I don’t if I made any mistake but, if you guys see me trippin somewhere then I apologise.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
So here’s the code
local Player = game.Players.LocalPlayer
local Cube = workspace.SUS:Clone()
Cube.Parent = game:GetService("Workspace")
local camera = workspace.CurrentCamera
I don’t know if something went wrong and if you can help me find it, it would be appreciated.
If so, then use events within the scripts. All the scripts will be complied on execution anyway, if there is no code that is required to run outside of scope (i.e. not within functions) then the events can be used freely to ignite functions within the scripts to actually do something. If there is code outside of function/module scope then it probably needs refactoring.
this may sounds very convincing at first, however, when I look at one of my older scripts, which I use a module script to run the clone method and passing in the object from a local script just like so
– local script