I think it has something to do with local parts but i can't seem to find anything in my scripts that contains a local part that's unless local player = game.Player.LocalPlayer is the problem here. If it is then can anybody tell me another way to fix this? the code is also in a local script.
Code:
--|Services|--
local UIS = game:GetService('UserInputService')
local replicatedStorage = game:GetService('ReplicatedStorage')
--|Instances|--
local weld = Instance.new('Weld')
local weld2 = Instance.new('Weld')
local weld3 = Instance.new('Weld')
--|Rock Arm|--
local rockArm = replicatedStorage.RockArm
--|Clone|--
local rockClone = rockArm:Clone()
--|Character/Player|--
local player = game.Players.LocalPlayer
local character = player.Character
--|Debounces|--
local debounce = true
--|Function|--
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.One and debounce then
debounce = false
rockClone.Parent = workspace
local rockClone2 = workspace.RockArm
local primarypart = rockClone2.PrimaryPart
rockClone2.RockUpperArm.CFrame = character.LeftUpperArm.CFrame * CFrame.new(0,0,0)
primarypart.CFrame = character.LeftLowerArm.CFrame * CFrame.new(0,0,0)
rockClone2.RockLeftHand.CFrame = character.LeftHand.CFrame * CFrame.new(0,0,0)
weld.Parent = rockClone2
weld2.Parent = rockClone2
weld3.Parent = rockClone2
--|LeftUpperArm|--
weld.C0 = character.LeftUpperArm.CFrame:inverse()
weld.C1 = rockClone2.RockUpperArm.CFrame:inverse()
weld.Part0 = character.LeftUpperArm
weld.Part1 = rockClone2.RockUpperArm
--|LeftLowerArm|--
weld2.C0 = character.LeftLowerArm.CFrame:inverse()
weld2.C1 = primarypart.CFrame:inverse()
weld2.Part0 = character.LeftLowerArm
weld2.Part1 = primarypart
--|LeftHand|--
weld3.C0 = character.LeftHand.CFrame:inverse()
weld3.C1 = rockClone2.RockLeftHand.CFrame:inverse()
weld3.Part0 = character.LeftHand
weld3.Part1 = rockClone2.RockLeftHand
--|Transparency|--
character.LeftUpperArm.Transparency = 1
character.LeftHand.Transparency = 1
character.LeftLowerArm.Transparency = 1
script.Disabled = true
wait(4)
rockClone2.Parent = nil
script.Disabled = false
character.LeftUpperArm.Transparency = 0
character.LeftHand.Transparency = 0
character.LeftLowerArm.Transparency = 0
debounce = true
end
end)

3 comments
it has to be in a server script or u gotta fire it into a remote event to the server, it has to somehow pass through a regular script in other words
Is it the cloned items which cannot be seen by other users? If so that's likely because it's being cloned on the client rather than the server.
yes it being cloned