Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Any help with this very strange glitch?[Resolved]

Asked by 8 years ago

[Resolved on my own]

Hello! Upon further investigation with my NPC, I have managed to create joints which allow an animation to be played within a smaller than usual NPC. However, for some strange reason, that I need help to evaluate, is this glitch: http://imgur.com/a/hv9zT

In these images show what happened to the NPC after testing. Its arms became even smaller than a custom FormFactor could go, even though the properties say the correct size. A peice of the helmet that I had welded to her only shows one randomized part each test. I have tried removeing all access scripts and addons to make a bare NPC, but this still happens. The script that makes the joints is causing it but I don't know why!

Here is the script I used

-- TheCapacitor
-- Start
local Rj = Instance.new("Motor6D")
local Rs = Instance.new("Motor6D")
local Ls = Instance.new("Motor6D")
local Rh = Instance.new("Motor6D")
local Lh = Instance.new("Motor6D")
local Neck = Instance.new("Motor6D")
-- Names 
Rj.Name = "RootJoint"
Rs.Name = "Right Shoulder"
Ls.Name = "Left Shoulder"
Rh.Name = "Right Hip"
Lh.Name = "Left Hip"
Neck.Name = "Neck"

-- C0
Rj.C0 = CFrame.new(0, 0, 0, -0.4, 0, 0, 0, 0, 0.4, 0, 0.4, 0)
Rs.C0 = CFrame.new(0.4, 0.2, 0, 0, 0, 0.4, 0, 0.4, 0, -0.4, -0, -0)
Ls.C0 = CFrame.new(-0.4, 0.2, 0, -0, -0, -0.4, 0, 0.4, 0, 0.4, 0, 0)
Rh.C0 = CFrame.new(0.4, -0.4, 0, 0, 0, 0.4, 0, 0.4, 0, -0.4, -0, -0)
Lh.C0 = CFrame.new(-0.4, -0.4, 0, -0, -0, -0.4, 0, 0.4, 0, 0.4, 0, 0)
Neck.C0 = CFrame.new(0, -0.4, 0)

-- C1
Rj.C1 = CFrame.new(0, 0, 0, -0.4, 0, 0, 0, 0, 0.4, 0, 0.4, -0)
Rs.C1 = CFrame.new(-0.2, 0.2, 0, 0, 0, 0.4, 0, 0.4, 0, -0.4, -0, -0)
Ls.C1 = CFrame.new(0.2, 0.2, 0, -0, -0, -0.4, 0, 0.4, 0, 0.4, 0, 0)
Rh.C1 = CFrame.new(0.2, 0.4, 0, 0, 0, 0.4, 0, 0.4, 0, -0.4, -0, -0)
Lh.C1 = CFrame.new(-0.2, 0.4, 0, -0, -0, -0.4, 0, 0.4, 0, 0.4, 0, 0)
Neck.C1 = CFrame.new(0, -1, 0)

-- Part0
Rj.Part0 = script.Parent.HumanoidRootPart
Rs.Part0 = script.Parent.Torso
Ls.Part0 = script.Parent.Torso
Rh.Part0 = script.Parent.Torso
Lh.Part0 = script.Parent.Torso
Neck.Part0 = script.Parent.Torso 

-- Part1
Rj.Part1 = script.Parent.Torso
Rs.Part1 = script.Parent["Right Arm"]
Ls.Part1 = script.Parent["Left Arm"]
Rh.Part1 = script.Parent["Right Leg"]
Lh.Part1 = script.Parent["Left Leg"]
Neck.Part1 = script.Parent.Head

-- Parent
Rj.Parent = script.Parent.HumanoidRootPart
Rs.Parent = script.Parent.Torso
Ls.Parent = script.Parent.Torso
Rh.Parent = script.Parent.Torso
Lh.Parent = script.Parent.Torso
Neck.Parent = script.Parent.Torso

-- MaxVelocity
Rj.MaxVelocity = 0.04
Rs.MaxVelocity = 0.04
Ls.MaxVelocity = 0.04
Rh.MaxVelocity = 0.04
Lh.MaxVelocity = 0.04
Neck.MaxVelocity = 0.04

-- MakeJoints()
script.Parent:MakeJoints()

-- Self destruct
script:Remove()

0
Link isn't working for me, not sure why. Perci1 4988 — 8y
0
@Perci1, he left the parenthesis blank, so it would just open a new window or tab. Here's the link http://imgur.com/a/hv9zT M39a9am3R 3210 — 8y
0
Oh sorry, I updated it! minikitkat 687 — 8y
0
Try changing the size to a bigger one so that the arms and legs will fit on the body as well as the helment. GreekGodOfMLG 244 — 8y
View all comments (2 more)
0
Change what to a bigger what? minikitkat 687 — 8y
0
Found out what was wrong!!! The joint CFrames were changing the size! Fixed it myself!! minikitkat 687 — 8y

Answer this question