local spawnpoint = script.Parent.TargetPart
local cooldown = false
script.Parent.Activated:Connect(function()
if cooldown == false then
cooldown = true
local clone = game.ServerStorage.FinishedWeapons.Lvl1lazer.Ammo:Clone()
local cf = spawnpoint.CFrame
clone:SetPrimaryPartCFrame(cf)
clone.Parent = game.Workspace
wait(1)
cooldown = false
end
end)
COMMUNITY QUESTION
Why does my part spawning part not working? Pls Help!
1 answer
If the script is a localScript, then you'll need to move the object from ServerStorage to ReplicatedStorage, you can't access ServerStorage from the client.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
how is this script being activated??
i click the tool and it spawns a part from the severstorage