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

I need help with meshes and cframe?

Asked by 8 years ago
Edited 8 years ago

I am trying to make it so the second mesh is overlaping the mesh inside the middle mesh


p=Instance.new('Part', game.Workspace.Terrain) p.Anchored=true p.Locked=true p.CFrame=CFrame.new(0,5,0) p.BrickColor=BrickColor.new("Really black") p.Material = Enum.Material.SmoothPlastic p.Size=Vector3.new(1.8, 1.8, 1.8) p.Transparency = 0.000 p.CanCollide = false p2=Instance.new('Part', game.Workspace) p2.Anchored=true p2.Locked=true p2.BrickColor=BrickColor.new("Really black") p2.Material = Enum.Material.SmoothPlastic p2.Size=Vector3.new(1.9,1.9,1.9) p2.Transparency = 0.700 p2.CanCollide = false s=Instance.new('SpecialMesh', p) s.MeshId="rbxassetid://431130678" s.Scale=Vector3.new(0.1,0.1,0.1) s2=Instance.new('SpecialMesh', p2) s2.MeshId="rbxassetid://431130678" s2.Scale=Vector3.new(0.11,0.11,0.11) game:GetService('RunService').Stepped:connect(function() p.CFrame=game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,0,-5) end)

There is one mesh which is 0.7 transparent which is the outline of the middle mesh, but I cant get them to stay together..

It is a nonlocal script, not a local script..

I am trying to make it like a outlined block, I dont like using selectionboxes..

Try running the code, you'll see what I mean.

0
For heaven's sake man. Use a code block. User#11440 120 — 8y
0
There, I used a codeblock BadLuke1 2 — 8y

Answer this question