generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is there a way to make local parts using a server script?

Previous Thread :: Next Thread 
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
28 May 2016 08:15 AM
If so, how?


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
28 May 2016 08:17 AM
remote events..but i dont think you understand. local part of directly made from the client with local scripts and with FE on but in your case...

--server script

local re = game.ReplicatedStorage:WaitForChild("RemoteEvent")

re:FireAllClients()


--local script

local re = game.ReplicatedStorage:WaitForChild("RemoteEvent")

re.OnClientEvent:connect(function()
local part = Instance.new("Part",workspace)
end)




Report Abuse
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
28 May 2016 08:23 AM
There isn't really such a thing as a local part for a server. If you mean creating a local part on a client through a server script, you'll have to use remote events as time suggested

If you mean a part which only exists on the server, I guess you could create a part on the server and then have every client remove it locally?
Report Abuse
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
28 May 2016 09:07 AM
Okay, thanks. But how would I put the part into someone's camera with remote functions?


Report Abuse
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
28 May 2016 09:14 AM
Highly suggest you don't make local parts using the camera - have a look at filtering enabled if you're not familiar with it

http://wiki.roblox.com/index.php?title=API:Class/Workspace/FilteringEnabled
Report Abuse
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
28 May 2016 09:24 AM
Okay. Is there any other way to make local parts? Cause I know they are used in games like The Conquerors to show where one will be making a building...


Report Abuse
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
28 May 2016 09:25 AM
That will likely use filtering. After you enable it, any changes made locally will not appear on other clients (e.g. if you create a part though a localscript, only that client will see it)
Report Abuse
wackeyhd5cool is not online. wackeyhd5cool
Joined: 24 Nov 2010
Total Posts: 906
28 May 2016 09:27 AM
Okay, thanks.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image