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 6 years ago
Edited 6 years ago
1local p = script.Parent.Parent
2local Mouse = p:GetMouse()
3Mouse.Button1Down:connect(function()
4local Part = game.Lighting.potato:Clone()
5Part.Parent = workspace
6Part:moveTo(Mouse.Hit.Position)
7print(Mouse.Hit.Position)
8end)

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 — 6y

Answer this question