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
 

camera interfering with morph?

Previous Thread :: Next Thread 
Stravan is not online. Stravan
Joined: 21 Dec 2009
Total Posts: 1337
23 May 2016 12:22 AM
self = script.Parent
cam = workspace.CurrentCamera
runserv = game:GetService("RunService")

player = game.Players.LocalPlayer
char = player.Character or player.CharacterAdded:wait()
humanoid = char:WaitForChild("Humanoid")


player.CameraMaxZoomDistance = 0.5
humanoid.CameraOffset = Vector3.new(0,0,-0.5)

function updateCam()
if humanoid then
local y = cam.CoordinateFrame.lookVector.Y
humanoid.CameraOffset = Vector3.new(math.max(3,1.5-y),math.abs(y/2)-y*3.8642337322235,7-math.abs(y))
end
end

function lock(part)
if part and part:IsA("Hat") and part:WaitForChild("Handle") then
part = part.Handle
end
if part and part:IsA("BasePart") then
part.LocalTransparencyModifier = 0
part.Changed:connect(function ()
part.LocalTransparencyModifier = 0
end)
end
end

for _,v in pairs(char:GetChildren()) do
lock(v)
end

char.ChildAdded:connect(lock)
runserv.RenderStepped:connect(updateCam)



this appears to make it so whenever i use a morph, the morph does not appear. just an almost transparent head. when i disable it, it works fine. i tried to add a wait to this script but it still doesn't work.

☜(ˆ▿ˆc)


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