Advertisement
sneakydodge123

admin kagune remake

Jul 29th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.80 KB | None | 0 0
  1.  
  2. ------------------
  3. --Suck Suck Suck--
  4. ------------------
  5. --[[
  6. JarLore V 5.2
  7. LocalScript based admin
  8. Made by jarredbcv
  9.  
  10. Originally made to rek oxcool1's sb
  11. but, I just get banned anywho.. :(
  12.  
  13. ~ChangeLogs~
  14. ;Added anti remove
  15. ;Added mode 1,2,3,4,5,6
  16. ;Added Gui for admin control
  17. ;Added notifications
  18. ]]--
  19. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  20. local Player,game,owner = owner,game
  21. local RealPlayer = Player
  22. do
  23. print("FE Compatibility code by Mokiros")
  24. local rp = RealPlayer
  25. script.Parent = rp.Character
  26.  
  27. --RemoteEvent for communicating
  28. local Event = Instance.new("RemoteEvent")
  29. Event.Name = "UserInput_Event"
  30.  
  31. --Fake event to make stuff like Mouse.KeyDown work
  32. local function fakeEvent()
  33. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  34. t.connect = t.Connect
  35. return t
  36. end
  37.  
  38. --Creating fake input objects with fake variables
  39. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  40. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  41. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  42. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  43. end}
  44. --Merged 2 functions into one by checking amount of arguments
  45. CAS.UnbindAction = CAS.BindAction
  46.  
  47. --This function will trigger the events that have been :Connect()'ed
  48. local function te(self,ev,...)
  49. local t = m[ev]
  50. if t and t._fakeEvent then
  51. for _,f in pairs(t.Functions) do
  52. f(...)
  53. end
  54. end
  55. end
  56. m.TrigEvent = te
  57. UIS.TrigEvent = te
  58.  
  59. Event.OnServerEvent:Connect(function(plr,io)
  60. if plr~=rp then return end
  61. m.Target = io.Target
  62. m.Hit = io.Hit
  63. if not io.isMouse then
  64. local b = io.UserInputState == Enum.UserInputState.Begin
  65. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  66. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  67. end
  68. for _,t in pairs(CAS.Actions) do
  69. for _,k in pairs(t.Keys) do
  70. if k==io.KeyCode then
  71. t.Function(t.Name,io.UserInputState,io)
  72. end
  73. end
  74. end
  75. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  76. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  77. end
  78. end)
  79. Event.Parent = NLS([==[
  80. local Player = game:GetService("Players").LocalPlayer
  81. local Event = script:WaitForChild("UserInput_Event")
  82.  
  83. local Mouse = Player:GetMouse()
  84. local UIS = game:GetService("UserInputService")
  85. local input = function(io,a)
  86. if a then return end
  87. --Since InputObject is a client-side instance, we create and pass table instead
  88. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  89. end
  90. UIS.InputBegan:Connect(input)
  91. UIS.InputEnded:Connect(input)
  92.  
  93. local h,t
  94. --Give the server mouse data 30 times every second, but only if the values changed
  95. --If player is not moving their mouse, client won't fire events
  96. while wait(1/30) do
  97. if h~=Mouse.Hit or t~=Mouse.Target then
  98. h,t=Mouse.Hit,Mouse.Target
  99. Event:FireServer({isMouse=true,Target=t,Hit=h})
  100. end
  101. end]==],Player.Character)
  102.  
  103. ----Sandboxed game object that allows the usage of client-side methods and services
  104. --Real game object
  105. local _rg = game
  106.  
  107. --Metatable for fake service
  108. local fsmt = {
  109. __index = function(self,k)
  110. local s = rawget(self,"_RealService")
  111. if s then return s[k] end
  112. end,
  113. __newindex = function(self,k,v)
  114. local s = rawget(self,"_RealService")
  115. if s then s[k]=v end
  116. end,
  117. __call = function(self,...)
  118. local s = rawget(self,"_RealService")
  119. if s then return s(...) end
  120. end
  121. }
  122. local function FakeService(t,RealService)
  123. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  124. return setmetatable(t,fsmt)
  125. end
  126.  
  127. --Fake game object
  128. local g = {
  129. GetService = function(self,s)
  130. return self[s]
  131. end,
  132. Players = FakeService({
  133. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  134. },"Players"),
  135. UserInputService = FakeService(UIS,"UserInputService"),
  136. ContextActionService = FakeService(CAS,"ContextActionService"),
  137. }
  138. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  139. g.service = g.GetService
  140.  
  141. g.RunService = FakeService({
  142. RenderStepped = _rg:GetService("RunService").Heartbeat,
  143. BindToRenderStep = function(self,name,_,fun)
  144. self._btrs[name] = self.Heartbeat:Connect(fun)
  145. end,
  146. UnbindFromRenderStep = function(self,name)
  147. self._btrs[name]:Disconnect()
  148. end,
  149. },"RunService")
  150.  
  151. setmetatable(g,{
  152. __index=function(self,s)
  153. return _rg:GetService(s) or typeof(_rg[s])=="function"
  154. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  155. end,
  156. __newindex = fsmt.__newindex,
  157. __call = fsmt.__call
  158. })
  159. --Changing owner to fake player object to support owner:GetMouse()
  160. game,owner = g,g.Players.LocalPlayer
  161. end
  162. version = 5.2
  163. wait(.1)
  164. script.Parent=nil
  165. local lp = game.Players.LocalPlayer
  166. local pt = {}
  167. local pt2 = {}
  168. local pt3 = {}
  169. local rad = math.rad
  170. local pi = math.pi
  171. local cf = CFrame.new
  172. local ca = CFrame.Angles
  173. local mr = math.random
  174. local count = 0
  175. local bcount = 0
  176. local mode = "origin"
  177. local bc = BrickColor.new
  178. local slct = 0
  179. local speed = 1
  180. local guit = {}
  181. local send = cf()
  182. local as = 4
  183. local events = {}
  184. local fragdeb = false
  185. local ignore = {}
  186. local armloop = false
  187. local grab = nil
  188. local gdist = -5
  189. local tim = 0
  190. local c2timer = 0
  191. local banned = {}
  192. local cmds = {}
  193. local clogs = {}
  194. local bet = "!"
  195.  
  196. --[["The best ever!"]]--
  197.  
  198. local lerp = function(a,b,c)
  199. return a+(b-a)*c
  200. end
  201.  
  202. local clerp = function(c1,c2,t)
  203. return c1:lerp(c2,t)
  204. end
  205.  
  206. local ClrLerp = function(Mesh,Clr2,Step)
  207. Clr1 = Mesh.VertexColor
  208. Mesh.VertexColor = Vector3.new(lerp(Clr1.X,Clr2.X,Step),lerp(Clr1.Y,Clr2.Y,Step),lerp(Clr1.Z,Clr2.Z,Step))
  209. end
  210.  
  211. local GetDiscoColor = function(hue)
  212. local section = hue % 1 * 3
  213. local secondary = 0.5 * math.pi * (section % 1)
  214. if section < 1 then
  215. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  216. elseif section < 2 then
  217. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  218. else
  219. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  220. end
  221. end
  222.  
  223. local new = function(Object, Parent, Data)
  224. local Object = Instance.new(Object)
  225. for Index, Value in pairs(Data or {}) do
  226. Object[Index] = Value
  227. end
  228. Object.Parent = Parent
  229. return Object
  230. end
  231.  
  232. local intable = function(tab, obj)
  233. for _, v in ipairs(tab) do
  234. if v == obj then
  235. return _
  236. end
  237. end
  238. return 0
  239. end
  240.  
  241. local so = function(id,par,lo,pi,tm)
  242. Spawn(function()
  243. local s = new("Sound",par,{Looped=lo;Pitch=pi;SoundId = "http://roblox.com/asset/?id="..id})
  244. wait() -- tnx anti
  245. s:play()
  246. s.Volume=.8
  247. game.Debris:AddItem(s,tm)
  248. end)
  249. return s
  250. end
  251.  
  252. local Lightning = function(Start,End,Times,Offset,Color,Thickness)
  253. local magz = (Start - End).magnitude
  254. local curpos = Start
  255. local trz = {-Offset,Offset}
  256. for i=1,Times do
  257. local li = new("Part",workspace,{Size=Vector3.new(Thickness,Thickness,magz/Times);BrickColor=bc('White');CanCollide=false;Anchored=true})
  258. local m = new("SpecialMesh",li,{MeshId='rbxassetid://9856898';Scale=Vector3.new(Thickness*2,Thickness*2,magz/Times*2);TextureId='http://www.roblox.com/asset/?id=55687933';VertexColor = Color})
  259. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  260. local trolpos = cf(curpos,End)*cf(0,0,magz/Times).p+ofz
  261. if Times == i then
  262. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  263. li.CFrame = cf(curpos,End)*cf(0,0,-magz2/2)
  264. else
  265. li.CFrame = cf(curpos,trolpos)*cf(0,0,magz/Times/2)
  266. end
  267. curpos = li.CFrame*cf(0,0,magz/Times/2).p
  268. game.Debris:AddItem(li,.3)
  269. Spawn(function()
  270. for i=1,10 do
  271. game:service"RunService".RenderStepped:wait()
  272. li.Transparency = li.Transparency+.1
  273. end
  274. li:Destroy()
  275. end)
  276. end
  277. end
  278.  
  279. local explosion = function(col1,col2,cfr,sz,rng)
  280. local a = new("Part",workspace,{Size=Vector3.new(1,1,1);CanCollide=false;Anchored=true})
  281. local a2 = new("Part",workspace,{Size=Vector3.new(1,1,1);CanCollide=false;Anchored=true})
  282. local a3 = new("Part",workspace,{Size=Vector3.new(1,1,1);CanCollide=false;Anchored=true})
  283. v1,v2,v3=sz.x,sz.y,sz.z
  284. local m = new("SpecialMesh",a,{MeshId='rbxassetid://1185246';Scale=Vector3.new(v1,v2,v3);TextureId='http://www.roblox.com/asset/?id=55687933';VertexColor = col1})
  285. local m2 = new("SpecialMesh",a2,{MeshId='rbxassetid://9856898';Scale=Vector3.new(v1/3*2,v2/3*2,v3/3*2);TextureId='http://www.roblox.com/asset/?id=55687933';VertexColor = col2})
  286. local m3 = new("SpecialMesh",a3,{MeshId='rbxassetid://9856898';Scale=Vector3.new(v1/3*2,v2/3*2,v3/3*2);TextureId='http://www.roblox.com/asset/?id=55687933';VertexColor = col2})
  287. a.CFrame=cfr
  288. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  289. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  290. for i,v in pairs(workspace:children()) do
  291. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  292. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  293. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= lp.Character.Name then
  294. v:BreakJoints()
  295. end
  296. end
  297. end
  298. end
  299. game.Debris:AddItem(a,.6)
  300. game.Debris:AddItem(a2,.6)
  301. game.Debris:AddItem(a3,.6)
  302. Spawn(function()
  303. while true do
  304. game:service"RunService".RenderStepped:wait()
  305. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  306. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  307. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  308. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  309. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  310. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  311. a.Transparency=a.Transparency+0.05
  312. a2.Transparency=a2.Transparency+0.05
  313. a3.Transparency=a3.Transparency+0.05
  314. end
  315. end)
  316. end
  317.  
  318. local frag = function(hit)
  319. local t = {}
  320. local A = {-1, 1}
  321. if hit.Name ~= "Base" and hit.Name ~= "adpart" and hit.Parent ~= lp.Character and hit.Parent.Parent ~= lp.Character and fragdeb ~= true then
  322. so("201858024",ch.Torso,false,math.random(7,11)/10,4)
  323. fragdeb = true
  324. hit:BreakJoints()
  325. local X, Y, Z = 0, 0, 0
  326. for x = 1, 2 do
  327. if hit.Size.X > 1 then
  328. X = hit.Size.X/2
  329. end
  330. for y = 1, 2 do
  331. if hit.Size.Y > 1 then
  332. Y = hit.Size.Y/2
  333. end
  334. for z = 1, 2 do
  335. if hit.Size.Z > 1 then
  336. Z = hit.Size.Z/2
  337. end
  338. local obj = Vector3.new(X*A[x],Y*A[y],Z*A[z])
  339. if intable(t, obj) == 0 and (X ~= 0 or Y ~= 0) and (X ~= 0 or Z ~= 0) and (Y ~= 0 or Z ~= 0) then
  340. table.insert(t, obj)
  341. end
  342. end
  343. end
  344. end
  345. if #t > 0 then
  346. local h = hit:clone()
  347. local par = hit.Parent
  348. hit:Destroy()
  349. hit = h:clone()
  350. for _, v in ipairs(t) do
  351. local n = hit:clone()
  352. --n.FormFactor = "Custom"
  353. n.Size = hit.Size/2
  354. local x,y,z = hit.CFrame:toEulerAnglesXYZ()
  355. n.CFrame = CFrame.new(v/2)*CFrame.Angles(x,y,z) +hit.Position
  356. n.Rotation = hit.Rotation
  357. n.Velocity = Vector3.new(0,0,0)
  358. n.RotVelocity = Vector3.new(0,0,0)
  359. n.Parent = par
  360. if n.Size.X <= 1 or n.Size.Z <= 1 then n.Anchored = false;n:BreakJoints();n.Velocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) spawn(function() for i=1,10 do wait() n.Transparency=n.Transparency+.1 end n:Destroy() end) end
  361. n:BreakJoints()
  362. end
  363. end
  364. end
  365. wait()
  366. fragdeb = false
  367. end
  368.  
  369. local notif = function(txt)
  370. for i,v in pairs(guit) do
  371. v.Position = v.Position - UDim2.new(0,0,0.03,0)
  372. end
  373. local notif = new("TextLabel",notificationbin,{TextWrapped = true;TextStrokeTransparency = 0;BorderSizePixel = 2;TextScaled = true;BackgroundColor3 = Color3.new(0, 0, 0);BackgroundTransparency = 0.5;Size = UDim2.new(0.2, 0, 0.02, 0);TextColor3 = Color3.new(1, 1, 1);BorderColor3 = Color3.new(1, 1, 1);Text = "{Notification}:"..txt;Position = UDim2.new(0.395, 0, 0.942, 0);TextXAlignment = Enum.TextXAlignment.Left})
  374. so("205318910",lp.PlayerGui,false,1)
  375. table.insert(guit,notif)
  376. spawn(function() wait(5)
  377. for i=1,20 do wait()
  378. notif.BackgroundTransparency = notif.BackgroundTransparency +.05
  379. notif.TextTransparency = notif.TextTransparency +.05
  380. notif.TextStrokeTransparency = notif.TextStrokeTransparency +.05
  381. end
  382. notif:Destroy()
  383. table.remove(guit,1)
  384. end)
  385. end
  386.  
  387. local function getPlayer(name)
  388. local nameTable = {}
  389. name=name:lower()
  390. if name == "me" then
  391. nameTable[#nameTable+1]=admin
  392. elseif name == "others" then
  393. for i,v in pairs(gPlayers:GetChildren()) do
  394. if v:IsA'Player'then
  395. if v.Name~=admin then
  396. nameTable[#nameTable+1]=v.Name
  397. end
  398. end
  399. end
  400. elseif name == "all" then
  401. for i,v in pairs(gPlayers:GetChildren()) do
  402. if v:IsA'Player'then
  403. nameTable[#nameTable+1]=v.Name
  404. end
  405. end
  406. else
  407. for i,v in pairs(gPlayers:GetChildren()) do
  408. local lname = v.Name:lower()
  409. local i,j = lname:find(name)
  410. if i == 1 then
  411. return {v.Name}
  412. end
  413. end
  414. end
  415. return nameTable
  416. end
  417.  
  418. local makeg = function()
  419. local jlgui = new("ScreenGui",lp.PlayerGui,{Name="JL_gui"})
  420. local frame = new("Frame",jlgui,{Size = UDim2.new(0.2, 0, 0.025, 0);BorderColor3 = Color3.new(1, 1, 1);Position = UDim2.new(0.395, 0, 0.97, 0);BorderSizePixel = 2;BackgroundTransparency = 0.5;BackgroundColor3 = Color3.new(0, 0, 0)})
  421. local textlabel = new("TextLabel",frame,{TextStrokeTransparency = 0;BorderSizePixel = 0;BackgroundColor3 = Color3.new(0, 0, 0);BackgroundTransparency = 0.9;Size = UDim2.new(0.2, 0, 1, 0);TextColor3 = Color3.new(1, 1, 1);Text = "Execute >";TextXAlignment = Enum.TextXAlignment.Right})
  422. textbox = new("TextBox",frame,{TextStrokeTransparency = 0;BackgroundColor3 = Color3.new(0, 0, 0);Position = UDim2.new(0.201, 0, 0, 0);Size = UDim2.new(0.785, 0, 1, 0);BackgroundTransparency = 0.9;Text = "Press [R-CTRL] to focus";TextColor3 = Color3.new(1, 1, 1);TextXAlignment = Enum.TextXAlignment.Left})
  423. local frame_2 = new("Frame",frame,{Size = UDim2.new(0.2, 0, 1, 0);BorderColor3 = Color3.new(1, 1, 1);Position = UDim2.new(1.02, 0, 0, 0);BorderSizePixel = 2;BackgroundTransparency = 0.5;BackgroundColor3 = Color3.new(0, 0, 0)})
  424. textlabel_2 = new("TextLabel",frame_2,{TextStrokeTransparency = 0;BorderSizePixel = 0;BackgroundColor3 = Color3.new(0, 0, 0);BackgroundTransparency = 0.9;Size = UDim2.new(1, 0, 1, 0);TextColor3 = Color3.new(1, 1, 1);BorderColor3 = Color3.new(0, 0, 0);Text = "FPS:n/a"})
  425. local frame_3 = new("Frame",frame,{Size = UDim2.new(0.2, 0, 1, 0);BorderColor3 = Color3.new(1, 1, 1);Position = UDim2.new(-.222, 0, 0, 0);BorderSizePixel = 2;BackgroundTransparency = 0.5;BackgroundColor3 = Color3.new(0, 0, 0)})
  426. local textlabel_3 = new("TextLabel",frame_3,{TextStrokeTransparency = 0;BorderSizePixel = 0;BackgroundColor3 = Color3.new(0, 0, 0);BackgroundTransparency = 0.9;Size = UDim2.new(1, 0, 1, 0);TextColor3 = Color3.new(1, 1, 1);BorderColor3 = Color3.new(0, 0, 0);Text = "JarLore V"..version})
  427. notificationbin = Instance.new("Folder", jlgui,{Name="Notification_bin"})
  428. listbin = Instance.new("Folder", jlgui,{Name="List_bin"})
  429. textbox.FocusLost:connect(function()
  430. local msg = textbox.Text
  431. local usedACommand=false
  432. for i,v in pairs(cmds) do
  433. if msg:lower():match(bet..v.Usage:lower()..'% ?') and usedACommand==false then
  434. usedACommand=true
  435. local Run, Error = ypcall(function()
  436. spawn(function()
  437. v.Function(lp.Name,msg:lower():match(bet..v.Usage:lower()..'%>?(.+)')or'')
  438. end)
  439. end)
  440. if Error then
  441. notif(Error)
  442. end
  443. end
  444. end
  445. textbox.Text = "Press [R-CTRL] to focus"
  446. end)
  447. end
  448.  
  449. local makelist = function(na,list)
  450. local pos = -7
  451. local frame = new("Frame", listbin,{Size = UDim2.new(0.15, 0, 0.25, 0);BorderColor3 = Color3.new(1, 1, 1);Position = UDim2.new(0.65, 0, 0.745, 0);BorderSizePixel = 2;BackgroundTransparency = 0.5;BackgroundColor3 = Color3.new(0, 0, 0)})
  452. local textlabel = new("TextBox", frame,{TextStrokeTransparency = 0;BorderSizePixel = 2;BackgroundColor3 = Color3.new(0, 0, 0);Position = UDim2.new(0.01, 0, 0.005, 0);Size = UDim2.new(0.8, 0, 0.1, 0);BackgroundTransparency = 0.9;BorderColor3 = Color3.new(1, 1, 1);TextColor3 = Color3.new(1, 1, 1);Text=na})
  453. local scrollingframe = new("ScrollingFrame", frame,{Size = UDim2.new(1, 0, 0.87, 0);CanvasSize=UDim2.new(0,0,0,0);MidImage = "rbxassetid://65372937";BorderColor3 = Color3.new(1, 1, 1);ScrollBarThickness = 7;TopImage = "rbxassetid://65372937";Position = UDim2.new(0, 0, 0.125, 0);BottomImage = "rbxassetid://65372937";BackgroundTransparency = 0.9;BackgroundColor3 = Color3.new(0, 0, 0)})
  454. local textbutton = new("TextButton", frame,{TextStrokeTransparency = 0;BorderSizePixel = 2;BackgroundColor3 = Color3.new(0, 0, 0);BackgroundTransparency = 0.9;Size = UDim2.new(0.16, 0, 0.1, 0);Position = UDim2.new(0.83, 0, 0.005, 0);BorderColor3 = Color3.new(1, 1, 1);Text = "X";TextColor3 = Color3.new(1, 1, 1)})
  455. for i,v in pairs(list) do
  456. local textlabel2 = new("TextLabel", scrollingframe,{TextStrokeTransparency = 0;BorderSizePixel = 0;BackgroundColor3 = Color3.new(0, 0, 0);BackgroundTransparency = 0.9;Size = UDim2.new(1, 0, 0, 20);TextColor3 = Color3.new(1, 1, 1);TextXAlignment = Enum.TextXAlignment.Left;Text=v})
  457. textlabel2.Position = UDim2.new(0,0,0,pos+7)
  458. pos = pos + 25
  459. scrollingframe.CanvasSize = UDim2.new(0,0,0,pos+15)
  460. end
  461. textbutton.MouseButton1Click:connect(function()
  462. frame:Destroy()
  463. end)
  464. end
  465.  
  466. local efx = function(part)
  467. if not part then return end
  468. local Num = 0
  469. local efxs = {}
  470. for i = 1,6 do
  471. local p = new("Part",workspace,{Size=Vector3.new(1,1,1);CanCollide=false;Anchored=true;CFrame=part.CFrame})
  472. local msh = new("SpecialMesh",p,{Scale=Vector3.new(1.55,.5,.5);MeshId='rbxassetid://9756362';TextureId='rbxassetid://25701026';VertexColor=GetDiscoColor(i/10)})
  473. table.insert(efxs,p)
  474. local p=new("Part",workspace,{Size=Vector3.new(1,1,1);CanCollide=false;Anchored=true;CFrame=part.CFrame})
  475. msh=new("SpecialMesh",p,{Scale=Vector3.new(1.2,.5,.5);MeshId='rbxassetid://9756362';TextureId='rbxassetid://25701026';VertexColor=GetDiscoColor(i/10+1.2)})
  476. table.insert(efxs,p)
  477. end
  478. for i=1,50 do wait()
  479. Num=Num+.1
  480. for i,v in pairs(efxs)do
  481. if(i<7)then
  482. v.CFrame = clerp(v.CFrame,cf(part.CFrame.p)*cf(0,-math.sin(Num)*3,0)*ca(0,1.55+Num+math.rad(360/6)*i,0)*cf(3,0,0),.1)
  483. else
  484. v.CFrame = clerp(v.CFrame,cf(part.CFrame.p)*cf(0,math.sin(Num)*3,0)*ca(0,-Num+math.rad(360/6)*i,0)*cf(3,0,0),.1)
  485. end
  486. end
  487. end
  488. for i=1,10 do wait()
  489. for i,v in pairs(efxs)do
  490. ClrLerp(v.Mesh,Vector3.new(0,0,0),.3)
  491. v.Mesh.Scale=v.Mesh.Scale+Vector3.new(-.15,0,0)
  492. end
  493. end
  494. for i,v in pairs(efxs)do
  495. v:Destroy()
  496. end
  497. efxs={}
  498. end
  499.  
  500.  
  501. local GetPlrs = function(Msg)
  502. local R = {}
  503. if Msg:lower() == "all" then
  504. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  505. table.insert(R, v)
  506. end
  507. else
  508. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  509. if v.Name:lower():sub(1 ,#Msg)==Msg:lower() then
  510. table.insert(R, v)
  511. end
  512. end
  513. end
  514. return R
  515. end
  516.  
  517. local AddCmd = function(Name, Usage, Description, Function)
  518. cmds[Name] = {Name = Name, Usage = Usage, Description = Description, Function = Function}
  519. end
  520.  
  521. local fixcol = function()
  522. for i=1,#pt do pt[i].BrickColor = bc("White") end
  523. end
  524.  
  525. local np = function(sz,col)
  526. local new = new("Part",workspace,{Size=Vector3.new(0,sz,0);BrickColor=BrickColor.new(col);CanCollide=false;Anchored=true;Locked=true;Name="adpart"})
  527. return new
  528. end
  529.  
  530. local pointa = function(var)
  531. if var == true then
  532. if armloop == false then
  533. armloop=true
  534. end
  535. else
  536. armloop=false
  537. ch['Right Arm'].Anchored = false
  538. armw.Parent = ch.Torso
  539. end
  540. end
  541.  
  542. local fixspeed = function(spd)
  543. repeat wait() speed = speed + .025 until speed >= spd
  544. end
  545.  
  546. local make = function()
  547. for i=1,6 do
  548. local a = np(1.2,"White")
  549. table.insert(pt,a)
  550. local a1 = np(1.4,"Black")
  551. table.insert(pt2,a1)
  552. local a2 = np(1.4,"Black")
  553. table.insert(pt2,a2)
  554. table.insert(pt3,a)
  555. table.insert(pt3,a1)
  556. table.insert(pt3,a2)
  557. end
  558. end
  559.  
  560. --cmds--
  561. AddCmd('Kill','kill','Kills <player>',function(Spkr,Msg)
  562. for _,player in next,GetPlrs(Msg)do
  563. spawn(function()
  564. notif(player.Name.." was killed.")
  565. efx(player.Character.Torso)
  566. player.Character:BreakJoints()
  567. end)
  568. end
  569. end)
  570.  
  571. AddCmd('Kick','kick','Kicks <player>',function(Spkr,Msg)
  572. for _,player in next,GetPlrs(Msg)do
  573. spawn(function()
  574. notif(player.Name.." was kicked.")
  575. efx(player.Character.Torso)
  576. player:Destroy()
  577. end)
  578. end
  579. end)
  580.  
  581. AddCmd('Teleport','tp', 'teleport <player1> to <player2>',function(args)
  582. local players1=getPlayer(args[1])
  583. local players2=getPlayer(args[2])
  584. if not players2[1] then return end
  585. for i,v in pairs(players1) do
  586. if _char(v):FindFirstChild("HumanoidRootPart") and _char(players2[1]):FindFirstChild("HumanoidRootPart") then
  587. _char(v).HumanoidRootPart.CFrame = _char(players2[1]).HumanoidRootPart.CFrame
  588. end
  589. end
  590. end)
  591.  
  592. AddCmd('God','god','Gods <player>',function(Spkr,Msg)
  593. for _,player in next,GetPlrs(Msg)do
  594. spawn(function()
  595. notif(player.Name.." was godded.")
  596. efx(player.Character.Torso)
  597. player.Character.Humanoid.MaxHealth=1e1000
  598. end)
  599. end
  600. end)
  601.  
  602. AddCmd('UnGod','ungod','UnGods <player>',function(Spkr,Msg)
  603. for _,player in next,GetPlrs(Msg)do
  604. spawn(function()
  605. notif(player.Name.." was ungodded.")
  606. efx(player.Character.Torso)
  607. player.Character.Humanoid.MaxHealth=100
  608. end)
  609. end
  610. end)
  611.  
  612. AddCmd('ForceField','ff','ForceFields <player>',function(Spkr,Msg)
  613. for _,player in next,GetPlrs(Msg)do
  614. spawn(function()
  615. notif(player.Name.." was given a forcefield.")
  616. efx(player.Character.Torso)
  617. Instance.new("ForceField",player.Character).Name="j_ff"
  618. end)
  619. end
  620. end)
  621.  
  622. AddCmd('ForceField','unff','UnForceFields <player>',function(Spkr,Msg)
  623. for _,player in next,GetPlrs(Msg)do
  624. spawn(function()
  625. notif(player.Name.."'s forcefield was removed.")
  626. efx(player.Character.Torso)
  627. player.Character:findFirstChild("j_ff"):Destroy()
  628. end)
  629. end
  630. end)
  631.  
  632. AddCmd('Song','sng','Plays <song>',function(Spkr,Msg)
  633. notif(Msg.." was played.")
  634. spawn(function()
  635. if not game:service"Workspace":FindFirstChild("jbcv_sound") then
  636. local jbcv_sond=Instance.new("Sound",game:service"Workspace")
  637. jbcv_sond.Name="jbcv_sound"
  638. jbcv_sond.Looped=true
  639. jbcv_sond.Volume=1
  640. end
  641. local sond=game:service"Workspace":FindFirstChild("jbcv_sound")
  642. sond.Volume=0
  643. sond.Pitch=0
  644. sond:Stop()
  645. wait()
  646. sond.SoundId="rbxassetid://"..Msg
  647. sond.Volume=1
  648. sond.Pitch=1
  649. sond:Play()
  650. end)
  651. end)
  652.  
  653. AddCmd('Stop','stop','Stops <song>',function(Spkr,Msg)
  654. notif("Song was stopped.")
  655. local sond=game:service"Workspace":FindFirstChild("jbcv_sound")
  656. sond.Volume=0
  657. sond.Pitch=0
  658. sond:Stop()
  659. end)
  660.  
  661. AddCmd('ShowLogs','clogs','Shows the chat logs for the server',function(Spkr,Msg)
  662. notif("Showing chatlogs.")
  663. makelist("ChatLogs",clogs)
  664. end)
  665.  
  666. AddCmd('Commands','cmds','Shows a list of admin commands.',function(Spkr,Msg)
  667. notif("Showing commands.")
  668. local cmdtab = {}
  669. for i,v in pairs(cmds) do
  670. table.insert(cmdtab," "..v.Name.." Usage:"..v.Usage)
  671. end
  672. makelist("Commands",cmdtab)
  673. end)
  674.  
  675.  
  676. lp:GetMouse().Button1Down:connect(function()
  677. fixcol()
  678. if mode == "select" then
  679. so('233091183',ch.Torso,false,.8)
  680. if slct == 1 then
  681. pointa(false)
  682. mode = "origin"
  683. speed = .1
  684. fixspeed(1)
  685. return
  686. elseif slct == 2 then
  687. pointa(false)
  688. mode = "ghost"
  689. speed = .1
  690. fixspeed(1)
  691. return
  692. elseif slct == 3 then
  693. pointa(false)
  694. mode = "float"
  695. speed = .1
  696. fixspeed(1)
  697. return
  698. elseif slct == 4 then
  699. mode = "kenisis"
  700. speed = .1
  701. fixspeed(1)
  702. return
  703. elseif slct == 5 then
  704. pointa(false)
  705. mode = "saw"
  706. speed = .1
  707. fixspeed(1)
  708. return
  709. elseif slct == 6 then
  710. pointa(false)
  711. mode = "lightning"
  712. speed = .1
  713. fixspeed(1)
  714. return
  715. end
  716. elseif mode == "ghost" then
  717. so('200633455',ch.Torso,false,1)
  718. mode = "light"
  719. speed = .1
  720. fixspeed(1)
  721. elseif mode == "lightning" then
  722. so('228343249',ch.Torso,false,.9)
  723. color=GetDiscoColor(tick()*.5)
  724. Lightning(guide.CFrame.p,lp:GetMouse().hit.p,math.random(5,10),math.random(-2.5,2.5),color,1.5)
  725. explosion(color,GetDiscoColor(tick()*.3),CFrame.new(lp:GetMouse().hit.p),Vector3.new(30,30,30),20)
  726. elseif mode == "kenisis" then
  727. if lp:GetMouse().Target~=nil and grab == nil then
  728. if lp:GetMouse().Target.ClassName=="Part" and lp:GetMouse().Target.Name~="Base" then
  729. gdist = -(ch:findFirstChild("Right Arm").Position - lp:GetMouse().Target.CFrame.p).magnitude
  730. grab=lp:GetMouse().Target
  731. local dis = (ch:findFirstChild("Head").Position - workspace.CurrentCamera.CoordinateFrame.p).magnitude
  732. lp.CameraMaxZoomDistance = dis
  733. lp.CameraMinZoomDistance = dis
  734. end
  735. end
  736. elseif mode == "float" then
  737. so('233856106',ch.Torso,false,.9)
  738. mode = "fly"
  739. bg=Instance.new("BodyGyro",ch.Torso)
  740. bv=Instance.new("BodyVelocity",ch.Torso)
  741. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  742. bv.maxForce = Vector3.new(99e3,99e3,99e3)
  743. if(ch.Humanoid.Sit ~= true)then ch.Humanoid.PlatformStand = true end
  744. speed = .1
  745. fixspeed(1)
  746. elseif mode == "origin" then
  747. tim = game:service'RunService'.Stepped:wait()
  748. if (tim - c2timer < .2) then
  749. c2timer = tim
  750. speed = .15
  751. send = lp:GetMouse().Hit.p
  752. mode = "tele"
  753. wait(.2)
  754. so('161006033',ch.Torso,false,.9)
  755. ch.Torso.CFrame = cf(send)*cf(0,3,0)*ca(0,ch.Torso.Rotation.Y,0)
  756. speed = .05
  757. mode="origin"
  758. fixspeed(1)
  759. else
  760. wait(.15)
  761. end
  762. c2timer = tim
  763. end
  764. end)
  765.  
  766. lp:GetMouse().Button2Down:connect(function()
  767. if mode == "kenisis" and grab then
  768. tim = game:service'RunService'.Stepped:wait()
  769. if (tim - c2timer < .2) then
  770. so('235097661',ch.Torso,false,1)
  771. local shot = grab
  772. grab=nil
  773. shot.Velocity=(lp:GetMouse().Hit.p-ch["Right Arm"].Position).unit*375
  774. else
  775. wait(.15)
  776. end
  777. c2timer = tim
  778. end
  779. end)
  780.  
  781. lp:GetMouse().Button1Up:connect(function()
  782. if mode == "fly" then
  783. mode = "float"
  784. so('233856106',ch.Torso,false,.8)
  785. bg:Destroy()
  786. bv:Destroy()
  787. ch.Humanoid.PlatformStand = false
  788. ch.Torso.CFrame = cf(ch.Torso.CFrame.X,ch.Torso.CFrame.Y,ch.Torso.CFrame.Z)*ca(0,ch.Torso.Rotation.Y,0)
  789. speed = .1
  790. fixspeed(1)
  791. elseif mode == "light" then
  792. so('200633455',ch.Torso,false,.9)
  793. mode = "ghost"
  794. speed = .1
  795. fixspeed(1)
  796. elseif mode == "kenisis" then
  797. grab = nil
  798. lp.CameraMaxZoomDistance = 400
  799. lp.CameraMinZoomDistance = 0.5
  800. end
  801. end)
  802.  
  803. lp:GetMouse().KeyDown:connect(function(k)
  804. k = k:lower()
  805. if k == "e" and mode ~= "select" and mode ~= "fly" and mode ~= "light" then
  806. so('233091183',ch.Torso,false,.9)
  807. pointa(true)
  808. mode = "select"
  809. slct = 1
  810. speed = .1
  811. fixspeed(1)
  812. elseif string.byte(k) == 49 then
  813. textbox:CaptureFocus()
  814. end
  815. end)
  816.  
  817. lp:GetMouse().WheelForward:connect(function()
  818. if mode =="kenisis" then
  819. gdist = gdist - 10
  820. end
  821. end)
  822.  
  823. lp:GetMouse().WheelBackward:connect(function()
  824. if mode =="kenisis" then
  825. if gdist < -5 then
  826. gdist = gdist + 10
  827. end
  828. end
  829. end)
  830.  
  831. guide = new("Part",workspace,{Size=Vector3.new(2,0,2);BrickColor=BrickColor.new("");CanCollide=false;Anchored=true;Locked=true;Transparency=1})
  832. pl = new("PointLight",guide,{Color=BrickColor.new("Bright orange").Color;Range=0})
  833. light = new("Fire",guide,{Size=3;Heat=0;Enabled=false})
  834. BP=new("BodyPosition",nil,{maxForce=Vector3.new(9990000, 9990000, 9990000);position=Vector3.new(0,0,0)})
  835. make()
  836.  
  837. local curplrs = game.Players:GetPlayers()
  838.  
  839. for i,v in pairs(curplrs) do
  840. v.Chatted:connect(function(m)
  841. table.insert(clogs,"["..v.Name.."]: "..m)
  842. end)
  843. end
  844.  
  845. game:service"Players".ChildAdded:connect(function(p)
  846. if p.ClassName == "Player" then
  847. notif(p.Name.." has joined the server.")
  848. p.Chatted:connect(function(m)
  849. table.insert(clogs,"["..p.Name.."]: "..m)
  850. end)
  851. end
  852. end)
  853.  
  854. game:service"Players".ChildRemoved:connect(function(p)
  855. if p.ClassName == "Player" then
  856. notif(p.Name.." has left the server.")
  857. end
  858. end)
  859.  
  860. game:service("RunService").Stepped:connect(function()
  861. ch = lp.Character
  862. bcount = 0
  863. for i=1,#pt do
  864. bcount = bcount + 2
  865. if mode == "origin" then
  866. count = count + .0025
  867. if i <= 3 then
  868. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*ca(0,count+rad(360/3)*i,0)*cf(2,-3,0)*ca(-pi/2,0,0),speed)
  869. else
  870. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*ca(0,-count-rad(360/3)*i,0)*cf(2.3,-3,0)*ca(pi/2,pi,0),speed)
  871. end
  872. elseif mode == "tele" then
  873. pt[i].CFrame = clerp(pt[i].CFrame,cf(send)*ca(0,0,pi/2)*ca(-count-rad(360/6)*i,0,0)*cf(0,3,0)*ca(pi/2,-pi/2,0),speed)
  874. elseif mode == "select" then
  875. guide.CanCollide=false
  876. ch.Humanoid.MaxHealth = 100
  877. ch.Humanoid.WalkSpeed=16
  878. pt[i].CFrame = clerp(pt[i].CFrame,ch.Torso.CFrame*ca(0,rad(-15)+rad(360/12)*i,0)*cf(5,0,0)*ca(pi/2,pi,0),speed)
  879. if lp:GetMouse().Target == pt[i] then
  880. if i == 1 then
  881. pt[i].BrickColor = bc("")
  882. slct = i
  883. elseif i == 2 then
  884. pt[i].BrickColor = bc("Royal purple")
  885. slct = i
  886. elseif i == 3 then
  887. pt[i].BrickColor = bc("Lapis")
  888. slct = i
  889. elseif i == 4 then
  890. pt[i].BrickColor = bc("Lime green")
  891. slct = i
  892. elseif i == 5 then
  893. pt[i].BrickColor = bc("Really red")
  894. slct = i
  895. elseif i == 6 then
  896. pt[i].BrickColor = bc("New Yeller")
  897. slct = i
  898. end
  899. else
  900. pt[i].BrickColor = bc("White")
  901. end
  902. elseif mode == "float" then
  903. guide.CanCollide=true
  904. count = count + .02
  905. local goto = ch.Torso.CFrame*CFrame.new(0,-3,0)
  906. if Vector3.new(0, ch.Torso.Velocity.y, 0).magnitude > 5 then
  907. guide.CFrame=CFrame.new(goto.X,goto.Y,goto.Z)
  908. else
  909. guide.CFrame=CFrame.new(goto.X,guide.CFrame.Y,goto.Z)
  910. end
  911. if i <= 3 then
  912. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*ca(0,count+rad(360/3)*i,0)*cf(4,-3,0)*ca(pi/2,pi-rad(30),0),speed)
  913. else
  914. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*ca(0,-count-rad(360/3)*i,0)*cf(4.3,-3,0)*ca(pi/2,pi+rad(30),0),speed)
  915. end
  916. elseif mode == "kenisis" then
  917. count = count + .02
  918. if grab ~= nil then
  919. light.Enabled=true
  920. BP.Parent=grab
  921. a= ch["Right Arm"].CFrame*CFrame.new(0,gdist,0)*CFrame.Angles(math.rad(90),0,-math.rad(180))
  922. BP.position=a.p
  923. else
  924. BP.Parent=nil
  925. light.Enabled=false
  926. end
  927. light.Color = bc("Lime green").Color
  928. guide.CFrame=ch['Right Arm'].CFrame*cf(0,-1.5,0)
  929. local goto = ch.Torso.CFrame*CFrame.new(0,-3,0)
  930. if i <= 3 then
  931. pt[i].CFrame = clerp(pt[i].CFrame,ch['Right Arm'].CFrame*ca(0,count+rad(360/3)*i,0)*cf(.5,-1,0)*ca(pi/2,pi-rad(130),0),speed)
  932. else
  933. pt[i].CFrame = clerp(pt[i].CFrame,ch['Right Arm'].CFrame*ca(0,-count-rad(360/3)*i,0)*cf(.7,-1,0)*ca(pi/2,pi-rad(130),0),speed)
  934. end
  935. elseif mode == "ghost" then
  936. local ff = new("ForceField",ch)
  937. ch.Humanoid.MaxHealth = 100000
  938. ch.Humanoid.Health = 100000
  939. game.Debris:AddItem(ff,.001)
  940. light.Enabled=false
  941. ch.Humanoid.WalkSpeed=35
  942. pl.Range=0
  943. count = count + .005
  944. if i <= 3 then
  945. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*cf(0,-math.sin(count)*3,0)*ca(0,1.55+count+math.rad(360/3)*i,0)*cf(3,0,0)*ca(0,pi,0),speed)
  946. else
  947. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*cf(0,math.sin(count)*3,0)*ca(0,-count+math.rad(360/3)*i,0)*cf(3,0,0)*ca(0,pi,0),speed)
  948. end
  949. ypcall(function()
  950. ch.Torso.CanCollide = false
  951. ch.Head.CanCollide = false
  952. end)
  953. elseif mode == "light" then
  954. ch.Humanoid.MaxHealth = 100
  955. ch.Humanoid.WalkSpeed=16
  956. guide.CFrame = CFrame.new(ch.Torso.CFrame.p)*CFrame.new(0,7,0)
  957. light.Enabled=true
  958. light.Color = bc("Bright orange").Color
  959. pl.Range=60
  960. count = count + .005
  961. if i <= 3 then
  962. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*cf(0,7,0)*ca(count,count,count+math.rad(360/3)*i)*cf(1.5,0,0),speed)
  963. else
  964. pt[i].CFrame = clerp(pt[i].CFrame,cf(ch.Torso.CFrame.p)*cf(0,7,0)*ca(count+1.1,count,count+math.rad(360/3)*i)*cf(2.25,0,0)*ca(0,0,0),speed)
  965. end
  966. ypcall(function()
  967. ch.Torso.CanCollide = false
  968. ch.Head.CanCollide = false
  969. end)
  970. elseif mode == "fly" then
  971. guide.CanCollide=false
  972. Direction = CFrame.new(ch.Torso.Position,lp:GetMouse().Hit.p)
  973. bg.cframe = Direction*CFrame.Angles(-1.55,0,0)
  974. bv.velocity = lp:GetMouse().Hit.lookVector*50
  975. count = count + .01
  976. if i <= 3 then
  977. pt[i].CFrame = clerp(pt[i].CFrame,ch.Torso.CFrame*ca(0,count+rad(360/3)*i,0)*cf(2,-3,0)*ca(pi/2,rad(30),0),speed)
  978. else
  979. pt[i].CFrame = clerp(pt[i].CFrame,ch.Torso.CFrame*ca(0,-count-rad(360/3)*i,0)*cf(2,3,0)*ca(pi/2,-rad(30),0),speed)
  980. end
  981. elseif mode == "saw" then
  982. count = count + .015
  983. local part = pt[i]
  984. part.CFrame = clerp(pt[i].CFrame,ch.Torso.CFrame*ca(-count-rad(360/6)*i,0,0)*cf(0,3,0)*ca(pi/2,-pi/2,0),speed)
  985. local shootpos = pt[i].CFrame*cf(-2,0,0)
  986. local startpos = pt[i].CFrame*cf(-1.2,0,0)
  987. local ray = Ray.new(startpos.p,(shootpos.p - startpos.p).unit*2)
  988. local hit,position = game.Workspace:FindPartOnRayWithIgnoreList(ray,ignore)
  989. if hit then
  990. frag(hit)
  991. end
  992. elseif mode == "lightning" then
  993. count = count + .015
  994. guide.CFrame = cf(ch.Torso.CFrame.p)*CFrame.new(0,7,0)
  995. guide.CFrame = CFrame.new(guide.CFrame.p,lp:GetMouse().Hit.p)
  996. if i <= 3 then
  997. pt[i].CFrame = clerp(pt[i].CFrame,guide.CFrame*ca(-pi/2,count+rad(360/3)*i,0)*cf(1.7,0,0)*ca(pi/2,0,0),speed)
  998. else
  999. pt[i].CFrame = clerp(pt[i].CFrame,guide.CFrame*ca(-pi/2,-count-rad(360/3)*i,0)*cf(2,0,0)*ca(pi/2,-rad(30),0),speed)
  1000. end
  1001. end
  1002. ignore = {}
  1003. if bcount < 13 then
  1004. pt2[bcount-1].CFrame = pt[i].CFrame *cf(-0.8,-0.5,0)*ca(0,0,rad(60))
  1005. pt2[bcount].CFrame = pt[i].CFrame *cf(-0.8,0.5,0)*ca(0,0,-rad(60))
  1006. end
  1007. table.insert(ignore,pt2[bcount-1])
  1008. table.insert(ignore,pt2[bcount])
  1009. end
  1010. if armloop then
  1011. if ch.Torso:findFirstChild("Right Shoulder") then
  1012. armw = ch.Torso:findFirstChild("Right Shoulder")
  1013. armw.Parent = nil
  1014. end
  1015. ch['Right Arm'].Anchored = true
  1016. local p0 = ch.Torso.CFrame
  1017. p0 = p0 + ((p0 * ca(pi/-2,0,0)).lookVector * -0.5) + (p0 * ca(0,pi/-2,0)).lookVector
  1018. local p1 = p0 + ((p0.p-lp:GetMouse().Hit.p).unit * -2)
  1019. ch['Right Arm'].CFrame = cf((p0.p + p1.p)/2,p0.p) * ca(-math.pi/2,0,0)
  1020. end
  1021. for i,v in pairs(pt3) do
  1022. if v.Parent ~= workspace then
  1023. for i=1,#pt3 do game.Debris:AddItem(pt3[i],.1) end
  1024. pt3 = {}
  1025. pt2 = {}
  1026. pt = {}
  1027. make()
  1028. end
  1029. end
  1030. if not lp.PlayerGui:findFirstChild("JL_gui") then
  1031. makeg()
  1032. end
  1033. if guide.Parent ~= workspace then
  1034. guide = new("Part",workspace,{Size=Vector3.new(2,0,2);BrickColor=BrickColor.new("");CanCollide=false;Anchored=true;Locked=true;Transparency=1})
  1035. pl = new("PointLight",guide,{Color=BrickColor.new("Bright orange").Color;Range=0})
  1036. light = new("Fire",guide,{Size=3;Heat=0;Enabled=false})
  1037. end
  1038. if textlabel_2 then
  1039. textlabel_2.Text = "FPS: "..math.floor(1/wait()*2)
  1040. end
  1041. end)
  1042.  
  1043. efx(lp.Character.Torso)
  1044. wait(.1)
  1045. notif("JarLore Version"..version.." has successfully loaded.")
  1046. wait(2)
  1047. notif("You may start by pressing [L-CTRL] to focus.")
  1048.  
  1049. --[["That'sa all folks!"]]--
  1050.  
  1051. wait(0)
  1052. local Parts = {
  1053. game.Players.LocalPlayer.Character.Torso
  1054. }
  1055. local w = {}
  1056. for i = 2, 24 do
  1057. Parts[i] = Instance.new("Part", game.Players.LocalPlayer.Character)
  1058. Parts[i].BrickColor = BrickColor.Black()
  1059. Parts[i].Material = "Granite"
  1060. Parts[i].CanCollide = false
  1061. Parts[i].Locked = false
  1062. Parts[i].formFactor = "Symmetric"
  1063. Parts[i].Size = Vector3.new(1.5, 3, 3)
  1064. function onTouched(part)
  1065. local h = Parts[i].Parent:findFirstChild("Humanoid")
  1066. if h ~= nil then
  1067. h.Health = h.Health - 0
  1068. wait(0)
  1069. end
  1070. end
  1071. Parts[i].Touched:connect(onTouched)
  1072. Mesh = Instance.new("BlockMesh", Parts[i])
  1073. Mesh.Name = "Mesh"
  1074. if i > 75 then
  1075. mult = (i - 25) / 1
  1076. else
  1077. mult = 0
  1078. end
  1079. Mesh.Scale = Vector3.new(math.abs(0.5 - (i - 0) / 50) + 0 + mult, 0.3 - (i - 0.15) / 69, 0.6)
  1080. w[i - 1] = Instance.new("Weld", Parts[i])
  1081. w[i - 1].Part0 = Parts[i - 1]
  1082. w[i - 1].Part1 = Parts[i]
  1083. w[i - 1].C0 = CFrame.new(0, 0, 0.75)
  1084. w[i - 1].C1 = CFrame.new(0, 0, -0.75)
  1085. end
  1086. w[1].C0 = CFrame.new(0, -0.35, 0)
  1087. function Smooth(WhereTo0, Welds)
  1088. local CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  1089. local CR1 = CFrame.new(WhereTo0).p
  1090. local AddTo0 = (CR1 - CR0) / 6.9
  1091. for a = 1, #Welds do
  1092. Welds[a].C1 = Welds[a].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y, AddTo0.z)
  1093. end
  1094. end
  1095. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  1096. local absx = scr.AbsoluteSize.X
  1097. local absy = scr.AbsoluteSize.Y
  1098. scr:Destroy()
  1099. local mouse = game.Players.LocalPlayer:GetMouse()
  1100. game:GetService("RunService").RenderStepped:connect(function()
  1101. local r = CFrame.new(Vector3.new((mouse.Y - absy / 2) / absy, (mouse.X - absx / 2) / absx, 0.025)).p
  1102. local y = r.y
  1103. local x = r.x
  1104. local z = r.z
  1105. Smooth(Vector3.new(y, x, -z), w)
  1106. end)
  1107. wait(0)
  1108. local Parts = {
  1109. game.Players.LocalPlayer.Character.Torso
  1110. }
  1111. local w = {}
  1112. for i = 2, 24 do
  1113. Parts[i] = Instance.new("Part", game.Players.LocalPlayer.Character)
  1114. Parts[i].BrickColor = BrickColor.Black()
  1115. Parts[i].Material = "Granite"
  1116. Parts[i].CanCollide = false
  1117. Parts[i].Locked = false
  1118. Parts[i].formFactor = "Symmetric"
  1119. Parts[i].Size = Vector3.new(1.1, 0.9, 2.5)
  1120. function onTouched(part)
  1121. local h = Parts[i].Parent:findFirstChild("Humanoid")
  1122. if h ~= nil then
  1123. h.Health = h.Health - 0
  1124. wait(0)
  1125. end
  1126. end
  1127. Parts[i].Touched:connect(onTouched)
  1128. Mesh = Instance.new("BlockMesh", Parts[i])
  1129. Mesh.Name = "Mesh"
  1130. if i > 75 then
  1131. mult = (i - 25) / 1
  1132. else
  1133. mult = 0
  1134. end
  1135. Mesh.Scale = Vector3.new(math.abs(0.5 - (i - 0) / 50) + 0 + mult, 0.3 - (i - 0.15) / 99, 0.6)
  1136. w[i - 1] = Instance.new("Weld", Parts[i])
  1137. w[i - 1].Part0 = Parts[i - 1]
  1138. w[i - 1].Part1 = Parts[i]
  1139. w[i - 1].C0 = CFrame.new(0, 0, 0.69)
  1140. w[i - 1].C1 = CFrame.new(0, 0, -0.69)
  1141. end
  1142. w[1].C0 = CFrame.new(0, -0.35, 0)
  1143. function Smooth(WhereTo0, Welds)
  1144. local CR0 = CFrame.new(Welds[1].C1:toEulerAnglesXYZ()).p
  1145. local CR1 = CFrame.new(WhereTo0).p
  1146. local AddTo0 = (CR1 - CR0) / 6.9
  1147. for a = 1, #Welds do
  1148. Welds[a].C1 = Welds[a].C1 * CFrame.fromEulerAnglesXYZ(AddTo0.x, AddTo0.y, AddTo0.z)
  1149. end
  1150. end
  1151. local scr = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  1152. local absx = scr.AbsoluteSize.X
  1153. local absy = scr.AbsoluteSize.Y
  1154. scr:Destroy()
  1155. local mouse = game.Players.LocalPlayer:GetMouse()
  1156. game:GetService("RunService").RenderStepped:connect(function()
  1157. local r = CFrame.new(Vector3.new((mouse.Y - absy / 2) / absy, (mouse.X - absx / 2) / absx, 0.025)).p
  1158. local y = r.y
  1159. local x = r.x
  1160. local z = r.z
  1161. Smooth(Vector3.new(y, x, -z), w)
  1162. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement