Advertisement
HenloMyDude

visualizer cube (test)

Sep 11th, 2019
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.79 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  3. do
  4. script.Parent = InternalData.RealOwner.Character
  5. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  6. local function createObject (connections, index)
  7. local proxy = newproxy (true);local meta = getmetatable (proxy);
  8. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  9. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  10. meta.__index = function (self, i)
  11. if (i == 'TriggerEvent') then return runbind end;
  12. return connections[i] and connections[i].Event or index[i];
  13. end;
  14. meta.__newindex = index;meta.__metatable = false;return proxy
  15. end;
  16. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  17. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  18. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  19. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  20. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  21. Event.OnServerEvent:Connect(function(FiredBy,Input)
  22. if FiredBy ~= InternalData.RealOwner then return end
  23. if Input.MouseEvent then
  24. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  25. elseif Input.Sound then
  26. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  27. else
  28. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  29. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  30. for _,Action in pairs(ContextActionService.Actions) do
  31. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  32. end
  33. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  34. end
  35. end)
  36. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  37. Event.Parent = NLS([[
  38. local Player = owner;
  39. local Sounds = {};
  40. local Event = script:WaitForChild("UserInput");
  41. local UserInputService = game:GetService("UserInputService");
  42. local Mouse = Player:GetMouse();
  43. local Input = function(Input,gameProcessedEvent)
  44. if gameProcessedEvent then return end
  45. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  46. end
  47. Event.OnClientEvent:connect(function(Args)
  48. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  49. end)
  50. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  51. local Hit,Target
  52. while wait(1/30) do
  53. for x,Sound in pairs(Sounds) do
  54. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  55. end
  56. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  57. Hit = Mouse.Hit;Target = Mouse.Target;
  58. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  59. end
  60. end
  61. ]],InternalData.RealOwner.Character)
  62. end
  63. InternalData.NewOwner = setmetatable({},{
  64. __index = function (self,Index)
  65. local Type = type(InternalData.RealOwner[Index])
  66. if Type == "function" then
  67. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  68. return function (self)return InternalData["Mouse"] end
  69. end
  70. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  71. elseif Index == "FakePlayer" then
  72. return true
  73. end
  74. return InternalData.RealOwner[Index]
  75. end;
  76. __tostring = function(self) return tostring(InternalData.RealOwner) end
  77. })
  78. --LoadLibrary("RbxUtility").Create
  79. rans=string.reverse'!321enirboreheibmoz yb edam'
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character.Head;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303.  
  304. plr = owner
  305. char = plr.Character
  306. root = char.HumanoidRootPart
  307.  
  308. for _,v in pairs (char:children()) do
  309. if v:IsA("Part") then v.Transparency = 1 end
  310. if v.Name == "Head" then v:FindFirstChildOfClass("Decal"):Destroy() end
  311. if v:IsA("Hat") or v:IsA("Accessory") then v:Destroy() end
  312. end
  313.  
  314.  
  315. --Converted with ttyyuu12345's model to script plugin v4
  316. function sandbox(var,func)
  317. local env = getfenv(func)
  318. local newenv = setmetatable({},{
  319. __index = function(self,k)
  320. if k=="script" then
  321. return var
  322. else
  323. return env[k]
  324. end
  325. end,
  326. })
  327. setfenv(func,newenv)
  328. return func
  329. end
  330. cors = {}
  331. mas = Instance.new("Model",game:GetService("Lighting"))
  332. Model0 = Instance.new("Model")
  333. Part1 = Instance.new("Part")
  334. Part2 = Instance.new("Part")
  335. Part3 = Instance.new("Part")
  336. Part4 = Instance.new("Part")
  337. Part5 = Instance.new("Part")
  338. Weld6 = Instance.new("Weld")
  339. Weld7 = Instance.new("Weld")
  340. Weld8 = Instance.new("Weld")
  341. Weld9 = Instance.new("Weld")
  342. Weld10 = Instance.new("Weld")
  343. Weld11 = Instance.new("Weld")
  344. Weld12 = Instance.new("Weld")
  345. Weld13 = Instance.new("Weld")
  346. Part14 = Instance.new("Part")
  347. Part15 = Instance.new("Part")
  348. Part16 = Instance.new("Part")
  349. Part17 = Instance.new("Part")
  350. Model0.Parent = mas
  351. Part1.Name = "vispart"
  352. Part1.Parent = Model0
  353. Part1.CFrame = CFrame.new(-121.5, 19.0000038, 5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  354. Part1.Position = Vector3.new(-121.5, 19.0000038, 5)
  355. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  356. Part1.Size = Vector3.new(8, 8, 8)
  357. Part1.BottomSurface = Enum.SurfaceType.Smooth
  358. Part1.BrickColor = BrickColor.new("Really black")
  359. Part1.CanCollide = false
  360. Part1.Material = Enum.Material.Neon
  361. Part1.TopSurface = Enum.SurfaceType.Smooth
  362. Part1.brickColor = BrickColor.new("Really black")
  363. Part2.Name = "block"
  364. Part2.Parent = Model0
  365. Part2.CFrame = CFrame.new(-118.5, 22.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  366. Part2.Position = Vector3.new(-118.5, 22.0000038, 8)
  367. Part2.Size = Vector3.new(4, 4, 4)
  368. Part2.BottomSurface = Enum.SurfaceType.Smooth
  369. Part2.CanCollide = false
  370. Part2.TopSurface = Enum.SurfaceType.Smooth
  371. Part3.Name = "block"
  372. Part3.Parent = Model0
  373. Part3.CFrame = CFrame.new(-118.5, 16.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  374. Part3.Position = Vector3.new(-118.5, 16.0000038, 2)
  375. Part3.Size = Vector3.new(4, 4, 4)
  376. Part3.BottomSurface = Enum.SurfaceType.Smooth
  377. Part3.CanCollide = false
  378. Part3.TopSurface = Enum.SurfaceType.Smooth
  379. Part4.Name = "block"
  380. Part4.Parent = Model0
  381. Part4.CFrame = CFrame.new(-124.5, 16.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  382. Part4.Position = Vector3.new(-124.5, 16.0000038, 8)
  383. Part4.Size = Vector3.new(4, 4, 4)
  384. Part4.BottomSurface = Enum.SurfaceType.Smooth
  385. Part4.CanCollide = false
  386. Part4.TopSurface = Enum.SurfaceType.Smooth
  387. Part5.Name = "block"
  388. Part5.Parent = Model0
  389. Part5.CFrame = CFrame.new(-118.5, 16.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  390. Part5.Position = Vector3.new(-118.5, 16.0000038, 8)
  391. Part5.Size = Vector3.new(4, 4, 4)
  392. Part5.BottomSurface = Enum.SurfaceType.Smooth
  393. Part5.CanCollide = false
  394. Part5.TopSurface = Enum.SurfaceType.Smooth
  395. Weld6.Name = "BTWeld"
  396. Weld6.Parent = Part5
  397. Weld6.C1 = CFrame.new(3, -3, 3, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  398. Weld6.Part0 = Part5
  399. Weld6.Part1 = Part1
  400. Weld6.part1 = Part1
  401. Weld7.Name = "BTWeld"
  402. Weld7.Parent = Part5
  403. Weld7.C1 = CFrame.new(0, 0, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  404. Weld7.Part0 = Part5
  405. Weld7.Part1 = Part3
  406. Weld7.part1 = Part3
  407. Weld8.Name = "BTWeld"
  408. Weld8.Parent = Part5
  409. Weld8.C1 = CFrame.new(6, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  410. Weld8.Part0 = Part5
  411. Weld8.Part1 = Part15
  412. Weld8.part1 = Part15
  413. Weld9.Name = "BTWeld"
  414. Weld9.Parent = Part5
  415. Weld9.C1 = CFrame.new(6, -6, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  416. Weld9.Part0 = Part5
  417. Weld9.Part1 = Part17
  418. Weld9.part1 = Part17
  419. Weld10.Name = "BTWeld"
  420. Weld10.Parent = Part5
  421. Weld10.C1 = CFrame.new(0, -6, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  422. Weld10.Part0 = Part5
  423. Weld10.Part1 = Part16
  424. Weld10.part1 = Part16
  425. Weld11.Name = "BTWeld"
  426. Weld11.Parent = Part5
  427. Weld11.C1 = CFrame.new(6, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  428. Weld11.Part0 = Part5
  429. Weld11.Part1 = Part4
  430. Weld11.part1 = Part4
  431. Weld12.Name = "BTWeld"
  432. Weld12.Parent = Part5
  433. Weld12.C1 = CFrame.new(0, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  434. Weld12.Part0 = Part5
  435. Weld12.Part1 = Part2
  436. Weld12.part1 = Part2
  437. Weld13.Name = "BTWeld"
  438. Weld13.Parent = Part5
  439. Weld13.C1 = CFrame.new(6, 0, 6, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  440. Weld13.Part0 = Part5
  441. Weld13.Part1 = Part14
  442. Weld13.part1 = Part14
  443. Part14.Name = "block"
  444. Part14.Parent = Model0
  445. Part14.CFrame = CFrame.new(-124.5, 16.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  446. Part14.Position = Vector3.new(-124.5, 16.0000038, 2)
  447. Part14.Size = Vector3.new(4, 4, 4)
  448. Part14.BottomSurface = Enum.SurfaceType.Smooth
  449. Part14.CanCollide = false
  450. Part14.TopSurface = Enum.SurfaceType.Smooth
  451. Part15.Name = "block"
  452. Part15.Parent = Model0
  453. Part15.CFrame = CFrame.new(-124.5, 22.0000038, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  454. Part15.Position = Vector3.new(-124.5, 22.0000038, 8)
  455. Part15.Size = Vector3.new(4, 4, 4)
  456. Part15.BottomSurface = Enum.SurfaceType.Smooth
  457. Part15.CanCollide = false
  458. Part15.TopSurface = Enum.SurfaceType.Smooth
  459. Part16.Name = "block"
  460. Part16.Parent = Model0
  461. Part16.CFrame = CFrame.new(-118.5, 22.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  462. Part16.Position = Vector3.new(-118.5, 22.0000038, 2)
  463. Part16.Size = Vector3.new(4, 4, 4)
  464. Part16.BottomSurface = Enum.SurfaceType.Smooth
  465. Part16.CanCollide = false
  466. Part16.TopSurface = Enum.SurfaceType.Smooth
  467. Part17.Name = "block"
  468. Part17.Parent = Model0
  469. Part17.CFrame = CFrame.new(-124.5, 22.0000038, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  470. Part17.Position = Vector3.new(-124.5, 22.0000038, 2)
  471. Part17.Size = Vector3.new(4, 4, 4)
  472. Part17.BottomSurface = Enum.SurfaceType.Smooth
  473. Part17.CanCollide = false
  474. Part17.TopSurface = Enum.SurfaceType.Smooth
  475. for i,v in pairs(mas:GetChildren()) do
  476. v.Parent = char
  477. pcall(function() v:MakeJoints() end)
  478. end
  479. for i,noobs in pairs(Model0:GetChildren()) do
  480. if noobs.Name == "block" then
  481. noobs.BrickColor = BrickColor.new("Dark stone grey")
  482. end
  483. end
  484. mas:Destroy()
  485. for i,v in pairs(cors) do
  486. spawn(function()
  487. pcall(v)
  488. end)
  489. end
  490.  
  491. ezweld = function(p, a, b, cf)
  492. local weld = Instance.new("Weld",p)
  493. weld.Part0 = a
  494. weld.Part1 = b
  495. weld.C0 = cf
  496. return weld
  497. end
  498.  
  499. Model0.vispart.CFrame = root.CFrame
  500. local joint = ezweld(char, Model0.vispart, root, CFrame.new())
  501.  
  502. head = char.Head
  503. local music = Instance.new("Sound", Model0.vispart)
  504. music.SoundId = "rbxassetid://1838146674"
  505. music.Name = "Music"
  506. music.Volume = 10
  507. music.Looped = true
  508. music:Play()
  509. jointnor = joint.C0
  510. sine = 0
  511.  
  512. while true do
  513. wait()
  514. sine = sine + 1
  515. Cos = math.cos
  516. playback = music.PlaybackLoudness
  517. number = 54.56
  518. add = 0.25
  519. joint.C0 = joint.C0:Lerp(jointnor * CFrame.new(0 + 1 * Cos(sine / 12), -8.75, 0 + 1 * Cos(sine / 12)) * CFrame.Angles(0 + add * Cos(sine / 12),0 + add * Cos(sine / 12),0 + add * Cos(sine / 12)), 0.15)
  520. --Model0.vispart.Size = Model0.vispart.Size:Lerp(Vector3.new(playback / number, playback / number, playback / number), 0.15)
  521. Model0.vispart.Size = Vector3.new(playback / number, playback / number, playback / number)
  522. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement