Advertisement
kakeru012435

Jarlore kagune roblox script

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