You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? clone part locally when triggered by proximity and then move the cloned part to character torso
What is the issue? Part doesn’t even clone
What solutions have you tried so far? tried everything
Here’s my script, It is localscript.
local plr = game:GetService("Players").LocalPlayer --get the localplayer
local char = plr.Character or plr.CharacterAdded:Wait()
local proximity = script.Parent.ProximityPrompt
local ProximityPromptService = game:GetService("ProximityPromptService")
local part = workspace.FolderNameHere.PartNameHere
proximity.Triggered:Connect(function()
part:Clone()
part.CFrame = char.PrimaryPart.CFrame --ONLY THE CLONED PART SHALL MOVE
end)
local plr = game:GetService("Players").LocalPlayer --get the localplayer
local char = plr.Character or plr.CharacterAdded:Wait()
local proximity = script.Parent.ProximityPrompt
local ProximityPromptService = game:GetService("ProximityPromptService")
local part = workspace.FolderNameHere.PartNameHere
proximity.Triggered:Connect(function()
local Clone = part:Clone()
Clone.CFrame = char.PrimaryPart.CFrame
Clone.Parent = workspace.FolderNameHere
end)
print("Start")
local plr = game:GetService("Players").LocalPlayer --get the localplayer
local char = plr.Character or plr.CharacterAdded:Wait()
local proximity = script.Parent.ProximityPrompt
local ProximityPromptService = game:GetService("ProximityPromptService")
local part = workspace.FolderNameHere.PartNameHere
print("Assets")
proximity.Triggered:Connect(function()
print("Clone")
local Clone = part:Clone()
Clone.CFrame = char.PrimaryPart.CFrame
Clone.Parent = workspace.FolderNameHere
end)
print("Ready")
if nothing prints, check the location of the script, localscript only work as a child of the player, its character and some services.