Hello,
I am currently working on a Survival Game and I'm trying to have a tool so when you click on the tool it will clone a Campfire from ReplicatedStorage to Workspace and it clones. However, when it clones, the scripts inside the model do not work. (e.g a raft seat wouldn't be seatable after being cloned) I've been told that the reason for this is because the tool is using a LocalScript to clone the Model therefore it will not work.
However, I am not sure how I would go to transfer my LocalScript to a ServerScript
Here is the script I use (It's for a campfire where if you click on it, it brings up a GUI) (It's clickable when it's on workspace itself but not when cloned through the tool)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Player = game:GetService("Players").LocalPlayer
local Campfire = ReplicatedStorage:WaitForChild("Campfire")
local Cursor = Player:GetMouse()
local CampfireTool = script.Parent
function onActivated()
local ClonedCampfire = Campfire:Clone()
ClonedCampfire.Parent = workspace
ClonedCampfire:MoveTo(Cursor.hit.p)
CampfireTool:Destroy()
end
script.Parent.Activated:Connect(onActivated)
I have this script for a Raft as well but same thing happens but with a VehichleSeat
If I could get some help with this, it would be great.
Thanks!

2 comments
Can't you just copy the script and paste it into a script?
I have tried that, however it did not work