I tried to make a script to clone an object from Replicated Storage and put it at the player's position. Here is my code:
local tool = script.Parent
local poz = Workspace.Data.Player.Value.Character.UpperTorso.Position
local object = game:GetService("ReplicatedStorage").GasterBlaster
local function onActivate()
local copy = object:Clone()
copy.Parent = game.Workspace
copy:MoveTo(poz)
end
And this is are my objects

6 comments
It doesn't work
The "GasterBlaster" dosen't even apear in the workspace
I have added a primary part to the gaster blaster and made it the acual primary part but still nothing
I completly remade the script and it works but.. I can't use it agian, only once and it doesn't go to the player. I also added a remote event becouse that was the reason why it didn't apear in the workspace
I forgot to implement a part of the script. You need to also use: object.Parent = game.Workspace