hawoody

Sao Bar

Apr 20th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.24 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Model0 = Instance.new("Model")
  19. Model1 = Instance.new("Model")
  20. Part2 = Instance.new("Part")
  21. SpecialMesh3 = Instance.new("SpecialMesh")
  22. Script4 = Instance.new("Script")
  23. Model5 = Instance.new("Model")
  24. Script6 = Instance.new("Script")
  25. Script7 = Instance.new("Script")
  26. Part8 = Instance.new("Part")
  27. SpecialMesh9 = Instance.new("SpecialMesh")
  28. Script10 = Instance.new("Script")
  29. ManualWeld11 = Instance.new("ManualWeld")
  30. Part12 = Instance.new("Part")
  31. SpecialMesh13 = Instance.new("SpecialMesh")
  32. Script14 = Instance.new("Script")
  33. Script15 = Instance.new("Script")
  34. Script16 = Instance.new("Script")
  35. Model0.Name = "TrueDiamond-[AinCrad]"
  36. Model0.Parent = mas
  37. Model1.Name = "HeadWeld"
  38. Model1.Parent = Model0
  39. Part2.Name = "Handle"
  40. Part2.Parent = Model1
  41. Part2.BrickColor = BrickColor.new("Bright yellow")
  42. Part2.Transparency = 1
  43. Part2.Anchored = true
  44. Part2.CanCollide = false
  45. Part2.FormFactor = Enum.FormFactor.Symmetric
  46. Part2.Size = Vector3.new(2, 1, 1)
  47. Part2.CFrame = CFrame.new(-2.59999108, 0.500019014, -11.1999741, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  48. Part2.Color = Color3.new(0.960784, 0.803922, 0.188235)
  49. Part2.Position = Vector3.new(-2.59999108, 0.500019014, -11.1999741)
  50. Part2.Color = Color3.new(0.960784, 0.803922, 0.188235)
  51. SpecialMesh3.Parent = Part2
  52. SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
  53. SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
  54. Script4.Name = "Weld"
  55. Script4.Parent = Model1
  56. table.insert(cors,sandbox(Script4,function()
  57. function weld()
  58. local parts,last = {}
  59. local function scan(parent)
  60. for _,v in pairs(parent:GetChildren()) do
  61. if (v:IsA("BasePart")) then
  62. if (last) then
  63. local w = Instance.new("Weld")
  64. w.Name = ("%s_Weld"):format(v.Name)
  65. w.Part0,w.Part1 = last,v
  66. w.C0 = last.CFrame:inverse()
  67. w.C1 = v.CFrame:inverse()
  68. w.Parent = last
  69. end
  70. last = v
  71. table.insert(parts,v)
  72. end
  73. scan(v)
  74. end
  75. end
  76. scan(script.Parent)
  77. for _,v in pairs(parts) do
  78. v.Anchored = false
  79. v.CanCollide = false
  80. end
  81. end
  82.  
  83. weld()
  84. script:Remove()
  85. end))
  86. Model5.Name = "DPiece"
  87. Model5.Parent = Model1
  88. Script6.Name = "Rotate"
  89. Script6.Parent = Model5
  90. table.insert(cors,sandbox(Script6,function()
  91. while true do
  92.  
  93. script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.01,0)
  94. wait(0.0006)
  95. end
  96. --For you Riku Babe
  97. end))
  98. Script7.Name = "BodyArmor"
  99. Script7.Parent = Model0
  100. table.insert(cors,sandbox(Script7,function()
  101. make = script.Parent
  102. head = make:findFirstChild("HeadWeld"),("DPiece")
  103. leftarm = make:findFirstChild("LeftArmWeld")
  104. rightarm = make:findFirstChild("RightArmWeld")
  105. leftleg = make:findFirstChild("LeftLegWeld")
  106. rightleg = make:findFirstChild("RightLegWeld")
  107. torso = make:findFirstChild("TorsoWeld")
  108. p = script.Parent.Parent.Parent
  109. char = script.Parent.Parent.Parent.Character
  110. --[[part = script.Parent:FindFirstChild("Activate")
  111. touch = false
  112.  
  113. if part == nil then
  114. repeat wait() until char -- waits until player actually exists
  115. touch.Value = true
  116. elseif part ~= nil then
  117. part.Touched:connect(function(hit)
  118. h = hit.Parent:findFirstChild("Humanoid")
  119. if h ~= nil then
  120. touch.Value = true
  121. end
  122. end)
  123. end]]
  124.  
  125. repeat wait() until char
  126.  
  127. if head ~= nil then
  128. head2 = head:Clone()
  129. head2.Parent = p.Character
  130. weld1 = Instance.new("Weld", head2:findFirstChild("Handle"))
  131. weld1.Part0 = head2:findFirstChild("Handle")
  132. weld1.Part1 = p.Character:findFirstChild("Head")
  133. -- header = head:GetChildren()
  134. --[[ for c = 1, #header do
  135. if header[c].ClassName == "Part" then
  136. header[c].Anchored = false
  137. header[c].CanCollide = false
  138. end
  139. end]]--
  140. end
  141. if leftarm ~= nil then
  142. leftarm2 = leftarm:Clone()
  143. leftarm2.Parent = p.Character
  144. weld2 = Instance.new("Weld", leftarm2:findFirstChild("Handle"))
  145. weld2.Part0 = leftarm2:findFirstChild("Handle")
  146. weld2.Part1 = p.Character:findFirstChild("Left Arm")
  147. -- la = leftarm:GetChildren()
  148. --[[ for c = 1, #la do
  149. if la[c].ClassName == "Part" then
  150. la[c].Anchored = false
  151. la[c].CanCollide = false
  152. end
  153. end]]--
  154. end
  155. if rightarm ~= nil then
  156. rightarm2 = rightarm:Clone()
  157. rightarm2.Parent = p.Character
  158. weld3 = Instance.new("Weld", rightarm2:findFirstChild("Handle"))
  159. weld3.Part0 = rightarm2:findFirstChild("Handle")
  160. weld3.Part1 = p.Character:findFirstChild("Right Arm")
  161. -- ra = rightarm:GetChildren()
  162. --[[ for c = 1, #ra do
  163. if ra[c].ClassName == "Part" then
  164. ra[c].Anchored = false
  165. ra[c].CanCollide = false
  166. end
  167. end]]--
  168. end
  169. if leftleg ~= nil then
  170. leftleg2 = leftleg:Clone()
  171. leftleg2.Parent = p.Character
  172. weld4 = Instance.new("Weld", leftleg2:findFirstChild("Handle"))
  173. weld4.Part0 = leftleg2:findFirstChild("Handle")
  174. weld4.Part1 = p.Character:findFirstChild("Left Leg")
  175. -- ll = rightarm:GetChildren()
  176. --[[ for c = 1, #ll do
  177. if ll[c].ClassName == "Part" then
  178. ll[c].Anchored = false
  179. ll[c].CanCollide = false
  180. end
  181. end]]--
  182. end
  183. if rightleg ~= nil then
  184. rightleg2 = rightleg:Clone()
  185. rightleg2.Parent = p.Character
  186. weld5 = Instance.new("Weld", rightleg2:findFirstChild("Handle"))
  187. weld5.Part0 = rightleg2:findFirstChild("Handle")
  188. weld5.Part1 = p.Character:findFirstChild("Right Leg")
  189. -- rl = rightarm:GetChildren()
  190. --[[ for c = 1, #rl do
  191. if rl[c].ClassName == "Part" then
  192. rl[c].Anchored = false
  193. rl[c].CanCollide = false
  194. end
  195. end]]--
  196. end
  197. if torso ~= nil then
  198. torso2 = torso:Clone()
  199. torso2.Parent = p.Character
  200. weld6 = Instance.new("Weld", torso2:findFirstChild("Handle"))
  201. weld6.Part0 = torso2:findFirstChild("Handle")
  202. weld6.Part1 = p.Character:findFirstChild("Torso")
  203. -- t = rightarm:GetChildren()
  204. --[[ for c = 1, #t do
  205. if t[c].ClassName == "Part" then
  206. t[c].Anchored = false
  207. t[c].CanCollide = false
  208. end
  209. end--]]
  210. end
  211. end))
  212. Part8.Name = "SAO Diamond(Put in starter pack)"
  213. Part8.Parent = mas
  214. Part8.BrickColor = BrickColor.new("Lime green")
  215. Part8.Reflectance = 0.10000000149012
  216. Part8.Transparency = 0.20000000298023
  217. Part8.Rotation = Vector3.new(0, 90, 0)
  218. Part8.Anchored = true
  219. Part8.CanCollide = false
  220. Part8.FormFactor = Enum.FormFactor.Symmetric
  221. Part8.Size = Vector3.new(1, 4, 1)
  222. Part8.CFrame = CFrame.new(-7.05001211, 2.00002909, -17.9698982, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  223. Part8.Color = Color3.new(0, 1, 0)
  224. Part8.Position = Vector3.new(-7.05001211, 2.00002909, -17.9698982)
  225. Part8.Orientation = Vector3.new(0, 90, 0)
  226. Part8.Color = Color3.new(0, 1, 0)
  227. SpecialMesh9.Parent = Part8
  228. SpecialMesh9.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  229. SpecialMesh9.Scale = Vector3.new(1.25, 3, 1.25)
  230. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  231. SpecialMesh9.Scale = Vector3.new(1.25, 3, 1.25)
  232. Script10.Parent = Part8
  233. table.insert(cors,sandbox(Script10,function()
  234. player = script.Parent.Parent.Parent
  235. p = script.Parent
  236. while true do
  237. wait()
  238. p.Position = player.Character.Torso.Position+ Vector3.new(0,7,0)
  239. p.Parent = player.Character
  240. end
  241. end))
  242. ManualWeld11.Name = "SAO Diamond(Put in starter pack) Terrain Joint"
  243. ManualWeld11.Parent = Part8
  244. ManualWeld11.Part1 = Part8
  245. Part12.Name = "Sword Art Online Diamond "
  246. Part12.Parent = mas
  247. Part12.BrickColor = BrickColor.new("Br. yellowish green")
  248. Part12.Reflectance = 0.30000001192093
  249. Part12.Transparency = 0.10000002384186
  250. Part12.Rotation = Vector3.new(0, 90, 0)
  251. Part12.Anchored = true
  252. Part12.CanCollide = false
  253. Part12.FormFactor = Enum.FormFactor.Custom
  254. Part12.Size = Vector3.new(0.410000056, 0.999998331, 0.669999838)
  255. Part12.CFrame = CFrame.new(-0.565002024, 0.500001013, -12.0649862, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  256. Part12.Color = Color3.new(0.643137, 0.741176, 0.278431)
  257. Part12.Position = Vector3.new(-0.565002024, 0.500001013, -12.0649862)
  258. Part12.Orientation = Vector3.new(0, 90, 0)
  259. Part12.Color = Color3.new(0.643137, 0.741176, 0.278431)
  260. SpecialMesh13.Parent = Part12
  261. SpecialMesh13.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  262. SpecialMesh13.Scale = Vector3.new(0.5, 0.600000024, 0.5)
  263. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  264. SpecialMesh13.Scale = Vector3.new(0.5, 0.600000024, 0.5)
  265. Script14.Parent = Part12
  266. table.insert(cors,sandbox(Script14,function()
  267. player = script.Parent.Parent.Parent
  268. p = script.Parent
  269. while true do
  270. wait()
  271. p.Position = player.Character.Torso.Position+ Vector3.new(0,3,0)
  272. p.Parent = player.Character
  273. end
  274. end))
  275. Script15.Name = "Instructions"
  276. Script15.Parent = Part12
  277. table.insert(cors,sandbox(Script15,function()
  278. -- Read for instructions.
  279.  
  280. -- How to use this:
  281. -- 1. Right click the object.
  282. -- 2. Select 'Cut'
  283. -- 3. Go to StarterPack and right click it.
  284. -- 4. Select 'Paste Into'
  285.  
  286. -- How to change it color:
  287. -- 1. Choose the object and open explorer.
  288. -- 2. Select your color that you wanted.
  289. -- 3. Change it reflection and transparent.
  290.  
  291. -- How to change it shape:
  292. -- 1. Go to mesh.
  293. -- 2. Open explorer for mesh.
  294. -- 3. Open your explorer.
  295. -- 4. Go to the model that you like to be your diamond.
  296. -- 5. Copy the ID of it, you don't copy the whole link, just the ID.
  297. -- 6. When you get your model ID, replace the current ID.
  298.  
  299. -- EXAMPLE:
  300. -- Here is the model you like: http://www.roblox.com/Mesh-Crystal-item?id=9756362
  301. -- But your texture in the mesh is: http://www.roblox.com/Asset/?id=532356
  302. -- So you delete the number "532356" and replace it with "9756362"
  303.  
  304. -- How to change position:
  305. -- 1. You go script.
  306. -- 2. Look for the line that say:
  307. -- p.Position = player.Character.Torso.Position+ Vector3.new(0,7,0)
  308. -- Then you just fix the numbers and the object you want it to follow.
  309.  
  310. -- Modeler: MeshDB
  311. -- Uploader: EvanDeathBlade
  312. -- Scripter: ??????????
  313. -- Editor: zCloudStrikez
  314. end))
  315. Script16.Parent = Part12
  316. table.insert(cors,sandbox(Script16,function()
  317. while true do
  318. for i=1, 9, 1 do
  319. -- Go up
  320. script.Parent.Transparency = i * .1
  321. wait(.3)
  322. end
  323. for i=9, 1, -1 do
  324. -- Go down
  325. script.Parent.Transparency = i * .1
  326. wait(.3)
  327. end
  328. end
  329.  
  330. end))
  331. for i,v in pairs(mas:GetChildren()) do
  332. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  333. pcall(function() v:MakeJoints() end)
  334. end
  335. mas:Destroy()
  336. for i,v in pairs(cors) do
  337. spawn(function()
  338. pcall(v)
  339. end)
  340. end
Add Comment
Please, Sign In to add comment