Advertisement
princeofheaven

Despairus

Jun 3rd, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.98 KB | None | 0 0
  1. --[[ One of the most powerful script I, Despairus, have ever made
  2. And also one the oldest that i never got around to releasing,
  3. so here it is. (ITS A LOCAL SCRIPT!) ]]
  4. script.Parent = nil
  5. script.Name = "DESPAIR.GUI()"
  6.  
  7. local plrs = game:GetService("Players")
  8. local ws = game:GetService("Workspace")
  9. local hitDeb = false
  10. local insert_types = {"ForceField", "Fire", "Smoke", "Sparkles", "CylinderMesh", "Part", "SpawnLocation"}
  11. local modes = {"dissolve", "delete", "punish", "unpunish", "invisible", "visible", "ff", "unff", "kill", "kick", "god", "script", "explode", "teleport", "freeze", "thaw", "clean", "base", "antigrav", "grav", "rejoin", "color", "time", "brightness", "fog", "ambience", "run", "walk", "mortal", "jump", "sit", "message", "Explorer_PropertiesMode"}
  12. local mode = "dissolve"
  13. local user_name = plrs.LocalPlayer.Name
  14.  
  15. renderstep_con = nil
  16. platforming = false
  17. hovermode = false
  18. platform = Instance.new("Part")
  19.  
  20. function isnumber(txt)
  21. if (type(tonumber(txt)) == "number") then
  22. return true
  23. else
  24. return false
  25. end
  26. end
  27.  
  28. function s_left(gui) --[[ gets the left surface of a gui ]]
  29. return gui.Position.X.Scale
  30. end
  31.  
  32. function s_top(gui) --[[ gets the top surface of a gui ]]
  33. return gui.Position.Y.Scale
  34. end
  35.  
  36. function s_right(gui) --[[ gets the right surface of a gui ]]
  37. return gui.Position.X.Scale+gui.Size.X.Scale
  38. end
  39.  
  40. function s_bottom(gui) --[[ gets the bottom surface of a gui ]]
  41. return gui.Position.Y.Scale+gui.Size.Y.Scale
  42. end
  43.  
  44. function showmsg(msg,dur)
  45. local alert = Instance.new("Hint", User.PlayerGui)
  46. alert.Text = msg
  47. Delay(dur, function() alert:Remove() end)
  48. end
  49.  
  50. --[[ ------------------------ BEGINNING OF INTERFACE -----------------------------]]
  51. function BEGININTERFACE() --[[ Begin the GUI interface ]]
  52. wait(1.6)
  53. local User = plrs.LocalPlayer
  54.  
  55. local sg = Instance.new("ScreenGui", User.PlayerGui)
  56. sg.Name = "INTERFACE"
  57.  
  58. local function showguimsg(txttype, btn_mousedown, caption, txt)
  59. for _,v in pairs(User.PlayerGui:GetChildren()) do
  60. if (v.Name == "GUIMSG") then v:Remove() end
  61. end
  62. local sgui = Instance.new("ScreenGui", User.PlayerGui)
  63. sgui.Name = "GUIMSG"
  64. local fr = Instance.new("Frame", sgui)
  65. if (string.len(txt) < 100) then
  66. fr:TweenSize(UDim2.new(0.3,0,0.3,0), "Out", "Quad", 0.5, false, nil)
  67. fr:TweenPosition(UDim2.new(0.4,0,0.4,0), "Out", "Quad", 0.5, false, nil)
  68. else
  69. fr:TweenSize(UDim2.new(0.4,0,0.8,0), "Out", "Quad", 0.5, false, nil)
  70. fr:TweenPosition(UDim2.new(0.3,0,0,0), "Out", "Quad", 0.5, false, nil)
  71. end
  72. fr.BackgroundColor3 = Color3.new(0,0,0)
  73. fr.BorderColor3 = Color3.new(1,1,1)
  74.  
  75. local capt = Instance.new("TextLabel", fr)
  76. capt.BackgroundColor3 = Color3.new(0,0,0)
  77. capt.BorderColor3 = Color3.new(1,1,1)
  78. capt.TextColor3 = Color3.new(1,1,1)
  79. capt.Size = UDim2.new(1,0,0.12,0)
  80. capt.Text = caption
  81. capt.FontSize = "Size24"
  82.  
  83. local msg = Instance.new(txttype, fr)
  84. msg.Position = UDim2.new(0,0,capt.Size.Y.Scale,0)
  85. msg.Size = UDim2.new(1,0,1-capt.Size.Y.Scale,0)
  86. msg.BackgroundColor3 = Color3.new(0,0,0)
  87. msg.BorderColor3 = Color3.new(1,1,1)
  88. msg.TextColor3 = Color3.new(1,1,1)
  89. msg.Text = txt
  90.  
  91. local exit = Instance.new("TextButton", fr)
  92. exit.BackgroundColor3 = Color3.new(1,0,0)
  93. exit.BorderColor3 = Color3.new(1,1,1)
  94. exit.TextColor3 = Color3.new(1,1,1)
  95. exit.Position = UDim2.new(capt.Size.X.Scale-capt.Size.Y.Scale, 0, 0, 0)
  96. exit.Size = UDim2.new(capt.Size.Y.Scale,0,capt.Size.Y.Scale,0)
  97. exit.ZIndex = 10
  98. exit.Text = "X"
  99. exit.FontSize = "Size24"
  100. exit.MouseButton1Down:connect(function() sgui:Remove() end)
  101.  
  102. if (txttype == "TextBox" and btn_mousedown ~= nil) then
  103. local btn = Instance.new("TextButton", fr)
  104. btn.BackgroundColor3 = Color3.new(0,1,0)
  105. btn.TextColor3 = Color3.new(1,1,1)
  106. btn.Size = UDim2.new(1,0,0.08,0)
  107. btn.Position = UDim2.new(0,0,0.92,0)
  108. btn.Text = "Execute"
  109. btn.Name = "Btn_PropertyExecute"
  110. btn.ZIndex = 10
  111. btn.MouseButton1Down:connect(function() xpcall(function() btn_mousedown(msg.Text) sgui:Remove() end, function(error) showmsg(error, 3) end) end)
  112. end
  113. end
  114.  
  115. local frame = Instance.new("Frame", sg)
  116. frame.Size = UDim2.new(0.6,0,0.6,0)
  117. frame.Position = UDim2.new(0.05,0,0.25,0)
  118. frame.BackgroundTransparency = 0.7
  119.  
  120. local open = Instance.new("TextButton", sg)
  121. open.Size = UDim2.new(0.05,0,0.05,0)
  122. open.Position = UDim2.new(0,0,0.4,0)
  123. open.BackgroundColor3 = Color3.new(0,0,0)
  124. open.TextColor3 = Color3.new(1,1,1)
  125. open.BorderColor3 = Color3.new(1,1,1)
  126. open.Visible = false
  127. open.Text = ">"
  128.  
  129. local close = Instance.new("TextButton", frame)
  130. close.Size = UDim2.new(0.06,0,0.06,0)
  131. close.Position = UDim2.new(0.94,0,0,0)
  132. close.BackgroundColor3 = Color3.new(1,0,0)
  133. close.TextColor3 = Color3.new(1,1,1)
  134. close.BorderColor3 = Color3.new(1,1,1)
  135. close.FontSize = "Size18"
  136. close.Text = "X"
  137.  
  138. local caption = Instance.new("TextLabel", frame)
  139. caption.Size = UDim2.new(close.Position.X.Scale,0,close.Size.Y.Scale,0)
  140. caption.BackgroundColor3 = Color3.new(0,0,0)
  141. caption.TextColor3 = Color3.new(1,1,1)
  142. caption.BorderColor3 = Color3.new(1,1,1)
  143. caption.Name = "Caption"
  144. caption.FontSize = "Size18"
  145.  
  146. local scrollframe = Instance.new("ScrollingFrame", sg)
  147. scrollframe.Visible = false
  148. scrollframe.Size = UDim2.new(0.26,0,frame.Size.Y.Scale,0)
  149. scrollframe.Position = UDim2.new(s_right(frame),0,s_top(frame),0)
  150. scrollframe.BackgroundTransparency = frame.BackgroundTransparency
  151. scrollframe.BackgroundColor3 = Color3.new(100,100,100)
  152.  
  153. local selected_obj = {}
  154. local selected_btn = {}
  155. local currently_searching_in = ws
  156.  
  157. local function f_deselect()
  158. for i=1,#selected_btn do
  159. selected_btn[i].BackgroundColor3 = Color3.new(0,0,0)
  160. end
  161. selected_obj = {}
  162. selected_btn = {}
  163. end
  164.  
  165. local function refresh(obj)
  166. if (mode ~= "Explorer_PropertiesMode") then
  167. scrollframe:ClearAllChildren()
  168. wait()
  169. local _childs = obj:GetChildren()
  170.  
  171. for i = 1,#_childs do
  172. pcall(function() --[[ required incase it scans anything outside of workspace and fails to work ]]
  173. local partbtn = Instance.new("TextButton", scrollframe)
  174. partbtn.Size = UDim2.new(0.925,0,0.025,0)
  175. partbtn.Position = UDim2.new(0,0,(partbtn.Size.Y.Scale*i)-partbtn.Size.Y.Scale,0)
  176. partbtn.BackgroundColor3 = Color3.new(0,0,0)
  177. partbtn.TextColor3 = Color3.new(1,1,1)
  178. partbtn.BorderColor3 = Color3.new(1,1,1)
  179. partbtn.MouseButton2Down:connect(function()
  180. pcall(function()
  181. if (partbtn.BackgroundColor3 == Color3.new(1,0,0)) then
  182. for i=1,#selected_btn do
  183. if (selected_btn[i] == partbtn) then
  184. table.remove(selected_btn, i)
  185. table.remove(selected_obj, i)
  186. partbtn.BackgroundColor3 = Color3.new(0,0,0)
  187. end
  188. end
  189. else
  190. table.insert(selected_obj, _childs[i])
  191. table.insert(selected_btn, partbtn)
  192. partbtn.BackgroundColor3=Color3.new(1,0,0)
  193. end
  194. end)
  195. end)
  196. partbtn.MouseButton1Down:connect(function()
  197. f_deselect()
  198. currently_searching_in = _childs[i]
  199. refresh(currently_searching_in)
  200. end)
  201. partbtn.Name = "btn_" ..i
  202. partbtn.Text = _childs[i].Name.. ", Class: " .._childs[i].ClassName.. "."
  203. partbtn.BackgroundTransparency = frame.BackgroundTransparency
  204. end)
  205. end
  206. else
  207. scrollframe:ClearAllChildren()
  208. wait()
  209. local _childs = {}
  210. local cn = obj.ClassName
  211. if (cn == "Humanoid") then
  212. _childs = {"Name", "MaxHealth", "Health", "WalkSpeed"}
  213. elseif (cn == "Script") then
  214. _childs = {"Name", "Source"}
  215. elseif (cn == "Model") then
  216. _childs = {"Name"}
  217. elseif (cn == "StringValue" or cn == "NumberValue" or cn == "IntValue") then
  218. _childs = {"Name", "Value"}
  219. elseif (cn == "SpecialMesh") then
  220. _childs = {"MeshType", "Scale", "Offset"}
  221. elseif (cn == "Part" or cn == "SpawnLocation") then
  222. _childs = {"Name", "BrickColor", "Transparency", "Reflectance", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface", "Position", "Size"}
  223. elseif (cn == "Fire" or cn == "Smoke") then
  224. _childs = {"Name", "Size"}
  225. end
  226. if (#_childs > 0) then
  227. for i = 1,#_childs do
  228. pcall(function()
  229. local partbtn = Instance.new("TextButton", scrollframe)
  230. partbtn.Size = UDim2.new(0.925,0,0.025,0)
  231. partbtn.Position = UDim2.new(0,0,(partbtn.Size.Y.Scale*i)-partbtn.Size.Y.Scale,0)
  232. partbtn.BackgroundColor3 = Color3.new(0,0,0)
  233. partbtn.TextColor3 = Color3.new(1,1,1)
  234. partbtn.BorderColor3 = Color3.new(1,1,1)
  235. partbtn.Name = "btn_" .._childs[i]
  236. partbtn.Text = _childs[i]
  237. partbtn.MouseButton1Down:connect(function()
  238. if (_childs[i] == "MaxHealth" or _childs[i] == "WalkSpeed" or _childs[i] == "Health" or _childs[i] == "Transparency" or _childs[i] == "Reflectance") or (_childs[i] == "Size" and (cn == "Fire" or cn == "Smoke")) then
  239. showguimsg("TextBox", function(input) if isnumber(input) == true then obj[_childs[i]]=input end end, "Input " .._childs[i].. ":", obj[_childs[i]])
  240. elseif (_childs[i] == "Name" or _childs[i] == "BrickColor" or _childs[i] == "MeshType" or _childs[i] == "BottomSurface" or _childs[i] == "TopSurface" or _childs[i] == "LeftSurface" or _childs[i] == "RightSurface" or _childs[i] == "FrontSurface" or _childs[i] == "BackSurface") then
  241. showguimsg("TextBox", function(input) if isnumber(input) == false then pcall(function() obj[_childs[i]]=input end) end end, "Input " .._childs[i].. ":", tostring(obj[_childs[i]]))
  242. elseif (_childs[i] == "Value") and (cn == "StringValue" or cn == "ObjectValue") then
  243. showguimsg("TextBox", function(input) if isnumber(input) == false then pcall(function() obj[_childs[i]]=input end) end end, "Input " .._childs[i].. ":", tostring(obj[_childs[i]]))
  244. elseif (_childs[i] == "Source") then
  245. showguimsg("TextLabel", function(input) print("haha, i'm viewing your script") end, _childs[i].. ":", obj[_childs[i]])
  246. elseif (cn == "NumberValue" or cn == "IntValue") then
  247. if (_childs[i] == "Value") then
  248. showguimsg("TextBox", function(input) if isnumber(input) == true then obj[_childs[i]]=input end end, "Input " .._childs[i].. ":", obj[_childs[i]])
  249. end
  250. elseif (cn ~= "Smoke" and cn ~= "Fire") then
  251. if (_childs[i] == "Size" or _childs[i] == "Position" or _childs[i] == "Scale" or _childs[i] == "Offset") then
  252. showguimsg("TextBox", function(input)
  253. local parts = explode(", ", input)
  254. if parts[1] ~= nil and parts[2] ~= nil and parts[3] ~= nil then
  255. if isnumber(parts[1]) and isnumber(parts[2]) and isnumber(parts[3]) then
  256. obj[_childs[i]]=input
  257. end
  258. end
  259. end, "Input " .._childs[i].. " Vector3:", "X: " ..obj[_childs[i]].X.. ", Y: " ..obj[_childs[i]].Y.. ", Z: " ..obj[_childs[i]].Z.. ".")
  260. end
  261. end
  262. refresh(obj)
  263. end)
  264. partbtn.Name = "btn_" ..i
  265. partbtn.Text = _childs[i].Name.. ", Value: " ..obj[_childs[i]].. "."
  266. partbtn.BackgroundTransparency = frame.BackgroundTransparency
  267. end)
  268. end
  269. end
  270. end
  271. end
  272.  
  273. refresh(currently_searching_in)
  274.  
  275. local deselect = Instance.new("TextButton", sg)
  276. deselect.Size = UDim2.new(scrollframe.Size.X.Scale/2, 0, 0.04, 0)
  277. deselect.Position = UDim2.new(s_left(scrollframe),0,s_bottom(scrollframe),0)
  278. deselect.BorderColor3 = Color3.new(1,1,1)
  279. deselect.BackgroundColor3 = Color3.new(1,0,0)
  280. deselect.TextColor3 = Color3.new(1,1,1)
  281. deselect.FontSize = "Size14"
  282. deselect.Text = "Deselect"
  283. deselect.Visible = false
  284. deselect.MouseButton1Down:connect(f_deselect)
  285.  
  286. local delete = Instance.new("TextButton", sg)
  287. delete.Size = deselect.Size
  288. delete.Position = UDim2.new(s_right(deselect),0,s_bottom(scrollframe),0)
  289. delete.BorderColor3 = Color3.new(1,1,1)
  290. delete.BackgroundColor3 = Color3.new(1,0,0)
  291. delete.TextColor3 = Color3.new(1,1,1)
  292. delete.FontSize = "Size14"
  293. delete.Visible = false
  294. delete.Text = "Delete"
  295. delete.MouseButton1Down:connect(function()
  296. for i=1,#selected_btn do
  297. selected_btn[i]:Remove()
  298. end
  299. for j=1,#selected_obj do
  300. selected_obj[j]:Remove()
  301. end
  302. refresh(currently_searching_in)
  303. end)
  304.  
  305. local btn_back = Instance.new("TextButton", sg)
  306. btn_back.Size = deselect.Size
  307. btn_back.Position = UDim2.new(s_left(deselect),0,s_bottom(deselect),0)
  308. btn_back.BorderColor3 = Color3.new(1,1,1)
  309. btn_back.BackgroundColor3 = Color3.new(1,0,0)
  310. btn_back.TextColor3 = Color3.new(1,1,1)
  311. btn_back.FontSize = "Size14"
  312. btn_back.Visible = false
  313. btn_back.Text = "Back(.Parent)"
  314. btn_back.MouseButton1Down:connect(function()
  315. f_deselect()
  316. if (mode == "Explorer_PropertiesMode") then
  317. mode = "None"
  318. end
  319. if (currently_searching_in.Parent ~= nil) then
  320. currently_searching_in = currently_searching_in.Parent
  321. refresh(currently_searching_in)
  322. end
  323. end)
  324.  
  325. local btn_reset = Instance.new("TextButton", sg)
  326. btn_reset.Size = deselect.Size
  327. btn_reset.Position = UDim2.new(s_right(deselect),0,s_bottom(deselect),0)
  328. btn_reset.BorderColor3 = Color3.new(1,1,1)
  329. btn_reset.BackgroundColor3 = Color3.new(1,0,0)
  330. btn_reset.TextColor3 = Color3.new(1,1,1)
  331. btn_reset.FontSize = "Size14"
  332. btn_reset.Visible = false
  333. btn_reset.Text = "Reset"
  334. btn_reset.MouseButton1Down:connect(function()
  335. f_deselect()
  336. mode = "dissolve"
  337. currently_searching_in = ws
  338. refresh(currently_searching_in)
  339. end)
  340.  
  341. local btn_refresh = Instance.new("TextButton", frame)
  342. local btn_insert = Instance.new("TextButton", frame)
  343.  
  344. local btn_explorer = Instance.new("TextButton", frame)
  345. btn_explorer.Size = UDim2.new(close.Position.X.Scale/2.75,0,close.Size.Y.Scale,0)
  346. btn_explorer.Position = UDim2.new(1-btn_explorer.Size.X.Scale,0,-close.Size.Y.Scale,0)
  347. btn_explorer.BackgroundColor3 = Color3.new(0,0,0)
  348. btn_explorer.TextColor3 = Color3.new(1,1,1)
  349. btn_explorer.BorderColor3 = Color3.new(1,1,1)
  350. btn_explorer.Name = "btn_explorer"
  351. btn_explorer.Text = "Show Explorer"
  352. btn_explorer.FontSize = "Size18"
  353. btn_explorer.MouseButton1Down:connect(function()
  354. if (scrollframe.Visible == false) then
  355. scrollframe.Visible = true
  356. btn_explorer.Text = "Hide Explorer"
  357. btn_refresh.Visible = true
  358. deselect.Visible = true
  359. delete.Visible = true
  360. btn_back.Visible = true
  361. btn_reset.Visible = true
  362. btn_insert.Visible = true
  363. else
  364. scrollframe.Visible = false
  365. btn_explorer.Text = "Show Explorer"
  366. btn_refresh.Visible = false
  367. deselect.Visible = false
  368. delete.Visible = false
  369. btn_back.Visible = false
  370. btn_reset.Visible = false
  371. btn_insert.Visible = false
  372. end
  373. end)
  374.  
  375. btn_insert.Size = btn_explorer.Size
  376. btn_insert.Position = UDim2.new(s_right(btn_explorer),0,s_top(btn_explorer),0)
  377. btn_insert.BackgroundColor3 = Color3.new(1,0,0)
  378. btn_insert.TextColor3 = Color3.new(1,1,1)
  379. btn_insert.BorderColor3 = Color3.new(1,1,1)
  380. btn_insert.Name = "btn_insert"
  381. btn_insert.Text = "Insert Object"
  382. btn_insert.FontSize = "Size18"
  383. btn_insert.Visible = false
  384. btn_insert.MouseButton1Down:connect(function()
  385. if (currently_searching_in.Parent ~= nil and currently_searching_in ~= game) then
  386. local sf = Instance.new("ScrollingFrame", sg)
  387. sf.Position = UDim2.new(0.4,0,0.4,0)
  388. sf.Size = UDim2.new(0.2,0,0.2,0)
  389.  
  390. local exit = Instance.new("TextButton", sg)
  391. exit.Position = UDim2.new(0.6,0,0.4,0)
  392. exit.Size = UDim2.new(0.03,0,0.03,0)
  393. exit.BackgroundColor3 = Color3.new(1,0,0)
  394. exit.TextColor3 = Color3.new(1,1,1)
  395. exit.BorderColor3 = Color3.new(1,1,1)
  396. exit.FontSize = "Size24"
  397. exit.Text = "X"
  398. exit.MouseButton1Down:connect(function() exit:Remove() sf:Remove() end)
  399.  
  400. for i = 1, #insert_types do
  401. local insertbtn = Instance.new("TextButton", sf)
  402. insertbtn.Size = UDim2.new(0.925,0,0.025,0)
  403. insertbtn.Position = UDim2.new(0,0,(insertbtn.Size.Y.Scale*i)-insertbtn.Size.Y.Scale,0)
  404. insertbtn.BackgroundColor3 = Color3.new(0,0,0)
  405. insertbtn.TextColor3 = Color3.new(1,1,1)
  406. insertbtn.BorderColor3 = Color3.new(1,1,1)
  407. insertbtn.Name = "btn_" ..insert_types[i]
  408. insertbtn.Text = insert_types[i]
  409. insertbtn.BackgroundTransparency = frame.BackgroundTransparency
  410. insertbtn.MouseButton1Down:connect(function()
  411. Instance.new(insert_types[i], currently_searching_in)
  412. refresh(currently_searching_in)
  413. exit:Remove()
  414. sf:Remove()
  415. end)
  416. end
  417. end
  418. end)
  419.  
  420. btn_refresh.Size = UDim2.new(btn_explorer.Size.X.Scale,0,close.Size.Y.Scale,0)
  421. btn_refresh.Position = UDim2.new(1-btn_explorer.Size.X.Scale,0,-(btn_explorer.Size.Y.Scale+btn_refresh.Size.Y.Scale),0)
  422. btn_refresh.BackgroundColor3 = Color3.new(1,0,0)
  423. btn_refresh.TextColor3 = Color3.new(1,1,1)
  424. btn_refresh.BorderColor3 = Color3.new(1,1,1)
  425. btn_refresh.Name = "Btn_Refresh"
  426. btn_refresh.Visible = false
  427. btn_refresh.Text = "Refresh"
  428. btn_refresh.FontSize = "Size18"
  429. btn_refresh.MouseButton1Down:connect(function() refresh(currently_searching_in) end)
  430.  
  431. local _maxcols = 14
  432. local _cols = 1
  433. local _rows = 1
  434.  
  435. for _i = 1,#modes do
  436. local _xsize = frame.Size.X.Scale/3
  437. local modebtn = Instance.new("TextButton", frame)
  438. modebtn.Size = UDim2.new(_xsize, 0, 0.06, 0)
  439. modebtn.Position = UDim2.new((_xsize * _rows) - _xsize,0,caption.Size.Y.Scale + (modebtn.Size.Y.Scale * _cols) - modebtn.Size.Y.Scale,0)
  440. modebtn.BackgroundColor3 = Color3.new(0,0,0)
  441. modebtn.TextColor3 = Color3.new(1,1,1)
  442. modebtn.BorderColor3 = Color3.new(1,1,1)
  443. modebtn.Name = "button_" ..modes[_i]
  444. modebtn.Text = modes[_i]
  445. modebtn.BackgroundTransparency = frame.BackgroundTransparency
  446. modebtn.MouseButton1Down:connect(function()
  447. for _,v in pairs(frame:GetChildren()) do
  448. if (string.match(v.Name:lower(), "button_")) then
  449. v.BackgroundColor3 = Color3.new(0,0,0)
  450. end
  451. end
  452. if (mode ~= modes[_i]) then
  453. mode = modes[_i]
  454. modebtn.BackgroundColor3 = Color3.new(1,0,0)
  455. else
  456. mode = "None"
  457. end
  458. end)
  459.  
  460. if (_cols < _maxcols) then
  461. _cols = _cols + 1
  462. else
  463. _cols = 1
  464. _rows = _rows + 1
  465. end
  466. end
  467.  
  468. local input = Instance.new("TextBox", frame)
  469. input.Size = UDim2.new(0.8,0,0.06,0)
  470. input.Position = UDim2.new(0,0,1-input.Size.Y.Scale,0)
  471. input.BackgroundTransparency = frame.BackgroundTransparency
  472. input.Name = "INPUT"
  473. input.Text = "Input Here"
  474. input.BackgroundColor3 = Color3.new(0,0,0)
  475. input.BorderColor3 = Color3.new(1,1,1)
  476. input.TextColor3 = Color3.new(1,1,1)
  477.  
  478. open.MouseButton1Down:connect(function()
  479. open.Visible = false
  480. frame.Visible = true
  481. frame.Size = UDim2.new(0.6,0,0.6,0)
  482. frame.Position = UDim2.new(0.05,0,0.25,0)
  483. end)
  484.  
  485. close.MouseButton1Down:connect(function()
  486. open.Visible = true
  487. frame.Visible = false
  488. frame.Size = UDim2.new(0,0,0,0)
  489. frame.Position = UDim2.new(0,0,0,0)
  490. deselect.Visible = false
  491. delete.Visible = false
  492. btn_back.Visible = false
  493. scrollframe.Visible = false
  494. btn_explorer.Text = "Show Explorer"
  495. btn_refresh.Visible = false
  496. btn_reset.Visible = false
  497. btn_insert.Visible = false
  498. end)
  499.  
  500. local function explode(divider, text)
  501. if text == nil or divider == nil then return {} end
  502. if tostring(text) == "" then return {} end
  503. if tostring(divider) == "" then return {text} end
  504. local text = tostring(text)
  505. local divider = tostring(divider)
  506. local position = 0
  507. local words = {}
  508. for start, stop in function() return string.find(text, divider, position, true) end do
  509. table.insert(words, string.sub(text, position, start - 1))
  510. position = stop + 1
  511. end
  512. table.insert(words, string.sub(text, position))
  513. return words
  514. end
  515.  
  516. local execute = Instance.new("TextButton", frame)
  517. execute.Size = UDim2.new(0.2,0,input.Size.Y.Scale,0)
  518. execute.Position = UDim2.new(input.Size.X.Scale,0,1-input.Size.Y.Scale,0)
  519. execute.BackgroundColor3 = Color3.new(0,0,0)
  520. execute.BorderColor3 = Color3.new(1,1,1)
  521. execute.TextColor3 = Color3.new(1,1,1)
  522. execute.BackgroundTransparency = frame.BackgroundTransparency
  523. execute.Text = "Execute"
  524. execute.Name = "EXECUTE"
  525. execute.MouseButton1Down:connect(function()
  526. local plr = {}
  527. local parts = explode(", ", input.Text) or ""
  528. if (input.Text:lower() == "all" or parts[1] == "all") then
  529. for _,v in pairs(plrs:GetChildren()) do
  530. table.insert(plr, v.Name)
  531. end
  532. elseif (input.Text:lower() == "others" or parts[1] == "others") then
  533. for _,v in pairs(plrs:GetChildren()) do
  534. if (v.Name ~= User.Name) then
  535. table.insert(plr, v.Name)
  536. end
  537. end
  538. elseif (input.Text:lower() == "me" or parts[1] == "me") then
  539. table.insert(plr, User.Name)
  540. else
  541. for _,v in pairs(plrs:GetChildren()) do
  542. if (string.find(v.Name:lower(), input.Text:lower()) or string.find(v.Name:lower(), parts[1]:lower())) then
  543. table.insert(plr, v.Name)
  544. end
  545. end
  546. end
  547.  
  548. if (mode:lower() == "ff") then
  549. for i=1,#plr do
  550. local p = plrs:findFirstChild(plr[i])
  551. if (p ~= nil) then
  552. if (p.Character ~= nil) then
  553. Instance.new("ForceField", p.Character)
  554. end
  555. end
  556. end
  557. elseif (mode:lower() == "unff") then
  558. for i=1,#plr do
  559. local p = plrs:findFirstChild(plr[i])
  560. if (p ~= nil) then
  561. if (p.Character ~= nil) then
  562. for _,v in pairs(p.Character:GetChildren()) do
  563. if (v.ClassName == "ForceField") then
  564. v:Remove()
  565. end
  566. end
  567. end
  568. end
  569. end
  570. elseif (mode:lower() == "invisible") then
  571. for i=1,#plr do
  572. local p = plrs:findFirstChild(plr[i])
  573. if (p ~= nil) then
  574. if (p.Character ~= nil) then
  575. for _,v in pairs(p.Character:GetChildren()) do
  576. if (v.ClassName == "Part") then v.Transparency=1
  577. elseif (v.ClassName == "Hat" and v:findFirstChild("Handle")) then v.Handle.Transparency=1 end
  578. if (v:findFirstChild("face")) then v.face.Transparency=1 end
  579. end
  580. end
  581. end
  582. end
  583. elseif (mode:lower() == "visible") then
  584. for i=1,#plr do
  585. local p = plrs:findFirstChild(plr[i])
  586. if (p ~= nil) then
  587. if (p.Character ~= nil) then
  588. for _,v in pairs(p.Character:GetChildren()) do
  589. if (v.Name ~= "HumanoidRootPart") then
  590. if (v.ClassName == "Part") then v.Transparency=0
  591. elseif (v.ClassName == "Hat" and v:findFirstChild("Handle")) then v.Handle.Transparency=0 end
  592. if (v:findFirstChild("face")) then v.face.Transparency=0 end
  593. end
  594. end
  595. end
  596. end
  597. end
  598. elseif (mode:lower() == "kill") then
  599. for i=1,#plr do
  600. local p = plrs:findFirstChild(plr[i])
  601. if (p ~= nil) then
  602. if (p.Character ~= nil) then
  603. p.Character:BreakJoints()
  604. end
  605. end
  606. end
  607. elseif (mode:lower() == "kick") then
  608. for i=1,#plr do
  609. local p = plrs:findFirstChild(plr[i])
  610. if (p ~= nil) then p:Remove() end
  611. end
  612. elseif (mode:lower() == "god") then
  613. for i=1,#plr do
  614. local p = plrs:findFirstChild(plr[i])
  615. if (p ~= nil) then
  616. if (p.Character ~= nil) then
  617. local h = p.Character:findFirstChild("Humanoid")
  618. if (h ~= nil) then
  619. h.MaxHealth = math.huge
  620. end
  621. end
  622. end
  623. end
  624. elseif (mode:lower() == "script") then
  625. xpcall(function()
  626. loadstring(input.Text)()
  627. end, function(Error)
  628. showmsg(Error, 3)
  629. end)
  630. elseif (mode:lower() == "teleport") then
  631. for i=1,#plr do
  632. local p = plrs:findFirstChild(plr[i])
  633. if (p ~= nil) then
  634. if (p.Character ~= nil) then
  635. local t = p.Character:findFirstChild("Torso")
  636. if (t ~= nil) then
  637. User.Character:MoveTo(t.Position)
  638. end
  639. end
  640. end
  641. end
  642. elseif (mode:lower() == "freeze") then
  643. for i=1,#plr do
  644. local p = plrs:findFirstChild(plr[i])
  645. if (p ~= nil) then
  646. if (p.Character ~= nil) then
  647. local t = p.Character:findFirstChild("Torso")
  648. if (t ~= nil) then
  649. t.Anchored = true
  650. end
  651. end
  652. end
  653. end
  654. elseif (mode:lower() == "thaw") then
  655. for i=1,#plr do
  656. local p = plrs:findFirstChild(plr[i])
  657. if (p ~= nil) then
  658. if (p.Character ~= nil) then
  659. local t = p.Character:findFirstChild("Torso")
  660. if (t ~= nil) then
  661. t.Anchored = false
  662. end
  663. end
  664. end
  665. end
  666. elseif (mode:lower() == "rejoin") then
  667. game:GetService("TeleportService"):Teleport(game.PlaceId)
  668. elseif (mode:lower() == "clean") then
  669. local base = Instance.new("SpawnLocation", ws)
  670. base.BrickColor = BrickColor.new("Camo")
  671. base.FormFactor = "Plate"
  672. base.Size = Vector3.new(500,0.4,500)
  673. base.BottomSurface = "Smooth"
  674. base.TopSurface = "Smooth"
  675. base.Material = "Grass"
  676. base.Name = "Base"
  677. base.Locked = true
  678. base.Anchored = true
  679. base.CFrame = CFrame.new(0,0,0)
  680. for _,v in pairs(ws:GetChildren()) do
  681. if (v.Archivable == true and v.Name ~= "Camera" and v.ClassName ~= "Terrain" and v ~= base) then
  682. v:Remove()
  683. end
  684. end
  685. elseif (mode:lower() == "base") then
  686. local base = Instance.new("SpawnLocation", ws)
  687. base.BrickColor = BrickColor.new("Camo")
  688. base.FormFactor = "Plate"
  689. base.Size = Vector3.new(500,0.4,500)
  690. base.BottomSurface = "Smooth"
  691. base.TopSurface = "Smooth"
  692. base.Material = "Grass"
  693. base.Name = "Base"
  694. base.Locked = true
  695. base.Anchored = true
  696. base.CFrame = CFrame.new(0,0,0)
  697. for _,v in pairs(ws:GetChildren()) do
  698. if (v ~= base) then
  699. if ((v.Name == "Base") or (v.Size.X>100 and v.Size.Y<2 and v.Size.Z>100)) then
  700. v:Remove()
  701. end
  702. end
  703. end
  704. elseif (mode:lower() == "explode") then
  705. for i=1,#plr do
  706. local p = plrs:findFirstChild(plr[i])
  707. if (p ~= nil) then
  708. if (p.Character ~= nil) then
  709. local t = p.Character:findFirstChild("Torso")
  710. if (t ~= nil) then
  711. Instance.new("Explosion", ws).Position = t.Position
  712. end
  713. end
  714. end
  715. end
  716. elseif (mode:lower() == "antigrav") then
  717. for i=1,#plr do
  718. local p = plrs:findFirstChild(plr[i])
  719. if (p ~= nil) then
  720. if (p.Character ~= nil) then
  721. local t = p.Character:findFirstChild("Torso")
  722. if (t ~= nil) then
  723. local bf = t:findFirstChild("BodyForce") or Instance.new("BodyForce", t)
  724. bf.force = Vector3.new(0,0,0)
  725. for _,v in pairs(p.Character:GetChildren()) do
  726. if (v.ClassName == "Part") then
  727. bf.force = bf.force + Vector3.new(0,v:GetMass()*80,0)
  728. elseif (v.ClassName == "Hat" and v:findFirstChild("Handle")) then
  729. bf.force = bf.force + Vector3.new(0,v.Handle:GetMass()*80,0)
  730. end
  731. end
  732. end
  733. end
  734. end
  735. end
  736. elseif (mode:lower() == "grav") then
  737. for i=1,#plr do
  738. local p = plrs:findFirstChild(plr[i])
  739. if (p ~= nil) then
  740. if (p.Character ~= nil) then
  741. local t = p.Character:findFirstChild("Torso")
  742. if (t ~= nil) then
  743. for _,v in pairs(t:GetChildren()) do
  744. if (v.ClassName == "BodyForce") then
  745. v:Remove()
  746. end
  747. end
  748. end
  749. end
  750. end
  751. end
  752. elseif (mode:lower() == "respawn") then
  753. for i=1,#plr do
  754. local p = plrs:findFirstChild(plr[i])
  755. if (p ~= nil) then p:LoadCharacter() end
  756. end
  757. elseif (mode:lower() == "time" and isnumber(input.Text) == true) then
  758. game.Lighting.TimeOfDay = input.Text
  759. elseif (mode:lower() == "brightness" and isnumber(input.Text) == true) then
  760. game.Lighting.Brightness = input.Text
  761. elseif (mode:lower() == "fog" and isnumber(input.Text) == true) then
  762. game.Lighting.FogEnd = input.Text
  763. elseif (mode:lower() == "ambience") then
  764. if (#parts > 2) then
  765. if (isnumber(parts[1])==true and isnumber(parts[2])==true and isnumber(parts[3])==true) then
  766. game.Lighting.Ambient = Color3.new(parts[1], parts[2], parts[3])
  767. end
  768. end
  769. elseif (mode:lower() == "unpunish") then
  770. for _,v in pairs(game.Lighting:GetChildren()) do
  771. if (string.find(v.Name:lower(), input.Text:lower())) then
  772. v.Parent = ws
  773. v:MakeJoints()
  774. end
  775. end
  776. elseif (mode:lower() == "run") then
  777. for i=1,#plr do
  778. local p = plrs:findFirstChild(plr[i])
  779. if (p ~= nil) then
  780. if (p.Character ~= nil) then
  781. local h = p.Character:findFirstChild("Humanoid")
  782. if (h ~= nil) then
  783. h.WalkSpeed = 75
  784. end
  785. end
  786. end
  787. end
  788. elseif (mode:lower() == "walk") then
  789. for i=1,#plr do
  790. local p = plrs:findFirstChild(plr[i])
  791. if (p ~= nil) then
  792. if (p.Character ~= nil) then
  793. local h = p.Character:findFirstChild("Humanoid")
  794. if (h ~= nil) then
  795. h.WalkSpeed = 16
  796. end
  797. end
  798. end
  799. end
  800. elseif (mode:lower() == "jump") then
  801. for i=1,#plr do
  802. local p = plrs:findFirstChild(plr[i])
  803. if (p ~= nil) then
  804. if (p.Character ~= nil) then
  805. local h = p.Character:findFirstChild("Humanoid")
  806. if (h ~= nil) then
  807. h.Jump = true
  808. end
  809. end
  810. end
  811. end
  812. elseif (mode:lower() == "sit") then
  813. for i=1,#plr do
  814. local p = plrs:findFirstChild(plr[i])
  815. if (p ~= nil) then
  816. if (p.Character ~= nil) then
  817. local h = p.Character:findFirstChild("Humanoid")
  818. if (h ~= nil) then
  819. h.Sit = true
  820. end
  821. end
  822. end
  823. end
  824. elseif (mode:lower() == "mortal") then
  825. for i=1,#plr do
  826. local p = plrs:findFirstChild(plr[i])
  827. if (p ~= nil) then
  828. if (p.Character ~= nil) then
  829. local h = p.Character:findFirstChild("Humanoid")
  830. if (h ~= nil) then
  831. h.MaxHealth = 100
  832. end
  833. end
  834. end
  835. end
  836. elseif (mode:lower() == "message" and parts[1] ~= nil and parts[2] ~= nil and parts[3] ~= nil) then
  837. for i=1,#plr do --[[ also searches parts[1] if it cant find normally find the player ]]
  838. local p = plrs:findFirstChild(plr[i])
  839. if (p ~= nil and isnumber(parts[2])==false and isnumber(parts[3])==true) then
  840. local m = Instance.new("Message", p.PlayerGui)
  841. m.Text = parts[2]
  842. if (parts[3] < 20) then
  843. delay(parts[3], function() m:remove() end)
  844. else
  845. delay(20, function() m:remove() end)
  846. end
  847. end
  848. end
  849. end
  850. end)
  851.  
  852. local tool = Instance.new("Tool", User.Backpack)
  853. tool.GripUp = Vector3.new(0,1.4,0)
  854. tool.Name = "Wieldeth"
  855.  
  856. local handle = Instance.new("Part", tool)
  857. handle.BrickColor = BrickColor.new("Black")
  858. handle.Size = Vector3.new(1,4,1)
  859. handle.Name = "Handle"
  860. handle.BottomSurface = Enum.SurfaceType.Smooth
  861. handle.TopSurface = Enum.SurfaceType.Smooth
  862.  
  863. local ball = Instance.new("Part", tool)
  864. ball.BrickColor = BrickColor.new("Bright red")
  865. ball.BottomSurface = Enum.SurfaceType.Smooth
  866. ball.TopSurface = Enum.SurfaceType.Smooth
  867. ball.Shape = "Ball"
  868. ball.Name = "Ball"
  869. ball.Size = Vector3.new(1,1,1)
  870.  
  871. local cm = Instance.new("CylinderMesh", handle)
  872. cm.Scale = Vector3.new(0.5,1,0.5)
  873. local sm1 = Instance.new("SpecialMesh", ball)
  874. sm1.MeshType = "Sphere"
  875. local pl = Instance.new("PointLight", handle)
  876.  
  877. local function lasso(point)
  878. if (User.Character ~= nil) then
  879. local hum = User.Character:findFirstChild("Humanoid")
  880. if (hum ~= nil) then
  881. local spl = Instance.new("SelectionPointLasso", User.Character)
  882. spl.Humanoid = hum
  883. spl.Point = point
  884. delay(1, function() spl:Remove() end)
  885. end
  886. end
  887. end
  888.  
  889. tool.Equipped:connect(function(mouse)
  890. local weld = Instance.new("Weld", handle)
  891. weld.Part0 = handle
  892. weld.Part1 = ball
  893. weld.C0 = CFrame.new(0,((handle.Size.Y/2+ball.Size.Y)-1),0)
  894.  
  895. mouse.KeyDown:connect(function(key)
  896. key = key:lower()
  897. if (key == "p") then
  898. platforming = not platforming
  899. elseif (key == "h") then
  900. hovermode = not hovermode
  901. end
  902. end)
  903.  
  904. mouse.Button1Down:connect(function()
  905. local target = mouse.Target
  906. local t = User.Character:findFirstChild("Torso")
  907. if (target ~= nil and target.Parent ~= nil and t ~= nil) then
  908. lasso(mouse.Hit.p)
  909. if (mode:lower() == "dissolve" and target.Size.X<20 and target.Size.Y<20 and target.Size.Z<20) then
  910. target.BrickColor = BrickColor.new("Black")
  911. for i=1,10 do
  912. target.Transparency = i*0.1
  913. wait(0.05)
  914. end
  915. target:Remove()
  916. end
  917. if (mode:lower() == "ff" and target.Parent.ClassName == "Model" and target.Parent:findFirstChild("Humanoid")) then
  918. Instance.new("ForceField", target.Parent)
  919. end
  920. if (mode:lower() == "unff" and target.Parent.ClassName == "Model" and target.Parent:findFirstChild("Humanoid")) then
  921. for _,v in pairs(target.Parent:GetChildren()) do
  922. if (v.ClassName == "ForceField") then
  923. v:Remove()
  924. end
  925. end
  926. elseif (mode:lower() == "kill" and target.Parent.ClassName == "Model") then
  927. target.Parent:BreakJoints()
  928. elseif (mode:lower() == "kick" and target.Parent.ClassName == "Model") then
  929. local p = plrs:GetPlayerFromCharacter(target.Parent)
  930. if (p ~= nil) then
  931. p:Remove()
  932. end
  933. elseif (mode:lower() == "god" and target.Parent:findFirstChild("Humanoid") ~= nil) then
  934. target.Parent.Humanoid.MaxHealth = math.huge
  935. elseif (mode:lower() == "mortal" and target.Parent:findFirstChild("Humanoid") ~= nil) then
  936. target.Parent.Humanoid.MaxHealth = 100
  937. elseif (mode:lower() == "run" and target.Parent:findFirstChild("Humanoid") ~= nil) then
  938. target.Parent.Humanoid.WalkSpeed = 75
  939. elseif (mode:lower() == "walk" and target.Parent:findFirstChild("Humanoid") ~= nil) then
  940. target.Parent.Humanoid.WalkSpeed = 16
  941. elseif (mode:lower() == "jump" and target.Parent:findFirstChild("Humanoid") ~= nil) then
  942. target.Parent.Humanoid.Jump = true
  943. elseif (mode:lower() == "sit" and target.Parent:findFirstChild("Humanoid") ~= nil) then
  944. target.Parent.Humanoid.Sit = true
  945. elseif (mode:lower() == "teleport" and (t.Position-mouse.Hit.p).magnitude < 125) then
  946. User.Character:MoveTo(mouse.Hit.p)
  947. elseif (mode:lower() == "delete" and target.Size.X<20 and target.Size.Y<20 and target.Size.Z<20) then
  948. target:Remove()
  949. elseif (mode:lower() == "freeze") then
  950. if (target.Parent:findFirstChild("Torso")) then
  951. target.Parent.Torso.Anchored = true
  952. target.Parent.Torso.Reflectance = 0.8
  953. else
  954. target.Anchored = true
  955. target.Reflectance = 0.8
  956. end
  957. elseif (mode:lower() == "thaw") then
  958. if (target.Parent:findFirstChild("Torso")) then
  959. target.Parent.Torso.Anchored = false
  960. target.Parent.Torso.Reflectance = 0
  961. else
  962. target.Anchored = false
  963. target.Reflectance = 0
  964. end
  965. elseif (mode:lower() == "explode") then
  966. Instance.new("Explosion", ws).Position = mouse.Hit.p
  967. elseif (mode:lower() == "antigrav") then
  968. local t = target.Parent:findFirstChild("Torso")
  969. if (t ~= nil) then
  970. local bf = t:findFirstChild("BodyForce") or Instance.new("BodyForce", t)
  971. bf.force = Vector3.new(0,0,0)
  972. for _,v in pairs(target.Parent:GetChildren()) do
  973. if (v.ClassName == "Hat") then
  974. bf.force = bf.force + Vector3.new(0,v:GetMass()*80,0)
  975. end
  976. end
  977. else
  978. local bf = t:findFirstChild("BodyForce") or Instance.new("BodyForce", target)
  979. bf.force = Vector3.new(0,2500,0)
  980. end
  981. elseif (mode:lower() == "grav") then
  982. local t = target.Parent:findFirstChild("Torso")
  983. if (t ~= nil) then
  984. for _,v in pairs(t:GetChildren()) do
  985. if (v.ClassName == "BodyForce") then
  986. v:Remove()
  987. end
  988. end
  989. else
  990. for _,v in pairs(target:GetChildren()) do
  991. if (v.ClassName == "BodyForce") then
  992. v:Remove()
  993. end
  994. end
  995. end
  996. elseif (mode:lower() == "color") then
  997. if (input.Text == "random") then
  998. target.BrickColor = BrickColor.random()
  999. else
  1000. pcall(function()
  1001. target.BrickColor = BrickColor.new(input.Text)
  1002. end)
  1003. end
  1004. elseif (mode:lower() == "respawn" and target.Parent.ClassName == "Model" and target.Parent:findFirstChild("Humanoid")) then
  1005. respawn(target.Parent)
  1006. elseif (mode:lower() == "invisible" and target.Parent.ClassName == "Model") then
  1007. for _,v in pairs(target.Parent:GetChildren()) do
  1008. if (v.ClassName == "Part") then v.Transparency=1
  1009. elseif (v.ClassName == "Hat" and v:findFirstChild("Handle")) then v.Handle.Transparency=1 end
  1010. if (v:findFirstChild("face")) then v.face.Transparency=1 end
  1011. end
  1012. elseif (mode:lower() == "visible" and target.Parent.ClassName == "Model") then
  1013. for _,v in pairs(target.Parent:GetChildren()) do
  1014. if (v.Name ~= "HumanoidRootPart") then
  1015. if (v.ClassName == "Part") then v.Transparency=0
  1016. elseif (v.ClassName == "Hat" and v:findFirstChild("Handle")) then v.Handle.Transparency=0 end
  1017. if (v:findFirstChild("face")) then v.face.Transparency=0 end
  1018. end
  1019. end
  1020. elseif (mode:lower() == "punish" and target.Parent.ClassName == "Model" and target.Parent:findFirstChild("Humanoid")) then
  1021. target.Parent.Parent = game.Lighting
  1022. elseif (mode:lower() == "m" and target.Parent.ClassName == "Model") then
  1023. local p = plrs:GetPlayerFromCharacter(target.Parent)
  1024. local parts = explode(", ", input.Text)
  1025. if (p ~= nil and parts[1] ~= nil and parts[2] ~= nil) then
  1026. if (p:findFirstChild("PlayerGui") and isnumber(parts[1]) == false and isnumber(parts[2]) == true) then
  1027. local m = Instance.new("Message", p.PlayerGui)
  1028. m.Text = parts[1]
  1029. if (parts[2] < 20) then
  1030. delay(parts[2], function() m:remove() end)
  1031. else
  1032. delay(20, function() m:remove() end)
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
  1038. end)
  1039. end)
  1040.  
  1041. ball.Touched:connect(function(hit)
  1042. if (hit.Parent ~= nil) then
  1043. if (hit.Parent ~= User.Character and hitDeb == false) then
  1044. if ((hit.Size.X < 20) and (hit.Size.Y < 20) and (hit.Size.Z < 20)) then
  1045. hitDeb = true
  1046. hit.BrickColor = BrickColor.new("Really black")
  1047. for i = 1,10 do
  1048. hit.Transparency = i*0.1
  1049. wait(0.05)
  1050. end
  1051. hit:Remove()
  1052. wait(0.1)
  1053. hitDeb = false
  1054. end
  1055. end
  1056. end
  1057. end)
  1058.  
  1059. local _a = 1
  1060. local _b = 1
  1061. local _c = false
  1062. local disable = false
  1063. local char = plrs.LocalPlayer.Character
  1064.  
  1065. if (char ~= nil) then
  1066. local h = char:findFirstChild("Humanoid")
  1067. if (h ~= nil) then
  1068. h.Died:connect(function()
  1069. disable = true
  1070. renderstep_con:disconnect()
  1071. char.Parent = Game:GetService("Lighting")
  1072. char:MakeJoints()
  1073. h.MaxHealth = 100
  1074. h.Health = h.MaxHealth
  1075. wait(0.1)
  1076. char.Parent = ws
  1077. h.Health = h.MaxHealth
  1078. char:MakeJoints()
  1079. end)
  1080. end
  1081. end
  1082.  
  1083. renderstep_con = Game:GetService("RunService").RenderStepped:connect(function()
  1084. if (ball.Parent ~= nil and sm1.Parent ~= nil) or disable == false then
  1085. caption.Text = "Current Mode: " ..mode.. "."
  1086.  
  1087. if (platforming == true) then
  1088. platform.BrickColor = BrickColor.new("White")
  1089. platform.Parent = ws
  1090. platform.Anchored = true
  1091. platform.Locked = true
  1092. platform.FormFactor = "Plate"
  1093. platform.Size = Vector3.new(10,0.4,10)
  1094. platform.BottomSurface = 1
  1095. platform.TopSurface = 1
  1096.  
  1097. if (platform:findFirstChild("CylinderMesh") == nil) then
  1098. Instance.new("CylinderMesh", platform)
  1099. end
  1100.  
  1101. if (char ~= nil) then
  1102. local t = char:findFirstChild("Torso")
  1103. local hum = char:findFirstChild("Humanoid")
  1104. if (t ~= nil) then
  1105. if hovermode == false then
  1106. platform.CFrame = CFrame.new(t.Position.X, t.Position.Y - 3.5, t.Position.Z)
  1107. else
  1108. platform.CFrame = CFrame.new(t.Position.X, platform.Position.Y, t.Position.Z)
  1109. end
  1110. end
  1111.  
  1112. if (hum ~= nil) then
  1113. hum.Health = hum.MaxHealth
  1114. end
  1115. end
  1116. else
  1117. platform.Parent = Game:GetService("Lighting")
  1118. end
  1119.  
  1120. --[[ Create a variable-based timer to add some fading effects. ]]
  1121. if (_a < 2) then
  1122. _a = _a + 1
  1123. else
  1124. _a = 0
  1125. _b = _b + 0.1
  1126. if (c == false) then
  1127. ball.Transparency = ball.Transparency + 0.1
  1128. ball.Reflectance = ball.Reflectance + 0.1
  1129. sm1.Scale = sm1.Scale + Vector3.new(0.05,0.05,0.05)
  1130. platform.Transparency = platform.Transparency + 0.06
  1131. platform.Reflectance = platform.Reflectance + 0.06
  1132. else
  1133. ball.Transparency = ball.Transparency - 0.1
  1134. ball.Reflectance = ball.Reflectance - 0.1
  1135. sm1.Scale = sm1.Scale - Vector3.new(0.05,0.05,0.05)
  1136. platform.Transparency = platform.Transparency - 0.06
  1137. platform.Reflectance = platform.Reflectance + 0.06
  1138. end
  1139. end
  1140.  
  1141. if (_b > 1) then
  1142. _b = 0
  1143. if (c == false) then c = true else c = false end
  1144. elseif (_b < 0) then
  1145. _b = 0
  1146. if (c == false) then c = true else c = false end
  1147. end
  1148. end
  1149. end)
  1150.  
  1151. end --[[ End of BEGININTERFACE function ]]
  1152.  
  1153. BEGININTERFACE()
  1154. plrs.LocalPlayer.CharacterAdded:connect(BEGININTERFACE)
  1155.  
  1156. --[[plrs.PlayerAdded:connect(function(newplayer)
  1157. if (newplayer.Name == user_name) then
  1158. BEGININTERFACE()
  1159. newplayer.CharacterAdded:connect(BEGININTERFACE)
  1160. end
  1161. end)]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement