cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
|
| 09 Nov 2015 06:49 PM |
| Is there a property for this, or does it need complicated scripts? |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 09 Nov 2015 07:01 PM |
http://wiki.roblox.com/index.php?title=API:Class/BasePart/LocalTransparencyModifier
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local la = character:WaitForChild("Left Arm") local ra = character:WaitForChild("Right Arm")
game:GetService("RunService").RenderStepped:connect(function() la.LocalTransparencyModifier = 0 ra.LocalTransparencyModifier = 0 end) |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 09 Nov 2015 07:03 PM |
in a local script
local plr = game.Players.LocalPlayer local char = plr.CharacterAppearanceLoaded:wait()
-- AFAIK, you must set the LocalTransparencyModifier on render stepped for character body parts
game:GetService("RunService").RenderStepped:connect(function() for i, v in pairs(char:GetChildren()) do if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then v.LocalTransparencyModifier = 0 end end end)
executing a for loop every render frame might be a bit more expensive than necessary so just set the LocalTransparencyModifier to 0 for the body parts you want to be visible |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2015 07:04 PM |
| They updated, now you only have to set it once, no need for render step |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
| |
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
| |
|