You are not logged in. Please log in if you wish to participate in all discussions on the website, chat with friends, and use everything we've got to offer.

Click Register below to, well, register. Derp. Enjoy your stay. ;)

If you do not have an account and wish to create one, please follow the link below.

http://www.robloxtoday.net/register

You are not connected. Please login or register

Goto page : 1, 2  Next

View previous topic View next topic Go down  Message [Page 1 of 2]

1 MiniMap Script on 7/25/2010, 1:37 am

Alex


Special
Special
I need a MiniMap script that MiniMaps Wedges as well as the Special Mesh, Block Mesh, and Cylinder Mesh.

I can't seem to find one and my weapons have a lot of wedges in them.

Code:
 One Sec. Roblox Studio not-responding because of some jacked up minimap script from freemodels.


____________________________
Evening, Guest Welcome to the Roblox Today Forums!
Hello, I am Alex. The Forum's Head Moderator.



I joined ROBLOX, December 29th, 2007!
I was one of the first to join this lovely forum, invited by Clayton himself. The memories. Ah.
Administrators have too much power, therefore my position suits me just fine!
View user profile http://www.robloxtoday.com

2 Re: MiniMap Script on 7/25/2010, 3:20 pm

HanSolo996


Site Dev.
You mean you need something that shrinks a model? Makes it a mesh, if you will?
I'll work on one.

View user profile

3 Re: MiniMap Script on 7/26/2010, 1:15 pm

Alex


Special
Special
How do I make a model a mesh.. It's a script that shrinks anything that is named Model, and meshes with classes Special Mesh, Cylinder Mesh, and Block Mesh.





Code:
 scale = 1 / 10

local representation = Instance.new("Model")
representation.Parent = script.Parent
representation.archivable = false
representation.Name = "SmallMap"

function makeRepresentation(obj, cf, name)
   if not obj.archivable then
      return
   end
   if ((obj.className == "Part") or (obj.className == "Seat") or (obj.className == "SpawnLocation")) then
      local rep = Instance.new("Part")
      rep.formFactor = obj.formFactor
      rep.Size = obj.Size * scale
      rep.Transparency = obj.Transparency
      rep.Reflectance = obj.Reflectance
      rep.BrickColor = obj.brickColor
      rep.Anchored = true
      rep.Locked = true
      rep.TopSurface = Enum.SurfaceType.Smooth
      rep.BottomSurface = Enum.SurfaceType.Smooth
      rep.Shape = obj.Shape
      rep.Name = name
      mesh = Instance.new("SpecialMesh")
      mesh.Scale = obj.Size * scale / rep.Size
      local list = obj:GetChildren()
      local objMesh = nil
      for x = 1, #list do
         if (list[x].className == "Decal") then
            local copy = list[x]:Clone()
            copy.Parent = rep
         elseif (list[x].className == "SpecialMesh") or (list[x].className == "CylinderMesh") or (list[x].className == "BlockMesh") then
            objMesh = list[x]
         end
      end
      if objMesh ~= nil then
         mesh:Remove()
         mesh = objMesh:Clone()
         if (objMesh.className == "SpecialMesh") and (objMesh.MeshType == Enum.MeshType.FileMesh) then
            mesh.Scale = objMesh.Scale * scale
         else
            mesh.Scale = objMesh.Scale * obj.Size * scale / rep.Size
         end
      elseif obj.Shape == Enum.PartType.Ball then
         mesh.MeshType = Enum.MeshType.Sphere
      elseif obj.Shape == Enum.PartType.Block then
         mesh:Remove()
         mesh = Instance.new("BlockMesh")
         mesh.Scale = obj.Size * scale / rep.Size
         --mesh.MeshType = Enum.MeshType.Brick
      else
         mesh.MeshType = Enum.MeshType.Cylinder
         rep.Shape = Enum.PartType.Ball
      end
      mesh.Parent = rep
      rep.CFrame = cf:toWorldSpace(obj.CFrame + obj.Position * (scale - 1))
      rep.Parent = representation
   else
      if (obj == workspace) or (((obj.className == "Model") or (obj.className == "Tool") or (obj.className == "Hat")) and (obj ~= representation)) then
         local list = obj:GetChildren()
         for x = 1, #list do
            wait()
            makeRepresentation(list[x], cf, name .. "->" .. list[x].Name)
         end
      end
   end
end

local _, t = wait()
print("Making a Small-Map...")
makeRepresentation(workspace, CFrame.new(0, 1.2, 0), "Workspace")
local _2, t2 = wait()
print("Small-Map is done! Time taken: " .. t2 - t .. " seconds.")


It's a really good MiniMap maker, but it doesn't minimap wedges, which makes my weapon look lame.


____________________________
Evening, Guest Welcome to the Roblox Today Forums!
Hello, I am Alex. The Forum's Head Moderator.



I joined ROBLOX, December 29th, 2007!
I was one of the first to join this lovely forum, invited by Clayton himself. The memories. Ah.
Administrators have too much power, therefore my position suits me just fine!
View user profile http://www.robloxtoday.com

4 Re: MiniMap Script on 7/26/2010, 9:49 pm

HanSolo996


Site Dev.
So it just takes bricks and shrinks them down to size. How users make guns, usually.
There's a way to do that so it makes all the bricks a mesh, but it's *cough*... an exploit. Of sorts. :P
Either way, I'm working on it.

View user profile

5 Re: MiniMap Script on 7/26/2010, 9:58 pm

scripttester123


Site Owner
Site Owner
The reason it's hard to do wedges is because Robloxtoday has yet to (as far as I'm aware) make any way to specify the rotation of a brick. It's hard to explain and I'm on an ipod but basically you can't change the way the wedge is facing. So if you have a wedge in the model facing a non-default direction it'll totally mess up the mesh.

Or maybe I'm just really stupid and don't know what I'm talking about.


____________________________
When in doubt, Google it.

ZOMG!!1!11 SCRIPTESTER123 HAS YOUTUBE?!?!?

Yes sir. www.youtube.com/clabowman (Plus you getta see what I actually look like.. No. Wai.)
Oh yeah, add me on Facebook while you're at it! It automatically makes you super cool. www.facebook.com/clabowman
View user profile http://www.robloxtoday.com

6 Re: MiniMap Script on 7/26/2010, 10:24 pm

Alex


Special
Special
Well, I sort of found a loophole. Thanks for the help, but I don't need it anymore.

I just looked up " Wedge Mesh " and I found one, and the classname is " Part " instead of " WedgeType" which worked out well.


____________________________
Evening, Guest Welcome to the Roblox Today Forums!
Hello, I am Alex. The Forum's Head Moderator.



I joined ROBLOX, December 29th, 2007!
I was one of the first to join this lovely forum, invited by Clayton himself. The memories. Ah.
Administrators have too much power, therefore my position suits me just fine!
View user profile http://www.robloxtoday.com

7 Re: MiniMap Script on 7/28/2010, 5:41 pm

HanSolo996


Site Dev.
So you don't need the script anymore?

View user profile

8 Re: MiniMap Script on 7/30/2010, 9:02 pm

What about Gamer3D's MiniMap script?


____________________________

View user profile http://derpherington.tumblr.com/

9 Re: MiniMap Script on 8/6/2010, 9:02 pm

Chasedog


Normal Robloxian
Normal Robloxian
Or just script cframe it or what ever it's called! :3

View user profile http://chance0806.webs.com/

10 Re: MiniMap Script on 8/7/2010, 5:23 am

Alex


Special
Special
That doesn't make sense..
CFRAMING involves moving or rotating a brick.
A minimap script makes the model a smaller scale..


____________________________
Evening, Guest Welcome to the Roblox Today Forums!
Hello, I am Alex. The Forum's Head Moderator.



I joined ROBLOX, December 29th, 2007!
I was one of the first to join this lovely forum, invited by Clayton himself. The memories. Ah.
Administrators have too much power, therefore my position suits me just fine!
View user profile http://www.robloxtoday.com

View previous topic View next topic Back to top  Message [Page 1 of 2]

Goto page : 1, 2  Next

Permissions in this forum:
You cannot reply to topics in this forum