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: How do i fix the camera with this script?

Previous Thread :: Next Thread 
Nintendofan54322 is not online. Nintendofan54322
Joined: 02 Jun 2011
Total Posts: 17455
06 May 2015 06:33 PM
When you touch something with this script,you die and all your parts get changed to make you look squished,but when you get hit you DO get squished,but the camera glitches out,so i can barely see the squished parts.
Help me solve this problem.

function onTouch(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent:FindFirstChild("Torso").FormFactor = "Custom"
hit.Parent:FindFirstChild("Left Leg").FormFactor = "Custom"
hit.Parent:FindFirstChild("Left Arm").FormFactor = "Custom"
hit.Parent:FindFirstChild("Right Arm").FormFactor = "Custom"
hit.Parent:FindFirstChild("Right Leg").FormFactor = "Custom"
hit.Parent:FindFirstChild("Head").FormFactor = "Custom"
hit.Parent:FindFirstChild("Torso").Size = Vector3.new(1,0.2,1)
hit.Parent:FindFirstChild("Left Leg").Size = Vector3.new(1,0.2,1)
hit.Parent:FindFirstChild("Left Arm").Size = Vector3.new(1,0.2,1)
hit.Parent:FindFirstChild("Right Arm").Size = Vector3.new(1,0.2,1)
hit.Parent:FindFirstChild("Right Leg").Size = Vector3.new(1,0.2,1)
hit.Parent:FindFirstChild("Head").Size = Vector3.new(1,0.2,1)
hit.Parent:FindFirstChild("Torso").Name = "kablusted"
end
end

script.Parent.Touched:connect(onTouch)

POW TO YOU!
Report Abuse
Nintendofan54322 is not online. Nintendofan54322
Joined: 02 Jun 2011
Total Posts: 17455
06 May 2015 06:59 PM
Bump

POW TO YOU!
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
06 May 2015 07:08 PM
Ok, that can be WAY more efficient.

for _,v in pairs(hit.Parent:GetChildren()) do
if v:IsA("Part") then
v.FormFactor = "Custom"
v.Size = Vector3.new(1,0.2,1)
end
end

Why is that mirror broken? Oh, It's just my face. xD
Report Abuse
Nintendofan54322 is not online. Nintendofan54322
Joined: 02 Jun 2011
Total Posts: 17455
06 May 2015 07:26 PM
Im gonna try that.

POW TO YOU!
Report Abuse
Nintendofan54322 is not online. Nintendofan54322
Joined: 02 Jun 2011
Total Posts: 17455
06 May 2015 07:29 PM
Does not do anything...

POW TO YOU!
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
06 May 2015 07:33 PM
Did u define the function before you inserted that?
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
06 May 2015 07:36 PM
Try making an invisible part where you want the camera to be, and then set the camera to be there.
Report Abuse
Nintendofan54322 is not online. Nintendofan54322
Joined: 02 Jun 2011
Total Posts: 17455
06 May 2015 07:37 PM
Problem is,that the object moves...

POW TO YOU!
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
06 May 2015 07:40 PM
Set it's position every rederStepped
Report Abuse
Nintendofan54322 is not online. Nintendofan54322
Joined: 02 Jun 2011
Total Posts: 17455
06 May 2015 07:42 PM
Damm..I have no idea what are you guys saying...

POW TO 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