|
| 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 |
|
|
|
| 03 May 2015 02:20 PM |
You need a localscript that clones the parts into:
game.Workspace.CurrentCamera |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 03 May 2015 02:22 PM |
| was speaking to harry. Boss may i have an eamaple? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 03 May 2015 02:23 PM |
| Could you paste that code?(or the relevant piece) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 03 May 2015 02:29 PM |
| Are you not able to change the position of parts located in CurrentCamera? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 03 May 2015 02:44 PM |
| ^ Thanks for everything! I finnaly got it to work! |
|
|
| Report Abuse |
|
|
| |
|