Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does the PART only spawn CLIENT-SIDE and not SERVER-SIDE?

Asked by 5 years ago
Edited 5 years ago
local p = script.Parent.Parent
local Mouse = p:GetMouse()
Mouse.Button1Down:connect(function()
local Part = game.Lighting.potato:Clone()
Part.Parent = workspace
Part:moveTo(Mouse.Hit.Position)
print(Mouse.Hit.Position)
end)

I am trying to make a model placing system, but my script only works client side and I want it to be a multiplayer base building game

How do I make it work server-side

(a freemodel was like this too, the only one that worked was placeable cone freemodel)

0
It's because filtering is enabled, in order to get it to show up for everybody, you need to have the client send a request to the server through the use of a RemoteEvent, then have the new Part made in the server, which will replicate to all clients including you. Read this wiki page for it has everything you need : https://developer.roblox.com/articles/Remote-Functions-and-Events strongrussianboy123 68 — 5y

Answer this question