Advertisement
ZeeDerp

Untitled

Nov 2nd, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.28 KB | None | 0 0
  1. -- lego
  2. pcall(function() script.Parent = nil end)
  3. while game:GetService("Players").LocalPlayer == nil do wait() end
  4. pcall(function() game:GetService("Players").LocalPlayer:SetSuperSafeChat(false) end)
  5.  
  6.  
  7. function Reset()
  8. pcall(function() CamSphere.Model:Remove() end)
  9. pcall(function() CamSphere.Part1:Remove() end)
  10. pcall(function() CamSphere.Part2:Remove() end)
  11. pcall(function() CamSphere.Humanoid:Remove() end)
  12. CamSphere = {}
  13. CamSphere.Activated = true
  14. CamSphere.Removed = false
  15. CamSphere.Moving = true
  16. CamSphere.Busy = false
  17. CamSphere.BusyBypass = false
  18. CamSphere.Hidden = false
  19. CamSphere.ShowChat = false
  20. CamSphere.WaitTime = 0.1
  21. CamSphere.FloatSpeed = 5
  22. CamSphere.FloatDistance = 5
  23. CamSphere.Name = "CamSphere v4"
  24. CamSphere.ChatColor = Enum.ChatColor.Red
  25. CamSphere.Color = BrickColor.new("Really black")
  26. CamSphere.Offset = {}
  27. CamSphere.Offset.X = 0
  28. CamSphere.Offset.Y = 0
  29. CamSphere.Offset.Z = 0
  30. CamSphere.Size = 2
  31. CamSphere.PointLock = nil
  32. CamSphere.Point1 = CFrame.new()
  33. CamSphere.Point2 = CFrame.new()
  34. CamSphere.Model = Instance.new("Model")
  35. CamSphere.Part1 = Instance.new("Part")
  36. CamSphere.Part1.Transparency = 1
  37. CamSphere.Part1Mesh = Instance.new("SpecialMesh", CamSphere.Part1)
  38. CamSphere.Part2 = Instance.new("Part")
  39. CamSphere.Part2.Transparency = 1
  40. CamSphere.Part2Mesh = Instance.new("SpecialMesh", CamSphere.Part2)
  41. CamSphere.Humanoid = Instance.new("Humanoid")
  42. CamSphere.GetRecursiveChildren = function(Source, Name, SearchType, Children)
  43. if type(Source) ~= "userdata" then
  44. Source = game
  45. end
  46. if type(Name) ~= "string" then
  47. Name = ""
  48. end
  49. if type(Children) ~= "table" then
  50. Children = {}
  51. end
  52. for _, Child in pairs(Source:children()) do
  53. pcall(function()
  54. if (function()
  55. if SearchType == nil or SearchType == 1 then
  56. return string.match(Child.Name:lower(), Name:lower())
  57. elseif SearchType == 2 then
  58. return string.match(Child.ClassName:lower(), Name:lower())
  59. elseif SearchType == 3 then
  60. return Child:IsA(Name) or Child:IsA(Name:lower())
  61. elseif SearchType == 4 then
  62. return string.match(Child.Name:lower() .. string.rep(string.char(1), 5) .. Child.ClassName:lower(), Name:lower()) or Child:IsA(Name) or Child:IsA(Name:lower())
  63. end
  64. return false
  65. end)() and Child ~= script then
  66. table.insert(Children, Child)
  67. end
  68. CamSphere.GetRecursiveChildren(Child, Name, SearchType, Children)
  69. end)
  70. end
  71. return Children
  72. end
  73. end
  74.  
  75. Reset()
  76.  
  77.  
  78. CatchMsg = function(Msg)
  79. if CamSphere.Activated == false then return end
  80. if string.sub(Msg, 2, 6) == "lego " then
  81. Msg = string.sub(Msg, 0, 1) .. string.sub(Msg, 7)
  82. end
  83. if CamSphere.Busy == false then
  84. if string.sub(Msg, 0, 6) == "/shoot" then
  85. CamSphere.Busy = true
  86. CamSphere.BusyBypass = true
  87. SoundToServer("SpinUp", "http://www.roblox.com/Asset/?id=10209788", 1, 1, false, CamSphere.Part1)
  88. wait(1)
  89. SoundToServer("Fire", "http://www.roblox.com/Asset/?id=10209776", 0.9, 1, true, CamSphere.Part1)
  90. CamSphere.BusyBypass = false
  91. for i = 1, tonumber(string.sub(Msg, 8)) or math.huge do
  92. if CamSphere.Busy == false then break end
  93. coroutine.wrap(function()
  94. local Shell = Instance.new("Part", Workspace)
  95. Shell.Name = "Shell"
  96. Shell.TopSurface = 0
  97. Shell.BottomSurface = 0
  98. Shell.BrickColor = BrickColor.new("New Yeller")
  99. Shell.FormFactor = "Custom"
  100. Shell.Size = Vector3.new(0.21, 0.6, 0.21)
  101. Shell.CFrame = CamSphere.Point1 * CFrame.new(CamSphere.Size / 2, CamSphere.Size / 2, 0) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  102. Instance.new("CylinderMesh", Shell).Bevel = 0.05
  103. local BodyVelocity = Instance.new("BodyVelocity")
  104. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  105. BodyVelocity.velocity = ((Shell.CFrame.p - CamSphere.Point1.p).unit * math.random(40, 60)) + Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  106. BodyVelocity.Parent = Shell
  107. game:GetService("Debris"):AddItem(BodyVelocity, 0.1)
  108. game:GetService("Debris"):AddItem(Shell, 10)
  109. local Bullet = Instance.new("Part", Workspace)
  110. Bullet.Name = "Bullet"
  111. Bullet.TopSurface = 0
  112. Bullet.BottomSurface = 0
  113. Bullet.BrickColor = BrickColor.new("New Yeller")
  114. Bullet.FormFactor = "Custom"
  115. Bullet.Size = Vector3.new(0.2, 0.5, 0.2)
  116. Bullet.CFrame = CFrame.new(CamSphere.Point1.p, CamSphere.Point2.p) * CFrame.new(0, 0, -(CamSphere.Size / 2) - 2.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  117. Instance.new("CylinderMesh", Bullet).Bevel = 0.1
  118. local BodyVelocity = Instance.new("BodyVelocity")
  119. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  120. BodyVelocity.velocity = ((CamSphere.Point2.p - CamSphere.Point1.p).unit * 500) + Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  121. BodyVelocity.Parent = Bullet
  122. TouchedToServer([[if Hit.Name == "Focus" or Hit.Name == "Bullet" then return end
  123. local Sound = Instance.new("Sound", Source)
  124. Sound.Pitch = 1
  125. Sound.Volume = 1
  126. Sound.SoundId = "http://www.roblox.com/Asset/?id=2101148"
  127. Sound:Play()
  128. local Explosion = Instance.new("Explosion")
  129. Explosion.BlastRadius = 5
  130. Explosion.BlastPressure = 500000
  131. Explosion.Position = Source.Position
  132. Explosion.Hit:connect(function(Hit) Hit.Anchored = false Hit:BreakJoints() end)
  133. Explosion.Parent = Workspace
  134. Source:Remove()]], Bullet)
  135. coroutine.wrap(function()
  136. while Bullet.Parent ~= nil do
  137. Bullet:BreakJoints()
  138. wait()
  139. end
  140. end)()
  141. end)()
  142. wait()
  143. end
  144. CamSphere.BusyBypass = true
  145. SendToServer([[for _, Part in pairs(Source:GetChildren()) do
  146. if Part:IsA("Sound") then
  147. coroutine.wrap(function()
  148. Part:Stop()
  149. wait(1)
  150. Part:Remove()
  151. end)()
  152. end
  153. end]], "Sound Stop", {"Source", CamSphere.Part1})
  154. SoundToServer("SpinDown", "http://www.roblox.com/Asset/?id=10209786", 1, 1, false, CamSphere.Part1)
  155. wait(0.5)
  156. CamSphere.BusyBypass = false
  157. CamSphere.Busy = false
  158. elseif string.sub(Msg, 0, 6) == "/laser" then
  159. CamSphere.Busy = true
  160. for i = 1, tonumber(string.sub(Msg, 8)) or math.huge do
  161. if CamSphere.Busy == false then break end
  162. SoundToServer("Fire", "http://www.roblox.com/Asset/?id=13775494", math.random(1500, 2500) / 1000, 1, false, CamSphere.Part1)
  163. local Hit, Position = Workspace:FindPartOnRay(Ray.new(CamSphere.Point1.p, ((CamSphere.Point2.p - CamSphere.Point1.p).unit + Vector3.new(math.random(-10, 10) / 1000, math.random(-10, 10) / 1000, math.random(-10, 10) / 1000)) * 500), CamSphere.Model)
  164. local Laser = Instance.new("Part", CamSphere.Model)
  165. Laser.Name = "Laser"
  166. Laser.TopSurface = 0
  167. Laser.BottomSurface = 0
  168. Laser.BrickColor = BrickColor.new("Really blue")
  169. Laser.FormFactor = "Custom"
  170. Laser.CanCollide = false
  171. Laser.Anchored = true
  172. Laser.Size = Vector3.new(math.random(900, 1100) / 1000, (Position - CamSphere.Point1.p).magnitude, math.random(900, 1100) / 1000)
  173. Laser.CFrame = CFrame.new((Position + CamSphere.Point1.p) / 2, CamSphere.Point1.p) * CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0)
  174. Instance.new("CylinderMesh", Laser).Bevel = Laser.Size.x / 2
  175. coroutine.wrap(function()
  176. for i = 1, 0, -0.15 do
  177. pcall(function()
  178. Laser.Transparency = (1 - i)
  179. Laser.Mesh.Scale = Vector3.new(i, 1, i)
  180. Laser.Mesh.Bevel = (Laser.Size.x / 2) * i
  181. end)
  182. wait()
  183. end
  184. Laser:Remove()
  185. end)()
  186. coroutine.wrap(function()
  187. local LaserExplosion = Instance.new("Part", CamSphere.Model)
  188. LaserExplosion.Name = "Laser Explosion"
  189. LaserExplosion.TopSurface = 0
  190. LaserExplosion.BottomSurface = 0
  191. LaserExplosion.BrickColor = BrickColor.new("Really blue")
  192. LaserExplosion.Anchored = true
  193. LaserExplosion.CanCollide = false
  194. LaserExplosion.FormFactor = "Custom"
  195. LaserExplosion.Size = Vector3.new(1, 1, 1)
  196. LaserExplosion.CFrame = CFrame.new(Position)
  197. Instance.new("SpecialMesh", LaserExplosion).MeshType = "Sphere"
  198. for i = 0, 1, 0.1 do
  199. pcall(function()
  200. LaserExplosion.Transparency = i
  201. LaserExplosion.Mesh.Scale = Vector3.new(i * 10, i * 10, i * 10)
  202. end)
  203. wait()
  204. end
  205. LaserExplosion:Remove()
  206. end)()
  207. if Hit ~= nil then
  208. Hit:BreakJoints()
  209. if Hit.Anchored == false then
  210. Hit.Velocity = Hit.Velocity + Vector3.new(math.random(-15000, 15000) / 1000, math.random(-15000, 15000) / 1000, math.random(-15000, 15000) / 1000)
  211. Hit.RotVelocity = Hit.RotVelocity + Vector3.new(math.random(-25000, 25000) / 1000, math.random(-25000, 25000) / 1000, math.random(-25000, 25000) / 1000)
  212. end
  213. end
  214. wait()
  215. end
  216. CamSphere.Busy = false
  217. elseif string.sub(Msg, 0, 5) == "/bomb" then
  218. CamSphere.Busy = true
  219. for i = 1, tonumber(string.sub(Msg, 7)) or 1 do
  220. if CamSphere.Busy == false then break end
  221. coroutine.wrap(function()
  222. local Bomb = Instance.new("Part", Workspace)
  223. Bomb.Name = "Bomb"
  224. Bomb.TopSurface = 0
  225. Bomb.BottomSurface = 0
  226. Bomb.BrickColor = BrickColor.new("Really black")
  227. Bomb.FormFactor = "Custom"
  228. Bomb.Size = Vector3.new(1, 1, 1)
  229. Bomb.CFrame = CFrame.new(CamSphere.Point1.p) * CFrame.new(math.random(-2, 2), math.random(-7, -1), math.random(-2, 2))
  230. Bomb.Velocity = ((Bomb.Position - CamSphere.Point1.p).unit * 25)
  231. local Mesh = Instance.new("SpecialMesh", Bomb)
  232. Mesh.MeshType = "Sphere"
  233. coroutine.wrap(function()
  234. while Bomb.Parent ~= nil do
  235. Bomb:BreakJoints()
  236. wait()
  237. end
  238. end)()
  239. coroutine.wrap(function()
  240. wait(math.random(1000, 6000) / 1000)
  241. for i = 1, 5 do
  242. SoundToServer("Blip", "http://www.roblox.com/Asset/?id=15666462", 4, 1, false, Bomb)
  243. wait(0.05)
  244. Bomb.BrickColor = BrickColor.new("Really red")
  245. wait(0.05)
  246. Bomb.BrickColor = BrickColor.new("Really black")
  247. end
  248. TouchedToServer([[local Sound = Instance.new("Sound", Source)
  249. Sound.Pitch = 1
  250. Sound.Volume = 1
  251. Sound.SoundId = "http://www.roblox.com/Asset/?id=2101148"
  252. Sound:Play()
  253. local Explosion = Instance.new("Explosion")
  254. Explosion.BlastRadius = 5
  255. Explosion.BlastPressure = 500000
  256. Explosion.Position = Source.Position
  257. Explosion.Hit:connect(function(Hit) Hit.Anchored = false Hit:BreakJoints() end)
  258. Explosion.Parent = Workspace
  259. wait(0.1)
  260. Source:Remove()]], Bomb)
  261. end)()
  262. end)()
  263. wait(0.1)
  264. end
  265. CamSphere.Busy = false
  266. end
  267. end
  268. if Msg == "/remove" then
  269. CamSphere.Busy = false
  270. CamSphere.BusyBypass = false
  271. CamSphere.Activated = false
  272. elseif Msg == "/hide" then
  273. CamSphere.Hidden = not CamSphere.Hidden
  274. elseif Msg == "/center" or Msg == "/ct" then
  275. Workspace.CurrentCamera.CoordinateFrame = CFrame.new(0, 10, 0)
  276. Workspace.CurrentCamera.Focus = CFrame.new(1, 10, 0)
  277. elseif Msg == "/chat" then
  278. CamSphere.ShowChat = not CamSphere.ShowChat
  279. elseif string.sub(Msg, 0, 5) == "/size" then
  280. CamSphere.Size = tonumber(string.sub(Msg, 7)) or 2
  281. elseif string.sub(Msg, 0, 11) == "/floatspeed" or string.sub(Msg, 0, 3) == "/fs" then
  282. CamSphere.FloatSpeed = tonumber((string.sub(Msg, 0, 3) == "/fs" and string.sub(Msg, 5) or string.sub(Msg, 13))) or 5
  283. elseif string.sub(Msg, 0, 9) == "/waittime" or string.sub(Msg, 0, 3) == "/wt" then
  284. CamSphere.WaitTime = tonumber((string.sub(Msg, 0, 3) == "/wt" and string.sub(Msg, 5) or string.sub(Msg, 11))) or 0.1
  285. elseif string.sub(Msg, 0, 2) == "/x" then
  286. CamSphere.Offset.X = tonumber(string.sub(Msg, 4)) or 0
  287. elseif string.sub(Msg, 0, 2) == "/y" then
  288. CamSphere.Offset.Y = tonumber(string.sub(Msg, 4)) or 0
  289. elseif string.sub(Msg, 0, 2) == "/z" then
  290. CamSphere.Offset.Z = tonumber(string.sub(Msg, 4)) or 0
  291. elseif string.sub(Msg, 0, 6) == "/lock " then
  292. if string.sub(Msg, 7) == "off" then
  293. CamSphere.PointLock = nil
  294. else
  295. for _, Player in pairs(game:GetService("Players"):GetPlayers()) do
  296. if string.match(Player.Name:lower(), string.sub(Msg, 7):lower()) then
  297. pcall(function() CamSphere.PointLock = Player.Character.Torso end)
  298. break
  299. end
  300. end
  301. for _, Model in pairs(Workspace:GetChildren()) do
  302. if string.match(Model.Name:lower(), string.sub(Msg, 7):lower()) then
  303. pcall(function() CamSphere.PointLock = Model.Torso end)
  304. break
  305. end
  306. end
  307. end
  308. elseif Msg == "/stop" then
  309. CamSphere.Moving = false
  310. elseif Msg == "/go" then
  311. CamSphere.Moving = true
  312. elseif Msg == "/moving" then
  313. CamSphere.Moving = not CamSphere.Moving
  314. elseif Msg == "/c" or Msg == "/cancel" and CamSphere.BusyBypass == false then
  315. CamSphere.Busy = false
  316. elseif Msg == "/r" or Msg == "/reset" then
  317. Reset()
  318. elseif Msg == "/fix" then
  319. SendToServer([[
  320. local new = Instance.new
  321. game:GetService("ScriptContext").ScriptsDisabled = true
  322. wait()
  323. RemoveAll = function(Source)
  324. for _, Child in pairs(Source:GetChildren()) do
  325. pcall(function() RemoveAll(Child) end)
  326. pcall(function()
  327. if Child.ClassName ~= "Player" and Child.ClassName ~= "Lighting" then
  328. pcall(function() Child.Disabled = true end)
  329. pcall(function() Child.Activated = false end)
  330. pcall(function() Child:Remove() end)
  331. end
  332. end)
  333. end
  334. end
  335. RemoveAll(game)
  336. wait(0.5)
  337. Base = Instance.new("Part")
  338. Base.Name = "Base"
  339. Base.BrickColor = BrickColor.new("Dark green")
  340. Base.TopSurface = "Studs"
  341. Base.BottomSurface = "Smooth"
  342. Base.FormFactor = "Custom"
  343. Base.Size = Vector3.new(1000, 5, 1000)
  344. Base.CFrame = CFrame.new(0, -2, 0)
  345. Base.Locked = true
  346. Base.Anchored = true
  347. Base.Parent = Workspace
  348. game:GetService("Lighting").Brightness = 1
  349. game:GetService("Lighting").GeographicLatitude = 41.73
  350. game:GetService("Lighting").Ambient = Color3.new(128 / 255, 128 / 255, 128 / 255)
  351. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  352. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  353. game:GetService("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 184 / 255)
  354. game:GetService("Lighting").TimeOfDay = "14:00:00"
  355. for _, Player in pairs(game:GetService("Players"):GetPlayers()) do
  356. pcall(function()
  357. local Model = new("Model", Workspace)
  358. local Part = new("Part", Model)
  359. Part.Name = "Head"
  360. Part.Transparency = 1
  361. Part.CanCollide = false
  362. Part.Anchored = true
  363. Part.Locked = true
  364. Part.Parent = Model
  365. local Humanoid = new("Humanoid", Model)
  366. Humanoid.Health = 100
  367. Player.Character = Model
  368. Humanoid.Health = 0
  369. end)
  370. end
  371. wait()
  372. Instance.new = new
  373. game:GetService("ScriptContext").ScriptsDisabled = false]], "Fix")
  374. elseif Msg == "/up" then
  375. pcall(function() game:GetService("Players").LocalPlayer.Character:Remove() end)
  376. game:GetService("Players").LocalPlayer.Character = nil
  377. elseif Msg == "/down" then
  378. if game:GetService("Players").LocalPlayer.Character ~= nil then
  379. CatchMsg("/up")
  380. end
  381. Character = Instance.new("Model")
  382. Character.Name = CamSphere.Name
  383. Character.Parent = Workspace
  384. local Head = Instance.new("Part")
  385. Head.Name = "Head"
  386. Head.FormFactor = 0
  387. Head.Size = Vector3.new(2, 1, 1)
  388. Head.TopSurface = 0
  389. Head.BottomSurface = "Weld"
  390. Head.BrickColor = CamSphere.Color
  391. Head.Parent = Character
  392. local Mesh = Instance.new("SpecialMesh")
  393. Mesh.MeshType = "Head"
  394. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  395. Mesh.Parent = Head
  396. local Face = Instance.new("Decal")
  397. Face.Name = "face"
  398. Face.Face = "Front"
  399. Face.Texture = "rbxasset://textures/face.png"
  400. Face.Parent = Head
  401. local Torso = Instance.new("Part")
  402. Torso.Name = "Torso"
  403. Torso.FormFactor = 0
  404. Torso.Size = Vector3.new(2, 2, 1)
  405. Torso.TopSurface = "Studs"
  406. Torso.BottomSurface = "Inlet"
  407. Torso.LeftSurface = "Weld"
  408. Torso.RightSurface = "Weld"
  409. Torso.BrickColor = CamSphere.Color
  410. Torso.Parent = Character
  411. local TShirt = Instance.new("Decal")
  412. TShirt.Name = "roblox"
  413. TShirt.Face = "Front"
  414. TShirt.Texture = ""
  415. TShirt.Parent = Torso
  416. local Limb = Instance.new("Part")
  417. Limb.FormFactor = 0
  418. Limb.Size = Vector3.new(1, 2, 1)
  419. Limb.TopSurface = "Studs"
  420. Limb.BottomSurface = "Inlet"
  421. Limb.BrickColor = CamSphere.Color
  422. local LeftArm = Limb:Clone()
  423. LeftArm.Name = "Left Arm"
  424. LeftArm.Parent = Character
  425. local RightArm = Limb:Clone()
  426. RightArm.Name = "Right Arm"
  427. RightArm.Parent = Character
  428. local LeftLeg = Limb:Clone()
  429. LeftLeg.Name = "Left Leg"
  430. LeftLeg.Parent = Character
  431. local RightLeg = Limb:Clone()
  432. RightLeg.Name = "Right Leg"
  433. RightLeg.Parent = Character
  434. Character:BreakJoints()
  435. local Neck = Instance.new("Motor6D")
  436. Neck.Name = "Neck"
  437. Neck.Part0 = Torso
  438. Neck.Part1 = Head
  439. Neck.C0 = CFrame.new(0, 2, 0)
  440. Neck.C1 = CFrame.new(0, 0.5, 0)
  441. Neck.MaxVelocity = 0
  442. Neck.Parent = Torso
  443. local LeftShoulder = Instance.new("Motor6D")
  444. LeftShoulder.Name = "Left Shoulder"
  445. LeftShoulder.Part0 = Torso
  446. LeftShoulder.Part1 = LeftArm
  447. LeftShoulder.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  448. LeftShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  449. LeftShoulder.MaxVelocity = 0.5
  450. LeftShoulder.Parent = Torso
  451. local RightShoulder = Instance.new("Motor6D")
  452. RightShoulder.Name = "Right Shoulder"
  453. RightShoulder.Part0 = Torso
  454. RightShoulder.Part1 = RightArm
  455. RightShoulder.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  456. RightShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  457. RightShoulder.MaxVelocity = 0.5
  458. RightShoulder.Parent = Torso
  459. local LeftHip = Instance.new("Motor6D")
  460. LeftHip.Name = "Left Hip"
  461. LeftHip.Part0 = Torso
  462. LeftHip.Part1 = LeftLeg
  463. LeftHip.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  464. LeftHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  465. LeftHip.MaxVelocity = 0.1
  466. LeftHip.Parent = Torso
  467. local RightHip = Instance.new("Motor6D")
  468. RightHip.Name = "Right Hip"
  469. RightHip.Part0 = Torso
  470. RightHip.Part1 = RightLeg
  471. RightHip.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  472. RightHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  473. RightHip.MaxVelocity = 0.1
  474. RightHip.Parent = Torso
  475. local Humanoid = Instance.new("Humanoid")
  476. Humanoid.Parent = Character
  477. local BodyColors = Instance.new("BodyColors")
  478. BodyColors.Name = "Body Colors"
  479. BodyColors.HeadColor = Head.BrickColor
  480. BodyColors.TorsoColor = Torso.BrickColor
  481. BodyColors.LeftArmColor = LeftArm.BrickColor
  482. BodyColors.RightArmColor = RightArm.BrickColor
  483. BodyColors.LeftLegColor = LeftLeg.BrickColor
  484. BodyColors.RightLegColor = RightLeg.BrickColor
  485. BodyColors.Parent = Character
  486. local Shirt = Instance.new("Shirt")
  487. Shirt.Name = "Shirt"
  488. Shirt.ShirtTemplate = ""
  489. Shirt.Parent = Character
  490. local ShirtGraphic = Instance.new("ShirtGraphic")
  491. ShirtGraphic.Name = "Shirt Graphic"
  492. ShirtGraphic.Graphic = ""
  493. ShirtGraphic.Parent = Character
  494. local Pants = Instance.new("Pants")
  495. Pants.Name = "Pants"
  496. Pants.PantsTemplate = ""
  497. Pants.Parent = Character
  498. Torso.CFrame = CFrame.new(CamSphere.Point1.p, CamSphere.Point2.p)
  499. game:GetService("Players").LocalPlayer.Character = Character
  500. Workspace.CurrentCamera.CameraSubject = Character.Humanoid
  501. Workspace.CurrentCamera.CameraType = "Custom"
  502. local Animate = game:GetService("InsertService"):LoadAsset(56087370)["Animate"]
  503. wait(0.1)
  504. Animate.Parent = Character
  505. elseif Msg == "/ex" or Msg == "/explode" then
  506. local Shield = Instance.new("ForceField", game:GetService("Players").LocalPlayer.Character or nil)
  507. wait(0.1)
  508. local Explosion = Instance.new("Explosion")
  509. Explosion.BlastRadius = 25
  510. Explosion.BlastPressure = 1000000
  511. Explosion.Position = CamSphere.Point2.p
  512. Explosion.Hit:connect(function(Hit)
  513. if Hit:IsDescendantOf(game:GetService("Players").LocalPlayer.Character) == false then
  514. Hit.Anchored = false
  515. Hit:BreakJoints()
  516. end
  517. end)
  518. Explosion.Parent = Workspace
  519. wait(0.5)
  520. Shield:Remove()
  521. elseif string.sub(Msg, 0, 3) == "/m " or string.sub(Msg, 0, 3) == "/h " or string.sub(Msg, 0, 9) == "/message " or string.sub(Msg, 0, 6) == "/hint " then
  522. SendToServer([[local Message = Instance.new("]] ..(string.sub(Msg, 0, 2) == "/m" and "Message" or "Hint").. [[", Workspace)
  523. local Text = "]] ..CamSphere.Name.. ": " ..(string.sub(Msg, 3, 3) == " " and string.sub(Msg, 4) or (string.sub(Msg, 0, 9) == "/message " and string.sub(Msg, 10) or string.sub(Msg, 7))).. [["
  524. for i = 1, Text:len() do
  525. Message.Text = Text:sub(0, i) .. string.rep(" ", Text:len() - i)
  526. Message.Parent = Workspace
  527. local Sound = Instance.new("Sound", Workspace)
  528. Sound.SoundId = "rbxasset://sounds/Kerplunk.wav"
  529. Sound.Pitch = 10
  530. Sound.Volume = 1
  531. Sound:Play()
  532. game:GetService("Debris"):AddItem(Sound, 1)
  533. wait(math.random() * 0.1)
  534. end
  535. wait(2.5)
  536. for i = Text:len(), 1, -5 do
  537. Message.Text = Text:sub(0, i) .. string.rep(" ", Text:len() - i)
  538. Message.Parent = Workspace
  539. local Sound = Instance.new("Sound", Workspace)
  540. Sound.SoundId = "rbxasset://sounds/Kerplunk.wav"
  541. Sound.Pitch = 3
  542. Sound.Volume = 1
  543. Sound:Play()
  544. game:GetService("Debris"):AddItem(Sound, 1)
  545. wait(math.random() * 0.1)
  546. end
  547. Message:Remove()]], "Message Trigger")
  548. elseif string.sub(Msg, 0, 6) == "/give " then
  549. for _, Player in pairs(game:GetService("Players"):GetPlayers()) do
  550. if Player ~= game:GetService("Players").LocalPlayer and string.match(Player.Name:lower(), string.sub(Msg, 7):lower()) then
  551. if script ~= nil then
  552. script:Clone().Parent = Player.Character
  553. end
  554. end
  555. end
  556. elseif string.sub(Msg, 0, 4) == "/sb " then
  557. local QuickScript = game:GetService("InsertService"):LoadAsset(54471119)["QuickScript"]
  558. QuickScript.Name = "QuickScript (" ..tick().. ")"
  559. QuickScript.DynamicSource.Value = string.sub(Msg, 5)
  560. QuickScript.Parent = Workspace
  561. elseif string.sub(Msg, 0, 5) == "/sbl " then
  562. local QuickScript = game:GetService("InsertService"):LoadAsset(54471119)["QuickLocalScript"]
  563. QuickScript.Name = "QuickLocalScript (" ..tick().. ")"
  564. QuickScript.DynamicSource.Value = string.sub(Msg, 6)
  565. QuickScript.Parent = game:GetService("Players").LocalPlayer.Backpack
  566. elseif string.sub(Msg, 0, 4) == "/ls " then
  567. loadstring(string.sub(Msg, 5))()
  568. elseif string.sub(Msg, 0, 12) == "/SendToServer " or string.sub(Msg, 0, 4) == "/ss " then
  569. SendToServer(string.sub(Msg, 0, 12) == "/SendToServer " and string.sub(Msg, 13) or string.sub(Msg, 5), "SendToServer")
  570. elseif string.sub(Msg, 0, 5) == "/lsr " then
  571. local Message = Instance.new("Message", Workspace)
  572. if Msg:match("CamSphere") == nil then
  573. Message.Text = "[CamSphere] Cannot replace!"
  574. wait(5)
  575. Message:Remove()
  576. return
  577. else
  578. Message.Text = "[CamSphere] Removing..."
  579. end
  580. CamSphere.Activated = false
  581. while CamSphere.Removed == false do wait() end
  582. Message:Remove()
  583. loadstring(string.sub(Msg, 6))()
  584. error()
  585. elseif Msg == "/rp" or Msg == "/remove player" then
  586. pcall(function() game:GetService("Players")[game:GetService("Players").LocalPlayer.Name]:Remove() end)
  587. elseif string.sub(Msg, 0, 6) == "/name " then
  588. CamSphere.Name = string.sub(Msg, 7)
  589. elseif string.sub(Msg, 0, 7) == "/color " then
  590. CamSphere.Color = BrickColor.new(string.sub(Msg, 8))
  591. elseif string.sub(Msg, 0, 12) == "/chat color " then
  592. if string.sub(Msg, 13) == "red" then
  593. CamSphere.ChatColor = Enum.ChatColor.Red
  594. elseif string.sub(Msg, 13) == "green" then
  595. CamSphere.ChatColor = Enum.ChatColor.Green
  596. elseif string.sub(Msg, 13) == "blue" then
  597. CamSphere.ChatColor = Enum.ChatColor.Blue
  598. end
  599. elseif string.match(Msg, "lego") == nil and CamSphere.ShowChat == true then
  600. if game:GetService("Players").LocalPlayer.Character ~= nil and CamSphere.Hidden == true then
  601. pcall(function() game:GetService("Chat"):Chat(game:GetService("Players").LocalPlayer.Character, Msg, CamSphere.ChatColor) end)
  602. else
  603. pcall(function() game:GetService("Chat"):Chat(CamSphere.Part1, Msg, CamSphere.ChatColor) end)
  604. end
  605. end
  606. end
  607. coroutine.wrap(function()
  608. while CamSphere.Activated == true do
  609. pcall(function() CatchMsgConnection:disconnect() end)
  610. pcall(function() CatchMsgConnection = game:GetService("Players").LocalPlayer.Chatted:connect(CatchMsg) end)
  611. wait(1)
  612. end
  613. end)()
  614.  
  615.  
  616. local Hint = Instance.new("Message", Workspace)
  617. Hint.Text = "[CamSphere] Loaded."
  618. game:GetService("Debris"):AddItem(Hint, 5)
  619.  
  620.  
  621. while CamSphere.Activated == true do
  622. if CamSphere.Moving == true then
  623. local CoordinateFrame = CFrame.new(Workspace.CurrentCamera.CoordinateFrame.p)
  624. local Focus = CFrame.new(Workspace.CurrentCamera.Focus.p)
  625. local FocusAngle = CFrame.fromEulerAnglesXYZ(CFrame.new(CoordinateFrame.p, Focus.p):toEulerAnglesXYZ())
  626. local CharacterOffset = CFrame.new(0, (CamSphere.Size / 2) + 5, 0)
  627. local Offset = CFrame.new(CamSphere.Offset.X, CamSphere.Offset.Y, CamSphere.Offset.Z)
  628. local Float = CFrame.new(0, ((math.sin(tick() * CamSphere.FloatSpeed) + 1) / 2), 0)
  629. if game:GetService("Players").LocalPlayer.Character == nil then
  630. CamSphere.Point1 = CoordinateFrame * Float * Offset
  631. CamSphere.Point2 = CamSphere.PointLock ~= nil and CamSphere.PointLock.CFrame or Focus * Float * Offset
  632. else
  633. CamSphere.Point1 = Focus * CharacterOffset * Float * FocusAngle * Offset
  634. CamSphere.Point2 = CamSphere.PointLock ~= nil and CFrame.new(CamSphere.Point1.p) * CFrame.fromEulerAnglesXYZ(CFrame.new(CamSphere.Point1.p, CamSphere.PointLock.CFrame.p):toEulerAnglesXYZ()) * CFrame.new(0, 0, -10) or Focus * CharacterOffset * Float * FocusAngle * Offset * CFrame.new(0, 0, -10)
  635. end
  636. pcall(function()
  637. if CamSphere.Hidden == true then
  638. if CamSphere.Part1.Transparency >= 1 then
  639. CamSphere.Part1.Parent = nil
  640. else
  641. CamSphere.Part1.Transparency = CamSphere.Part1.Transparency + 0.1
  642. local Old = CamSphere.Part1.CFrame
  643. CamSphere.Part1.Size = CamSphere.Part1.Size + Vector3.new(0.3, 0.3, 0.3)
  644. CamSphere.Part1.CFrame = Old
  645. end
  646. if CamSphere.Part2.Transparency >= 1 then
  647. CamSphere.Part2.Parent = nil
  648. else
  649. CamSphere.Part2.Transparency = CamSphere.Part2.Transparency + 0.1
  650. local Old = CamSphere.Part2.CFrame
  651. CamSphere.Part2.Size = CamSphere.Part2.Size + Vector3.new(0.3, 0.3, 0.3)
  652. CamSphere.Part2.CFrame = Old
  653. end
  654. else
  655. CamSphere.Model.Name = CamSphere.Name
  656. CamSphere.Model.Parent = Workspace
  657. CamSphere.Part1.Name = "Head"
  658. CamSphere.Part1.FormFactor = "Custom"
  659. CamSphere.Part1.Size = Vector3.new(1, 1, 1) * CamSphere.Size
  660. CamSphere.Part1.TopSurface = 0
  661. CamSphere.Part1.BottomSurface = 0
  662. CamSphere.Part1.Material = "Plastic"
  663. CamSphere.Part1.BrickColor = CamSphere.Color
  664. CamSphere.Part1.Transparency = CamSphere.Part1.Transparency <= 0 and 0 or CamSphere.Part1.Transparency - 0.05
  665. CamSphere.Part1.Reflectance = 0
  666. CamSphere.Part1.Anchored = true
  667. CamSphere.Part1.CanCollide = true
  668. CamSphere.Part1.Parent = CamSphere.Model
  669. CamSphere.Part1.CFrame = CamSphere.Point1
  670. CamSphere.Part1Mesh.MeshType = "Sphere"
  671. CamSphere.Part1Mesh.VertexColor = Vector3.new(1, 1, 1)
  672. CamSphere.Part1Mesh.Scale = Vector3.new(1, 1, 1)
  673. CamSphere.Part1Mesh.Parent = CamSphere.Part1
  674. CamSphere.Part2.Name = "Focus"
  675. CamSphere.Part2.FormFactor = "Custom"
  676. CamSphere.Part2.TopSurface = 0
  677. CamSphere.Part2.BottomSurface = 0
  678. CamSphere.Part2.Material = "Plastic"
  679. CamSphere.Part2.BrickColor = BrickColor.new("Institutional white")
  680. CamSphere.Part2.Transparency = CamSphere.Part2.Transparency <= 0.75 and 0.75 or CamSphere.Part2.Transparency - 0.01
  681. CamSphere.Part2.Reflectance = 0
  682. CamSphere.Part2.Anchored = true
  683. CamSphere.Part2.CanCollide = false
  684. CamSphere.Part2.Parent = CamSphere.Model
  685. CamSphere.Part2.Size = Vector3.new(0.2, 0.2, (CamSphere.Point2.p - CamSphere.Point1.p).magnitude)
  686. CamSphere.Part2.CFrame = CFrame.new((CamSphere.Point1.p + CamSphere.Point2.p) / 2, CamSphere.Point2.p)
  687. CamSphere.Part2Mesh.MeshType = "Sphere"
  688. CamSphere.Part2Mesh.Scale = Vector3.new(1, 1, 1)
  689. CamSphere.Part2Mesh.Parent = CamSphere.Part2
  690. CamSphere.Humanoid.Name = "Humanoid"
  691. CamSphere.Humanoid.MaxHealth = 0
  692. CamSphere.Humanoid.Health = 0
  693. CamSphere.Humanoid.Parent = CamSphere.Model
  694. end
  695. end)
  696. end
  697. wait(CamSphere.WaitTime)
  698. end
  699. pcall(function() CamSphere.Part1:Remove() end)
  700. pcall(function() CamSphere.Part2:Remove() end)
  701. pcall(function() CamSphere.Humanoid:Remove() end)
  702. pcall(function() CamSphere.Model:Remove() end)
  703. CamSphere.Removed = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement