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: local parts question

Previous Thread :: Next Thread 
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:19 PM
How would i make it so that only one player can see a certain model? I am making an introduction GUI and it is using models that i want only one player to see. How would i achieve this?
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
03 May 2015 02:20 PM
You need a localscript that clones the parts into:

game.Workspace.CurrentCamera
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
03 May 2015 02:21 PM
FilteringEnabled is a very efficient thing to use in this matter. There is that whole Camera thing I don't know, but FE is the way to go.

You can make the server work with the client etc
you can do a lot of cool things

Just make a specific client be able to see the model in the server via documentation etc

http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial

"I like to program" - Bosswalrus
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:21 PM
^ I did that but when i run it in the actual server, it doesnt show the part inside the model when i move it to its position.
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:22 PM
was speaking to harry. Boss may i have an eamaple?
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
03 May 2015 02:22 PM
I've never actually used FE, so I can't answer that sorry :(

"I like to program" - Bosswalrus
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
03 May 2015 02:23 PM
Could you paste that code?(or the relevant piece)
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:25 PM
local IntroModel = Model:Clone()
IntroModel.Parent = workspace.CurrentCamera
IntroModel:WaitForChild("Plate"):WaitForChild("Slide").Disabled = false

Is anything wrong?
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:28 PM
bump
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
03 May 2015 02:29 PM
Um... Make sure it's a localscript and it's paste somewhere in PlayerGui or Backpack or something...
If that's not the problem, then it might be because the WaitForChild() is taking forever... Also, I'm not sure if scripts parented in workspace.CurrentCamera actually run.
If one of these isn't the problem, then you should get an error.
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:29 PM
Are you not able to change the position of parts located in CurrentCamera?
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
03 May 2015 02:32 PM
Yes you are, you should be able to change that position to through the same localscript as you inserted the model with. But as i said, i'm not sure if scripts that are parented in CurrentCamera work...
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:35 PM
spawn(function()
while wait() do
IntroModel:FindFirstChild("Plate").CFrame =IntroModel:FindFirstChild("Plate").CFrame * CFrame.Angles(0,0.03,0)
end
end)

Well that is in the localscript i inserted it with. Will this work or error?
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
03 May 2015 02:40 PM
It should...
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
03 May 2015 02:41 PM
wait no, do it like this:

function spawn()
while wait() do
IntroModel:FindFirstChild("Plate").CFrame =IntroModel:FindFirstChild("Plate").CFrame * CFrame.Angles(0,0.03,0)
end
end

To activate function, write:
spawn()
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
03 May 2015 02:44 PM
^ Thanks for everything! I finnaly got it to work!
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
04 May 2015 09:37 AM
No problem :)
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