So i have a part i want to clone. When you clone something from the replicated storage it will go into the client side. How do i make it go into the server side?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CookieEvent = ReplicatedStorage:WaitForChild("CookieEvent")
local Cookie = ReplicatedStorage:WaitForChild("Cookie")
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
CookieEvent.OnClientEvent:Connect(function()
local Clone = Cookie:Clone()
Clone.Parent = workspace
end)
end)
In the cookie heres the server script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CookieEvent = ReplicatedStorage:WaitForChild("CookieEvent")
CookieEvent:FireClient