generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: mesh help?

Previous Thread :: Next Thread 
Narutozo is not online. 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 is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
02 Apr 2016 11:26 PM
The mesh doesn't appear at all.
Report Abuse
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
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 is not online. 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
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
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 is not online. 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
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
03 Apr 2016 12:24 AM
Not to sure, going to go test that in Studio and work out a solution...


Report Abuse
xlaser23 is not online. 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
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
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
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
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
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
03 Apr 2016 12:36 AM
In one of my earlier posts - not too sure.*


Report Abuse
Narutozo is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
03 Apr 2016 07:25 AM
Alright. Thanks!
Report Abuse
KomikLegend is not online. KomikLegend
Joined: 25 Jun 2015
Total Posts: 451
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image