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: Keeping Character Parts visible while in First Person Mode

Previous Thread :: Next Thread 
cokePanda is not online. 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 is not online. 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 is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
09 Nov 2015 07:04 PM
They updated, now you only have to set it once, no need for render step
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
09 Nov 2015 07:05 PM
o wow
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
09 Nov 2015 07:11 PM
no?
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
10 Nov 2015 01:27 PM
Thank you :)
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