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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Club Houses » Clans & Guilds
Home Search
 

what scripters see compared to what i see

Previous Thread :: Next Thread 
2Spook4Me is not online. 2Spook4Me
Joined: 30 Jan 2011
Total Posts: 7799
10 Sep 2014 03:27 AM
local representation = Instance.new("Model")
representation.Parent = script.Parent
representation.archivable = false
representation.Name = "Minimap"

function makeRepresentation(obj, cf, name)
if not obj.archivable then
return
end
if ((obj.className == "Part") or (obj.className == "Seat") or (obj.className == "SpawnLocation") or (obj.className == "WedgePart")) 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
if obj.className ~= "WedgePart" then
rep.Shape = obj.Shape
end
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 and obj.className ~= "WedgePart" 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.className ~= "WedgePart" and obj.Shape == Enum.PartType.Ball then
mesh.MeshType = Enum.MeshType.Sphere
elseif obj.className ~= "WedgePart" and obj.Shape == Enum.PartType.Block then
mesh:Remove()
mesh = Instance.new("BlockMesh")
mesh.Scale = obj.Size * scale / rep.Size
--mesh.MeshType = Enum.MeshType.Brick
elseif obj.className == "WedgePart" then
mesh.MeshType = "Wedge"
mesh.Parent = rep
mesh.Scale = obj.Size * scale / rep.Size
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 mini-map...")
makeRepresentation(workspace, CFrame.new(0, 50, 0), "Workspace")
local _2, t2 = wait()
print("Mini-map is done! Time taken: " .. t2 - t .. " seconds.")

them ^

me:

matrix
Report Abuse
BrotherBerzerk is not online. BrotherBerzerk
Joined: 29 Apr 2010
Total Posts: 1350
10 Sep 2014 03:36 AM
TL;DR

All parts except for Corner wedge can be made smaller.

Thanks for making fun of me, mate. ;3


~Admiral BrotherBerzerk of S.M.P|"How is it you can do everything?"|"I am BB, that's how."
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
10 Sep 2014 03:45 AM
*violently types on sixteen keyboards at the same time*
Report Abuse
Demystified is not online. Demystified
Joined: 05 Nov 2007
Total Posts: 6580
10 Sep 2014 03:48 AM
That's MY code you're insulting, KID.

What Did You Just Say About Me, You Little Skiddie? Ill Have U Know I Am Top Of My Class In THe LuaLearners and I Have Over 200 Confirmed Place Visits. I Am Trained In Functions And I Am The Top Logical Person In The Entire Of The Sparrow Corporation!! You Are Nothing To Me But Juts Another Bug In The Code. I Will Debug You With Precision The Likes Of Which Has Never been Seen Before On This Game. You Think You Can Get Away With Making Fun of my 1337 Lua Skills on the Internet? Think Again, Scrub!! As We Speak I am Contacting My Secret Network Of MLG Programmers who Work At ROBLOX And Your Programming Level Is Being Calculated Right Now So You Better Prepare For the Humiliation! The Humiliation That Convinces Cubyfan24 To Let Me Program For His Amazing Clan Instead Of You!!! I Can Program Anything, Anytime And That's Just With my Hands On The Keyboard And I can Program In Over 700 Different Styles With Just My Right Hand. Not Only Am I trained Extensively In The Art of Loops But I have Access To The Entire Arsenal of ROBLOX'S EXTENSIVE API And I Will Utilize It To It's Full Extent to Make Your Code Inefficient!! You're Done, Kid!


keith | don't take me srsly pls | tons of deleted accounts | i do stuff
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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