Hello devforums!
Today, I want to create a part that will with the copy and delete tool be copyable, but not deletable.
I need this for some sort of building/fighting game.
(I don’t know how to script
)
Thanks for your attention.
All replies are respected and appriciated.
Not exactly sure what you’re saying, but maybe try moving it from one folder to another.
For example:
-- if the "sword" is in ReplicatedStorage
local rs = game.ReplicatedStorage
local sword = rs.Sword -- "Sword" would be the tools name
local place = game.ServerStorage -- this is where you would want to move to the gear to
-- put your click or enabled function here
-- inside of that function, put the script below
local cloned = sword:Clone() -- if you want to clone it
cloned.Parent = rs -- so you have a copy in replicated storage
sword.Parent = place -- this would move your original copy into server storage.
Obviously you would have to do a bunch of scripting by yourself (or use a tutorial), but these are just a couple of basics that may help with your game. I don’t know if it’s going to be useful or not since I’m not very good at explaining, but hopefully it works out.
Why do you want to do this? Are you maybe trying to prevent other players from destroying your parts?
No, but trying to make a “main” part that can’t be deleted, but can be copied.