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

How come this keeps putting the character into the ground?

Asked by 8 years ago

So I have a part welded to the character and when i try to change the part's size using Vector3, the character goes straight into the ground and gets stuck.. Why?

local CamModel = Instance.new("Model", cam)
    local HRP = Instance.new("Part", CamModel)
        HRP.Name = "HRP"
        HRP.Size = Vector3.new()
        HRP.Anchored = false
        HRP.CanCollide = false
    local HRPW = Instance.new("Motor6D", char:WaitForChild("Torso"))
        HRPW.Name = "HRPW"
        HRPW.Part0 = char:WaitForChild("Torso")
        HRPW.Part1 = HRP

1 answer

Log in to vote
0
Answered by 8 years ago

This is very simple its basically the baseplate which has different surface and when u insert a new part its bottom surface attaches to the top surface, when you create a new place the baseplate is in the center of every thing hence when a new part spawns it will spawn in the center therefore welding its self how do you fix this?:

Just change the top surface to smooth no outlines or make a new script containing this!

local base=workspace.Baseplate--name of your baseplate
base.TopSurface=Enum.SurfaceType.SmoothNoOutlines
base.BottomSurface=Enum.SurfaceType.SmoothNoOutlines
base.FrontSurface=Enum.SurfaceType.SmoothNoOutlines
base.BackSurface=Enum.SurfaceType.SmoothNoOutlines
base.LeftSurface=Enum.SurfaceType.SmoothNoOutlines
base.RightSurface=Enum.SurfaceType.SmoothNoOutlines

If there are still errors please let me know

0
You could also reposition your baseplate Coolboyok11 64 — 8y
Ad

Answer this question