|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 06 May 2015 07:26 PM |
Im gonna try that.
POW TO YOU! |
|
|
| Report Abuse |
|
|
|
| 06 May 2015 07:29 PM |
Does not do anything...
POW TO YOU! |
|
|
| Report Abuse |
|
|
|
| 06 May 2015 07:33 PM |
| Did u define the function before you inserted that? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 06 May 2015 07:37 PM |
Problem is,that the object moves...
POW TO YOU! |
|
|
| Report Abuse |
|
|
|
| 06 May 2015 07:40 PM |
| Set it's position every rederStepped |
|
|
| Report Abuse |
|
|
|
| 06 May 2015 07:42 PM |
Damm..I have no idea what are you guys saying...
POW TO YOU! |
|
|
| Report Abuse |
|
|