Type Index Pages
No Result Found !!!
-
Instance
- GameSettings
- DebugSettings
- BodyMover
- WeldConstraint
- HttpRbxApiService
- NotificationService
- Translator
- Lighting
- Beam
- GuiService
- UserInputService
- Studio
- Plugin
- HttpService
- Mouse
- BindableEvent
- RunService
- Pages
- Humanoid
- TestService
- PathfindingService
- Chat
- NetworkPeer
- Feature
- CharacterAppearance
- Constraint
- NetworkReplicator
- JointInstance
- Light
- BasePlayerGui
- AnalyticsService
- NetworkMarker
- BinaryStringValue
- FlyweightService
- Geometry
- LoginService
- InstancePacketCache
- ThirdPartyUserService
- TouchInputService
- RuntimeScriptService
- GuidRegistryService
- PartOperationAsset
- DialogChoice
- PhysicsService
- AdService
- TextService
- MarketplaceService
- TeleportService
- Accoutrement
- GamePassService
- AssetService
- InsertService
- PointsService
- ChangeHistoryService
- ServerScriptService
- JointsService
- LogService
- InputObject
- Toolbar
- LuaSettings
- RenderSettings
- AnimationTrack
- PhysicsSettings
- NetworkSettings
- CFrameValue
- Animation
- Color3Value
- BoolValue
- BrickColorValue
- Vector3Value
- AnimationController
- BindableFunction
- Button
- Trail
- LocalizationTable
- LocalizationService
- DebuggerBreakpoint
- DebuggerWatch
- ScriptDebugger
- Animator
- Attachment
- RemoteFunction
- RemoteEvent
- PluginManager
- Camera
- Stats
- Sky
- StarterPlayer
- Dragger
- TerrainRegion
- Path
- TextFilterResult
- Dialog
- StatsItem
- GoogleAnalyticsConfiguration
- ScriptContext
- ControllerService
- CacheableContentProvider
- ReflectionMetadataClasses
- ReflectionMetadataEnums
- DebuggerManager
- GuiBase
- UIBase
- LuaSourceContainer
- GuiItem
- DataModelMesh
- ServiceProvider
- ReflectionMetadataItem
- PostEffect
- PhysicsPacketCache
- TouchTransmitter
- RobloxReplicatedStorage
- Visit
- LuaWebService
- ScriptService
- FlagStandService
- VirtualUser
- SpawnerService
- TimerService
- CookiesService
- Team
- GroupService
- StarterGear
- Message
- PlayerScripts
- Configuration
- ContentProvider
- CollectionService
- Debris
- ReplicatedFirst
- ServerStorage
- ReplicatedStorage
- Folder
- TweenService
- Players
- ContextActionService
- StarterPlayerScripts
- SoundService
- KeyframeSequenceProvider
- VRService
- PluginGuiService
- Player
- Teams
- Pose
- Keyframe
- KeyframeSequence
- IntConstrainedValue
- DoubleConstrainedValue
- ForceField
- RayValue
- Fire
- Smoke
- Sparkles
- ParticleEmitter
- IntValue
- StringValue
- NumberValue
- Explosion
- ObjectValue
- SoundGroup
- UserGameSettings
- ClickDetector
- Sound
- Selection
- BadgeService
- TaskScheduler
- GlobalDataStore
- DataStoreService
- CustomEvent
- CustomEventReceiver
- VirtualInputManager
- FunctionalTest
- TweenBase
- SoundEffect
- ReflectionMetadataEvents
- ClusterPacketCache
- PVInstance
- FaceInstance
- Controller
- ReflectionMetadataCallbacks
- ReflectionMetadataFunctions
- ReflectionMetadataYieldFunctions
- ReflectionMetadataProperties
- ReflectionMetadata
- AdvancedDragger
- HapticService
- FriendService
- GamepadService
No Result Found !!!
LocalTransparencyModifier
This item is not replicated across Roblox’s server/client boundary.
This item is not shown in the object browser. It is likely not intended for widespread use. Expect problems and changes.
The LocalTransparencyModifier property is a multiplier to BasePart/Transparency
that is only visible to the local client. It does not replicate from client to server. It is useful for when a part should not render for a specific client, such as how the player does not see their character’s body parts when they zoom into first person mode.
The property modifies the local part’s transparency increases a part’s transparency on a scale from 0 to 1 using the following formula:
-- Calculate the part’s client-side transparency. Values greater than 1 round down to 1.
local clientTransparency = part.Transparency + (1 * part.localTransparencyModifier)
Take a look at the table below for an example of how this property affect’s a part’s client-side transparency:
Transparency | LocalTransparencyModifier | Server-Side Transparency | Client-Side Transparency | Description |
---|---|---|---|---|
0.5 | 0 | 0.5 | 0.5 | A modifier value of 0.5 means that the part’s client-side transparency is affected as follows: 0.5 + 1*0 = 0.5. The part’s client-side transparency equals its server-side transparency. |
0.5 | 0.5 | 0.5 | 0.75 | A modifier value of 0.5 means that the part’s client-side transparency is affected as follows: 0.5 + 1*0.5 = 0.75 |
0.5 | 1 | 0.5 | 1 | A modifier value of 1 means that the part’s client-side transparency is affected as follows: 0.5 + 1*1 = >1. The client does not render the part. |
Code Samples
X-Ray Vision
This code sample gives the local client X-ray vision using LocalTransparencyModifier. It allows the player to see through all parts in the Workspace, which are found using recursion.
-- X-ray vision: see through everything! local function makeXRayPart(part) -- LocalTransparencyModifier will make parts see-through but only for the local -- client, and it won't replicate to the server part.LocalTransparencyModifier = .5 end -- This function uses recursion to search for parts in the game local function recurseForParts(object) -- Did we find a part that isn't if object:IsA("BasePart") then makeXRayPart(object) end -- Stop if this object has a Humanoid - we don't want to see-through players! if object:FindFirstChildOfClass("Humanoid") then return end -- Check the object's children for more parts for _, child in pairs(object:GetChildren()) do recurseForParts(child) end end recurseForParts(workspace)
How this site use cookies
This Platform uses cookies to offer you a better experience, to personalize content, to provide social media features and to analyse the traffic on our site. For further information, including information on how to prevent or manage the use of cookies on this Platform, please refer to our Privacy and Cookie Policy.