How can I make it that when I click a click detector it clones a part and only the player who clicked it can see the cloned part
First off, add a part into the workspace and add a click detector into it.
Second off, add a part into replicated storage. (the part you want to clone)
Last off, add a local script into StarterPlayerScripts and paste this inside.
Location:
Script:
--//Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--//Variables
local Part = ReplicatedStorage.Part
local ClickDetector = workspace.Part.ClickDetector
--//Functions
ClickDetector.MouseClick:Connect(function()
local Clone = Part:Clone()
Clone.Position = Vector3.new(1, 1, 1) --//The part's position
Clone.Name = "Clone"
Clone.Parent = workspace
end)
1 Like
Thank you this is really helpful
1 Like