Advertisement
wamandnj

Untitled

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