How can I make the changes of a local script global without RemoteEvents?
I made this huge local script for my custom character, and it makes the character able to be customized. When I test it, it only appears for 1 player, since FE is enabled. What could I do besides using Remote Events to make it visible for everyone? (No, I'm not going to disable FE)
002 | local plr = script.Parent.Parent |
004 | local mouse = plr:GetMouse() |
006 | local chr = plr.Character |
007 | local skin = plr.PlayerGui.Customize.Frame.SkinTone |
008 | local play = plr.PlayerGui.Customize.Frame.Play |
009 | local gender = plr.PlayerGui.Customize.Frame.Gender |
010 | local hair = plr.PlayerGui.Customize.Frame.Hair |
011 | local frame = plr.PlayerGui.Customize.Frame |
012 | local editing = play.Editing |
016 | skin.Lightest.MouseButton 1 Click:connect( function () |
019 | skin.Light.MouseButton 1 Click:connect( function () |
022 | skin.Middle.MouseButton 1 Click:connect( function () |
025 | skin.Dark.MouseButton 1 Click:connect( function () |
028 | skin.Darkest.MouseButton 1 Click:connect( function () |
033 | gender.Female.MouseButton 1 Click:connect( function () |
034 | chr.Head.Hair.Mesh.MeshId = chr.Head.Hair.Two.Value |
035 | chr.LowerTorso.Pants.Mesh.MeshId = chr.LowerTorso.Pants.Two.Value |
036 | chr.UpperTorso.Shirt.Mesh.MeshId = chr.UpperTorso.Shirt.Two.Value |
037 | chr.LeftUpperArm.LeftSleeve.Mesh.MeshId = chr.LeftUpperArm.LeftSleeve.Two.Value |
038 | chr.RightUpperArm.RightSleeve.Mesh.MeshId = chr.RightUpperArm.RightSleeve.Two.Value |
039 | chr.LeftUpperLeg.LeftPants.Mesh.MeshId = chr.LeftUpperLeg.LeftPants.Two.Value |
040 | chr.RightUpperLeg.RightPants.Mesh.MeshId = chr.RightUpperLeg.RightPants.Two.Value |
041 | chr.Head.Mesh.MeshId = chr.Head.Two.Value |
043 | chr.Head.Mesh.MeshId = chr.Head.Two.Value |
044 | chr.LowerTorso.Mesh.MeshId = chr.LowerTorso.Two.Value |
045 | chr.UpperTorso.Mesh.MeshId = chr.UpperTorso.Two.Value |
046 | chr.LeftUpperArm.Mesh.MeshId = chr.LeftUpperArm.Two.Value |
047 | chr.RightUpperArm.Mesh.MeshId = chr.RightUpperArm.Two.Value |
048 | chr.LeftUpperLeg.Mesh.MeshId = chr.LeftUpperLeg.Two.Value |
049 | chr.RightUpperLeg.Mesh.MeshId = chr.RightUpperLeg.Two.Value |
050 | chr.LeftLowerArm.Mesh.MeshId = chr.LeftLowerArm.Two.Value |
051 | chr.RightLowerArm.Mesh.MeshId = chr.RightLowerArm.Two.Value |
052 | chr.LeftLowerLeg.Mesh.MeshId = chr.LeftLowerLeg.Two.Value |
053 | chr.RightLowerLeg.Mesh.MeshId = chr.RightLowerLeg.Two.Value |
054 | chr.LeftHand.Mesh.MeshId = chr.LeftHand.Two.Value |
055 | chr.RightHand.Mesh.MeshId = chr.RightHand.Two.Value |
056 | chr.LeftHand.Mesh.MeshId = chr.LeftHand.Two.Value |
057 | chr.RightHand.Mesh.MeshId = chr.RightHand.Two.Value |
059 | chr.Head.Hair.Mesh.Offset = Vector 3. new( 0 , 0 , 0.1 ) |
060 | chr.LeftUpperArm.Mesh.Scale = Vector 3. new(. 75 , 0.75 , . 75 ) |
061 | chr.RightUpperArm.Mesh.Scale = Vector 3. new(. 75 , 0.75 , . 75 ) |
062 | chr.LeftUpperArm.Mesh.Offset = Vector 3. new( 0 , -. 1 , 0.1 ) |
063 | chr.RightUpperArm.Mesh.Offset = Vector 3. new( 0 , -. 1 , 0.1 ) |
065 | chr.LeftUpperArm.LeftElbowRigAttachment.Position = Vector 3. new(- 0.113 , - 0.336 , 0.173 ) |
066 | chr.RightUpperArm.RightElbowRigAttachment.Position = Vector 3. new( 0.113 , - 0.336 , 0.173 ) |
067 | chr.LeftLowerArm.LeftElbowRigAttachment.Position = Vector 3. new( 0.18 , 0.288 , 0.041 ) |
068 | chr.RightLowerArm.RightElbowRigAttachment.Position = Vector 3. new(- 0.18 , 0.288 , 0.041 ) |
073 | gender.Male.MouseButton 1 Click:connect( function () |
074 | chr.Head.Hair.Mesh.MeshId = chr.Head.Hair.One.Value |
075 | chr.LowerTorso.Pants.Mesh.MeshId = chr.LowerTorso.Pants.One.Value |
076 | chr.UpperTorso.Shirt.Mesh.MeshId = chr.UpperTorso.Shirt.One.Value |
077 | chr.LeftUpperArm.LeftSleeve.Mesh.MeshId = chr.LeftUpperArm.LeftSleeve.One.Value |
078 | chr.RightUpperArm.RightSleeve.Mesh.MeshId = chr.RightUpperArm.RightSleeve.One.Value |
079 | chr.LeftUpperLeg.LeftPants.Mesh.MeshId = chr.LeftUpperLeg.LeftPants.One.Value |
080 | chr.RightUpperLeg.RightPants.Mesh.MeshId = chr.RightUpperLeg.RightPants.One.Value |
082 | chr.Head.Mesh.MeshId = chr.Head.One.Value |
083 | chr.LowerTorso.Mesh.MeshId = chr.LowerTorso.One.Value |
084 | chr.UpperTorso.Mesh.MeshId = chr.UpperTorso.One.Value |
085 | chr.LeftUpperArm.Mesh.MeshId = chr.LeftUpperArm.One.Value |
086 | chr.RightUpperArm.Mesh.MeshId = chr.RightUpperArm.One.Value |
087 | chr.LeftUpperLeg.Mesh.MeshId = chr.LeftUpperLeg.One.Value |
088 | chr.RightUpperLeg.Mesh.MeshId = chr.RightUpperLeg.One.Value |
089 | chr.LeftLowerArm.Mesh.MeshId = chr.LeftLowerArm.One.Value |
090 | chr.RightLowerArm.Mesh.MeshId = chr.RightLowerArm.One.Value |
091 | chr.LeftLowerLeg.Mesh.MeshId = chr.LeftLowerLeg.One.Value |
092 | chr.RightLowerLeg.Mesh.MeshId = chr.RightLowerLeg.One.Value |
093 | chr.LeftHand.Mesh.MeshId = chr.LeftHand.One.Value |
094 | chr.RightHand.Mesh.MeshId = chr.RightHand.One.Value |
095 | chr.LeftHand.Mesh.MeshId = chr.LeftHand.One.Value |
096 | chr.RightHand.Mesh.MeshId = chr.RightHand.One.Value |
098 | chr.Head.Hair.Mesh.Offset = Vector 3. new( 0 , 0.3 , 0.05 ) |
099 | chr.LeftUpperArm.Mesh.Scale = Vector 3. new( 1 , 0.75 , 1 ) |
100 | chr.RightUpperArm.Mesh.Scale = Vector 3. new( 1 , 0.75 , 1 ) |
102 | chr.LeftUpperArm.Mesh.Offset = Vector 3. new( 0 , 0 , 0 ) |
103 | chr.RightUpperArm.Mesh.Offset = Vector 3. new( 0 , 0 , 0 ) |
105 | chr.LeftUpperArm.LeftElbowRigAttachment.Position = Vector 3. new(- 0.215 , - 0.507 , 0.209 ) |
106 | chr.RightUpperArm.RightElbowRigAttachment.Position = Vector 3. new( 0.215 , - 0.507 , 0.209 ) |
107 | chr.LeftLowerArm.LeftElbowRigAttachment.Position = Vector 3. new( 0.088 , 0.351 , 0.105 ) |
108 | chr.RightLowerArm.RightElbowRigAttachment.Position = Vector 3. new(- 0.088 , 0.351 , 0.1051 ) |
114 | hair.Brown.MouseButton 1 Click:connect( function () |
115 | chr.Head.Hair.Color = hair.Brown.BackgroundColor 3 |
118 | hair.Blonde.MouseButton 1 Click:connect( function () |
119 | chr.Head.Hair.Color = hair.Blonde.BackgroundColor 3 |
122 | hair.Orange.MouseButton 1 Click:connect( function () |
123 | chr.Head.Hair.Color = hair.Orange.BackgroundColor 3 |
126 | hair.Black.MouseButton 1 Click:connect( function () |
127 | chr.Head.Hair.Color = hair.Black.BackgroundColor 3 |
131 | hair.Check.MouseButton 1 Click:connect( function () |
135 | hair.Check.ImageLabel.ImageTransparency = 1 |
136 | chr.Head.Hair.Transparency = 1 |
143 | hair.Check.MouseButton 1 Click:connect( function () |
145 | if Hair = = false then |
147 | hair.Check.ImageLabel.ImageTransparency = 0 |
148 | chr.Head.Hair.Transparency = 0 |
155 | play.MouseButton 1 Click:connect( function () |
156 | editing.Value = false |
157 | play.Parent.Parent.Enabled = false |