Advertisement
Animescapetower

Converter/FE Visualizer Remote for Void script builder

Nov 27th, 2020
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.88 KB | None | 0 0
  1. local convert = {}
  2. local FuncPbL = Instance.new("RemoteFunction")
  3. FuncPbL.Name = "Pbl"
  4. FuncPbL.Parent = NLS([[
  5. local Function = script.Pbl
  6. if Function ~= nil then
  7. Function.OnClientInvoke = function(Sound)
  8. return Sound.PlaybackLoudness
  9. end
  10. end
  11. ]], owner.Character)
  12. local Funcmouse = Instance.new("RemoteFunction")
  13. Funcmouse.Name = "mouse"
  14. Funcmouse.Parent = NLS([[
  15. local Function = script.mouse
  16. local uis = game:GetService("UserInputService")
  17. if Function ~= nil then
  18. Function.OnClientInvoke = function(type_, key, func)
  19. if type_ == "hit" then
  20. return owner:GetMouse().Hit
  21. end
  22.  
  23. if type_ == "target" then
  24. return owner:GetMouse().Target
  25. end
  26.  
  27. if type_ == "x" then
  28. return owner:GetMouse().x
  29. end
  30.  
  31. if type_ == "y" then
  32. return owner:GetMouse().y
  33. end
  34.  
  35. if type_ == "ViewSizeX" then
  36. return owner:GetMouse().ViewSizeX
  37. end
  38.  
  39. if type_ == "ViewSizeY" then
  40. return owner:GetMouse().ViewSizeY
  41. end
  42.  
  43. if type_ == "UnitRay" then
  44. return owner:GetMouse().UnitRay
  45. end
  46.  
  47. if type_ == "TargetFilter" then
  48. return owner:GetMouse().TargetFilter
  49. end
  50.  
  51. if type_ == "TargetSurface" then
  52. return owner:GetMouse().TargetSurface
  53. end
  54.  
  55. if type_ == "origin" then
  56. return owner:GetMouse().Origin
  57. end
  58.  
  59. if type_ == "Idle" then
  60. local currentcframe = owner:GetMouse().Hit
  61. while wait() do
  62. local t = 0
  63. if t > 1 then
  64. if owner:GetMouse().Hit == currentcframe then
  65. wait(0.5)
  66. spawn(function()
  67. func()
  68. end)
  69. end
  70. end
  71. t = t + ((0.001 + math.sin(0.1)) + 0.01 + 0.055)
  72. end
  73. end
  74.  
  75. if type_ == "Move" then
  76. local currenthit = owner:GetMouse().Hit
  77. while wait() do
  78. if owner:GetMouse().Hit ~= currenthit then
  79. wait(0.5)
  80. spawn(function()
  81. func()
  82. end)
  83. currenthit = owner:GetMouse().Hit
  84. end
  85. end
  86. end
  87.  
  88. if type_ == "KeyDown" then
  89. local function onInputBegan(input, gameProcessed)
  90. if input.UserInputType == Enum.UserInputType.Keyboard then
  91. if input.KeyCode == key then
  92. func()
  93. end
  94. end
  95. end
  96.  
  97. uis.InputBegan:Connect(onInputBegan)
  98. end
  99. if type_ == "KeyUp" then
  100. local function onInputEnd(input, gameProcessed)
  101. if input.UserInputType == Enum.UserInputType.Keyboard then
  102. if input.KeyCode == key then
  103. func()
  104. end
  105. end
  106. end
  107.  
  108. uis.InputEnded:Connect(onInputBegan)
  109. end
  110. if type_ == "Button1Down" then
  111. local function InputBegan(input, gameProcessed)
  112. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  113. func()
  114. end
  115. end
  116.  
  117. uis.InputBegan:Connect(InputBegan)
  118. end
  119. if type_ == "Button1Up" then
  120. local function InputEnd(input, gameProcessed)
  121. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  122. func()
  123. end
  124. end
  125.  
  126. uis.InputEnd:Connect(InputBegan)
  127. end
  128. if type_ == "Button2Down" then
  129. local function InputBegan(input, gameProcessed)
  130. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  131. func()
  132. end
  133. end
  134.  
  135. uis.InputBegan:Connect(InputBegan)
  136. end
  137. if type_ == "Button2Up" then
  138. local function InputEnd(input, gameProcessed)
  139. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  140. func()
  141. end
  142. end
  143.  
  144. uis.InputEnd:Connect(InputBegan)
  145. end
  146.  
  147. if type_ == "WheelBackward" then
  148. return owner:GetMouse().WheelBackward(func)
  149. end
  150.  
  151. if type_ == "WheelForward" then
  152. return owner:GetMouse().WheelForward(func)
  153. end
  154. end
  155. end
  156. ]], owner.Character)local Character = owner.Character
  157. convert.PlaybackLoudness = function(sound)
  158. return FuncPbL:InvokeClient(owner, sound)
  159. end
  160.  
  161. Mouse = {}
  162. Mouse.Hit = function(func)
  163. return Funcmouse:InvokeClient(owner, "hit", "", func)
  164. end
  165.  
  166. Mouse.Target = function(func)
  167. return Funcmouse:InvokeClient(owner, "target", "", func)
  168. end
  169.  
  170. Mouse.Origin = function(func)
  171. return Funcmouse:InvokeClient(owner, "origin", "", func)
  172. end
  173.  
  174. Mouse.X = function(func)
  175. return Funcmouse:InvokeClient(owner, "x", "", func)
  176. end
  177.  
  178. Mouse.Y = function(func)
  179. return Funcmouse:InvokeClient(owner, "y", "", func)
  180. end
  181.  
  182. Mouse.ViewSizeX = function(func)
  183. return Funcmouse:InvokeClient(owner, "ViewSizeX", "", func)
  184. end
  185.  
  186. Mouse.ViewSizeY = function(func)
  187. return Funcmouse:InvokeClient(owner, "ViewSizeX", "", func)
  188. end
  189.  
  190. Mouse.UnitRay = function(func)
  191. return Funcmouse:InvokeClient(owner, "UnitRay", "", func)
  192. end
  193.  
  194. Mouse.TargetFilter = function(func)
  195. return Funcmouse:InvokeClient(owner, "TargetFilter", "", func)
  196. end
  197.  
  198. Mouse.TargetSurface = function(func)
  199. return Funcmouse:InvokeClient(owner, "TargetSurface", "", func)
  200. end
  201.  
  202. Mouse.Idle = function(func)
  203. return Funcmouse:InvokeClient(owner, "Idle", "", func)
  204. end
  205.  
  206. Mouse.Move = function(func)
  207. return Funcmouse:InvokeClient(owner, "Move", "", func)
  208. end
  209.  
  210. Mouse.KeyDown= function(key,func)
  211. if typeof(key) ~= nil then
  212. if Enum.KeyCode[key] ~= nil then
  213. return Funcmouse:InvokeClient(owner, "KeyDown", "", func)
  214. end
  215. end
  216. end
  217.  
  218. Mouse.KeyUp= function(key,func)
  219. if typeof(key) ~= nil then
  220. if Enum.KeyCode[key] ~= nil then
  221. return Funcmouse:InvokeClient(owner, "KeyUp", "", func)
  222. end
  223. end
  224. end
  225.  
  226. Mouse.Button1Down = function(func)
  227. return Funcmouse:InvokeClient(owner, "Button1Down", "", func)
  228. end
  229.  
  230. Mouse.Button1Up = function(func)
  231. return Funcmouse:InvokeClient(owner, "Button1Up", "", func)
  232. end
  233.  
  234. Mouse.Button2Down = function(func)
  235. return Funcmouse:InvokeClient(owner, "Button1Down", "", func)
  236. end
  237.  
  238. Mouse.WheelBackward = function(func)
  239. return Funcmouse:InvokeClient(owner, "WheelBackward", "", func)
  240. end
  241.  
  242. Mouse.WheelForward = function(func)
  243. return Funcmouse:InvokeClient(owner, "WheelForward", "", func)
  244. end
  245.  
  246. convert.Create = function(inst, prop)
  247. local i = Instance.new(inst)
  248. for v, k in next, prop do
  249. if i.Parent == nil then
  250. i[v] = k
  251. end
  252. end
  253. if i.Parent ~= nil then
  254. return i
  255. end
  256. end
  257.  
  258. convert.Mouse = Mouse
  259.  
  260. convert.workspace = workspace
  261.  
  262. local Funcuis = Instance.new("RemoteFunction")
  263. Funcuis.Name = "UIS"
  264. Funcuis.Parent = NLS([[
  265. local Function = script.UIS
  266. local UIS = game:GetService("UserInputService")
  267. if Function ~= nil then
  268. Function.OnClientInvoke = function(type_, gamepadnum, userinput, key, func)
  269. if type == "InputBegan" then
  270. local function InputBegan(input, gameProcessed)
  271. if input.UserInputType == userinput then
  272. if input.UserInputType == Enum.UserInputType.KeyBoard then
  273. if input.KeyCode == key then
  274. func()
  275. end
  276. else
  277. func()
  278. end
  279. end
  280. end
  281.  
  282. UIS.InputBegan:Connect(InputBegan)
  283. end
  284.  
  285. if type == "InputEnded" then
  286. local function InputEnded(input, gameProcessed)
  287. if input.UserInputType == userinput then
  288. if input.UserInputType == Enum.UserInputType.KeyBoard then
  289. if input.KeyCode == key then
  290. func()
  291. end
  292. else
  293. func()
  294. end
  295. end
  296. end
  297.  
  298. UIS.InputEnded:Connect(InputBegan)
  299. end
  300.  
  301. if type == "InputChanged" then
  302. local function InputChanged(input, gameProcessed)
  303. if input.UserInputType == userinput then
  304. if input.UserInputType == Enum.UserInputType.KeyBoard then
  305. if input.KeyCode == key then
  306. func()
  307. end
  308. else
  309. func()
  310. end
  311. end
  312. end
  313.  
  314. UIS.InputChanged:Connect(InputBegan)
  315. end
  316.  
  317.  
  318. end
  319. end
  320. ]], owner.Character)
  321.  
  322. -- end of converter and simplifier
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement