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: Different colors for different players

Previous Thread :: Next Thread 
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
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
ScriptSwag is not online. ScriptSwag
Joined: 21 Jun 2015
Total Posts: 57
21 Aug 2015 04:42 PM
Make local parts.


My scripting style has swag.
Report Abuse
InsaneDays is not online. InsaneDays
Joined: 28 Jan 2012
Total Posts: 762
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
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
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
InsaneDays is not online. InsaneDays
Joined: 28 Jan 2012
Total Posts: 762
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
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
21 Aug 2015 04:49 PM
As in game.Workspace.FilteringEnabled = false?

Because that's what it's set to right now...
Report Abuse
InsaneDays is not online. InsaneDays
Joined: 28 Jan 2012
Total Posts: 762
21 Aug 2015 04:50 PM
May you show the script?
Report Abuse
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
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
ScriptSwag is not online. ScriptSwag
Joined: 21 Jun 2015
Total Posts: 57
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
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
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
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
21 Aug 2015 05:01 PM
So is it possible to turn a part into a LocalPart?
Report Abuse
InsaneDays is not online. InsaneDays
Joined: 28 Jan 2012
Total Posts: 762
21 Aug 2015 05:02 PM
Seeing your script seems it has nothing wrong. Does it prints anything in Output?
Report Abuse
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
21 Aug 2015 05:04 PM
Nothing strange...
Report Abuse
InsaneDays is not online. InsaneDays
Joined: 28 Jan 2012
Total Posts: 762
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
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
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 is not online. 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
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
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
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