I wanna clone part from ReplicatedStorage to Workspace now the code that i have already works But i want the value like
Local player for example BolfstarPrimraryW
And i want the code on click you can add and remove the clone
local Glass = game.ReplicatedStorage.Glass
local playerservice = game:GetService("Players")
local player = workspace
script.Parent.MouseButton1Click:connect(function()
Glass:Clone().Parent = game.Players.LocalPlayer
game.Workspace.Glass.Name = player.name
end)

1 comment
you should put the Glass:Clone().Parent = game.Players.LocalPlayer.Character