Narutozo
|
  |
| Joined: 28 Jul 2013 |
| Total Posts: 1314 |
|
|
| 02 Apr 2016 11:25 PM |
The mesh doesn't at all. local LocalPlayer = game:GetService("Players").LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() local Orb = Instance.new("Part", Character) Orb.Name = "Orb" Orb.Shape = Enum.PartType.Ball Orb.CanCollide = false Orb.BrickColor = BrickColor.new("Really black") Orb.Transparency = 0 Orb.Size = Vector3.new(2, 2, 2) Orb.TopSurface = Enum.SurfaceType.Smooth Orb.BottomSurface = Enum.SurfaceType.Smooth local BodyPosition = Instance.new("BodyPosition", Orb) while wait(0) do BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) end
local p = Instance.new("Part", workspace) mesh = Instance.new("SpecialMesh", p) p.CanCollide = false mesh.Scale = Vector3.new(3,3,3) w1 = Instance.new("Weld", p) w1.Part1 = Orb w1.Part0 = p w1.C0 = CFrame.new(0,1,0)
|
|
|
| Report Abuse |
|
|
Narutozo
|
  |
| Joined: 28 Jul 2013 |
| Total Posts: 1314 |
|
|
| 02 Apr 2016 11:26 PM |
| The mesh doesn't appear at all. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2016 11:34 PM |
Is the mesh meant to be a HeadMesh? Because in this Script you don't edit anything about the SpecialMesh regarding what type it is. By default, it is a HeadMesh.
|
|
|
| Report Abuse |
|
|
Narutozo
|
  |
| Joined: 28 Jul 2013 |
| Total Posts: 1314 |
|
|
| 02 Apr 2016 11:39 PM |
No, i'm going to add the MeshId later on. The problem is I cant see the mesh at all. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2016 11:43 PM |
Ah. When you run the game, stop and look at the transparency of "p", whose name is probably just "Part" based on your code. Make sure that transparency is 0, because otherwise the Mesh shouldn't show.
At least, I am pretty sure that's how it works. (Having an invisible parent part means the mesh inside will be invisible.)
|
|
|
| Report Abuse |
|
|
Narutozo
|
  |
| Joined: 28 Jul 2013 |
| Total Posts: 1314 |
|
|
| 02 Apr 2016 11:57 PM |
Heres the new and improved version still not working.
local LocalPlayer = game:GetService("Players").LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() local Orb = Instance.new("Part", Character) Orb.Name = "Orb" Orb.Shape = Enum.PartType.Ball Orb.CanCollide = false Orb.BrickColor = BrickColor.new("Really black") Orb.Transparency = 0 Orb.Size = Vector3.new(2, 2, 2) Orb.TopSurface = Enum.SurfaceType.Smooth Orb.BottomSurface = Enum.SurfaceType.Smooth local BodyPosition = Instance.new("BodyPosition", Orb) while wait(0) do BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) end
local p = Instance.new("Part", workspace) mesh = Instance.new("SpecialMesh", p) p.CanCollide = false mesh.Scale = Vector3.new(3,3,3) w1 = Instance.new("Weld", p) w1.Part1 = Orb w1.Part0 = p w1.C0 = w1.C0 * CFrame.new(0,1,0) p.Transparency = 0
|
|
|
| Report Abuse |
|
|
|
| 03 Apr 2016 12:24 AM |
Not to sure, going to go test that in Studio and work out a solution...
|
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 03 Apr 2016 12:30 AM |
da hell are u trying to do with the specialmesh?
try blockmesh or something like that
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$11,519 Tx40 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2016 12:34 AM |
Alright, well, came up with this. Sorry for changing things so much, I got picky when testing things out. This made the Mesh appear. I don't know if your while() loop even ran, considering the conditional statement looked weird. But even if it did run, it would have run forever, meaning the Mesh code would have never run. This works: (Again, sorry for intense editing!)
local LocalPlayer = game:GetService("Players").LocalPlayer while not game:GetService("Players").LocalPlayer.Character do game:GetService("RunService").RenderStepped:wait() end local Character = game:GetService("Players").LocalPlayer.Character local Orb = Instance.new("Part", Character) Orb.Name = "Orb" Orb.Shape = Enum.PartType.Ball Orb.CanCollide = false Orb.BrickColor = BrickColor.new("Really black") Orb.Transparency = 0 Orb.Size = Vector3.new(2, 2, 2) Orb.TopSurface = Enum.SurfaceType.SmoothNoOutlines Orb.BottomSurface = Enum.SurfaceType.SmoothNoOutlines Orb.FrontSurface = Enum.SurfaceType.SmoothNoOutlines Orb.BackSurface = Enum.SurfaceType.SmoothNoOutlines Orb.RightSurface = Enum.SurfaceType.SmoothNoOutlines Orb.LeftSurface = Enum.SurfaceType.SmoothNoOutlines local BodyPosition = Instance.new("BodyPosition", Orb) BodyPosition.Name = "RocketIconIntoSpaceOhManWooHoo" local Part = Instance.new("Part", Orb) local Mesh = Instance.new("SpecialMesh", Part) Part.CanCollide = false Part.Size = Vector3.new(1, 1, 1) Part.Transparency = 0 Part.TopSurface = Enum.SurfaceType.SmoothNoOutlines Part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines Part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines Part.BackSurface = Enum.SurfaceType.SmoothNoOutlines Part.RightSurface = Enum.SurfaceType.SmoothNoOutlines Part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines Mesh.Scale = Vector3.new(3, 3, 3) Weld1 = Instance.new("Weld", Part) Weld1.Part1 = Orb Weld1.Part0 = Part Weld1.C0 = Weld1.C0 * CFrame.new(0, 1, 0) while wait() do BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) end
This works. I want to say - that orb thing is cool. Didn't know that was so easy to do.
|
|
|
| Report Abuse |
|
|
|
| 03 Apr 2016 12:36 AM |
Also important to say that I put the Part inside the Orb. And I named the BodyPosition object "RocketIconIntoSpaceOhManWooHoo".
|
|
|
| Report Abuse |
|
|
|
| 03 Apr 2016 12:36 AM |
In one of my earlier posts - not too sure.*
|
|
|
| Report Abuse |
|
|
Narutozo
|
  |
| Joined: 28 Jul 2013 |
| Total Posts: 1314 |
|
| |
|
|
| 03 Apr 2016 10:50 AM |
Cool, I was testing that out in Studio and I was having a lot of fun with it. I made it a SphereMesh and I put a face on it, did some lookVector stuff and now it's a constant companion. :D
|
|
|
| Report Abuse |
|
|