|
| 21 Aug 2015 04:41 PM |
So I have a part, it is colored "White" When I click on it it turns "Black"
But if there are 2 players in a server, and 1 player clicks on it, only the one whom clicked the part originally will see the part as "Black".
Is it just simply a local script. Or is it more complicated?
(By the way, this is not what I actually need the script for, this is just to explain my problem)
Thanks! |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:42 PM |
Make local parts.
My scripting style has swag. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:43 PM |
If it's Filtering Enabled, then that's normal. Use RemoteEvents/Functions.
If the game isn't FE post your script. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:46 PM |
Yeah... I've never used a Remote Event before and I've no idea what a Local Part is. I wiki link would be nice (Just to save your time)
Thanks! |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:47 PM |
You do not have to use Remote E/F unless it's Filtering Enabled. In any case here's the link: http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
Also if you prefer youtube:
https://www.youtube.com/watch?v=C0qQ4lDa3t0 |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:49 PM |
As in game.Workspace.FilteringEnabled = false?
Because that's what it's set to right now... |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Aug 2015 04:52 PM |
In a LocalScript:
while true do wait(0.001) script.Parent.Head.BrickColor = script.Parent.Configuration.SkinColour.Value script.Parent.Torso.BrickColor = script.Parent.Configuration.SkinColour.Value script.Parent["Left Arm"].BrickColor = script.Parent.Configuration.SkinColour.Value script.Parent["Right Arm"].BrickColor = script.Parent.Configuration.SkinColour.Value script.Parent["Left Leg"].BrickColor = script.Parent.Configuration.SkinColour.Value script.Parent["Right Arm"].BrickColor = script.Parent.Configuration.SkinColour.Value end
|
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:54 PM |
If you set FilteringEnabled to true then everything from the client won't clone to the server, like changing the color of a part. If you don't know how to convert your other code to work with FE, look at this.
http://wiki.roblox.com/index.php?title=Local_parts
My scripting style has swag. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 04:57 PM |
So I have to make the parts from Instance.new...
Because I already have a fully assembled version of what I want to color, and it would be a pain to have to make it via a script.
Or can I turn a Part into a Local Part? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 05:01 PM |
| So is it possible to turn a part into a LocalPart? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 05:02 PM |
| Seeing your script seems it has nothing wrong. Does it prints anything in Output? |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Aug 2015 05:06 PM |
| I'm sure that's not the entire script, may you show me the entire script? I can't help you with the info you gave. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 07:47 AM |
Sorry it took a while to reply.
Right now that's all there is to the script. |
|
|
| Report Abuse |
|
|
Baheegg
|
  |
| Joined: 15 Jun 2014 |
| Total Posts: 7048 |
|
|
| 22 Aug 2015 07:51 AM |
Local parts can be created in 2 days 1 of which is to insert them in the CurrentCamera instance
The second of which you'd have to use filteringenabled Which will clone and manipulate properties for the client only when you try changing the properties themselves |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 07:52 AM |
| Currently changes to characterappearance (body colors, clothing changes, etc) do not replicate to other clients if changed from a local script, even with FE off. You'll need to have a server script change their appearance as well if you want other people to be able to see the changes. You can either fire a remote event that tells the server the player and desired color, or you can store a server script that does this based on value objects inside the script, clone the script, set the values to the character and desired color, and then parent the script to the character/workspace or something. |
|
|
| Report Abuse |
|
|