Advertisement
Kittdy2

Untitled

Jan 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.65 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. t = Instance.new("Tool")
  90. t.Parent = owner.Backpack
  91. t.Name = "Hologram"
  92.  
  93. local handlee = Instance.new("Part")
  94. handlee.Name = "Handle"
  95. handlee.Parent = t
  96. handlee.formFactor = "Plate"
  97. handlee.BrickColor = BrickColor.new("Mid grey")
  98. handlee.Size = Vector3.new(1, 1, 2)
  99. handlee.TopSurface = "Smooth"
  100. handlee.BottomSurface = "Smooth"
  101. handlee.Transparency = 0
  102. handlee.Reflectance = 0
  103. -----------------------------------------mesh
  104. m = Instance.new("BlockMesh")
  105. m.Parent = handlee
  106. m.Scale = Vector3.new(0.9, 0.2, 0.9)
  107. -----------------------------------------Brick2
  108. local LL = Instance.new("Part")
  109. LL.Name = "Part"
  110. LL.Parent = t
  111. LL.formFactor = "Plate"
  112. LL.BrickColor = BrickColor.new("Bright blue")
  113. LL.Size = Vector3.new(1, 1, 1)
  114. LL.TopSurface = "Smooth"
  115. LL.BottomSurface = "Smooth"
  116. LL.Transparency = 0.4
  117. LL.Reflectance = 0
  118. LL.CanCollide = false
  119. -----------------------------------------mesh
  120. m = Instance.new("BlockMesh")
  121. m.Parent = LL
  122. m.Scale = Vector3.new(0.2, 0.4, 0.2)
  123. -----------------------------------------weld
  124. w2 = Instance.new("Weld")
  125. w2.Parent = handlee
  126. w2.Part0 = LL
  127. w2.Part1 = handlee
  128. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.1, -0.2, 0.5)
  129. local b = Instance.new("Part")
  130. b.Name = "Part"
  131. b.Parent = t
  132. b.formFactor = "Plate"
  133. b.BrickColor = BrickColor.new("Bright blue")
  134. b.Size = Vector3.new(1, 1, 1)
  135. b.TopSurface = "Smooth"
  136. b.BottomSurface = "Smooth"
  137. b.Transparency = 0.4
  138. b.Reflectance = 0
  139. b.CanCollide = false
  140. -----------------------------------------mesh
  141. m = Instance.new("CylinderMesh")
  142. m.Parent = b
  143. m.Scale = Vector3.new(0.5, 0.05, 0.5)
  144. -----------------------------------------weld
  145. w2 = Instance.new("Weld")
  146. w2.Parent = handlee
  147. w2.Part0 = b
  148. w2.Part1 = handlee
  149. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -0.1, 0.5)
  150. -----------------------------------------Brick2
  151. local RL = Instance.new("Part")
  152. RL.Name = "Part"
  153. RL.Parent = t
  154. RL.formFactor = "Plate"
  155. RL.BrickColor = BrickColor.new("Bright blue")
  156. RL.Size = Vector3.new(1, 1, 1)
  157. RL.TopSurface = "Smooth"
  158. RL.BottomSurface = "Smooth"
  159. RL.Transparency = 0.4
  160. RL.Reflectance = 0
  161. RL.CanCollide = false
  162. -----------------------------------------mesh
  163. m = Instance.new("BlockMesh")
  164. m.Parent = RL
  165. m.Scale = Vector3.new(0.2, 0.4, 0.2)
  166. -----------------------------------------weld
  167. w2 = Instance.new("Weld")
  168. w2.Parent = handlee
  169. w2.Part0 = RL
  170. w2.Part1 = handlee
  171. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.1, -0.2, 0.5)
  172. -----------------------------------------Brick2
  173. local T = Instance.new("Part")
  174. T.Name = "Part"
  175. T.Parent = t
  176. T.formFactor = "Plate"
  177. T.BrickColor = BrickColor.new("Bright blue")
  178. T.Size = Vector3.new(1, 1, 1)
  179. T.TopSurface = "Smooth"
  180. T.BottomSurface = "Smooth"
  181. T.Transparency = 0.4
  182. T.Reflectance = 0
  183. T.CanCollide = false
  184. -----------------------------------------mesh
  185. m = Instance.new("BlockMesh")
  186. m.Parent = T
  187. m.Scale = Vector3.new(0.4, 0.4, 0.2)
  188. -----------------------------------------weld
  189. w2 = Instance.new("Weld")
  190. w2.Parent = handlee
  191. w2.Part0 = T
  192. w2.Part1 = handlee
  193. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -0.6, 0.5)
  194. -----------------------------------------Brick2
  195. local RA = Instance.new("Part")
  196. RA.Name = "Part"
  197. RA.Parent = t
  198. RA.formFactor = "Plate"
  199. RA.BrickColor = BrickColor.new("Bright blue")
  200. RA.Size = Vector3.new(1, 1, 1)
  201. RA.TopSurface = "Smooth"
  202. RA.BottomSurface = "Smooth"
  203. RA.Transparency = 0.4
  204. RA.Reflectance = 0
  205. RA.CanCollide = false
  206. -----------------------------------------mesh
  207. m = Instance.new("BlockMesh")
  208. m.Parent = RA
  209. m.Scale = Vector3.new(0.2, 0.4, 0.2)
  210. -----------------------------------------weld
  211. w2 = Instance.new("Weld")
  212. w2.Parent = handlee
  213. w2.Part0 = RA
  214. w2.Part1 = handlee
  215. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.3, -0.6, 0.5)
  216. -----------------------------------------Brick2
  217. local LA = Instance.new("Part")
  218. LA.Name = "Part"
  219. LA.Parent = t
  220. LA.formFactor = "Plate"
  221. LA.BrickColor = BrickColor.new("Bright blue")
  222. LA.Size = Vector3.new(1, 1, 1)
  223. LA.TopSurface = "Smooth"
  224. LA.BottomSurface = "Smooth"
  225. LA.Transparency = 0.4
  226. LA.Reflectance = 0
  227. LA.CanCollide = false
  228. -----------------------------------------mesh
  229. m = Instance.new("BlockMesh")
  230. m.Parent = LA
  231. m.Scale = Vector3.new(0.2, 0.4, 0.2)
  232. -----------------------------------------weld
  233. w2 = Instance.new("Weld")
  234. w2.Parent = handlee
  235. w2.Part0 = LA
  236. w2.Part1 = handlee
  237. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.3, -0.6, 0.5)
  238. -----------------------------------------Brick2
  239. local Head = Instance.new("Part")
  240. Head.Name = "Part"
  241. Head.Parent = t
  242. Head.formFactor = "Plate"
  243. Head.BrickColor = BrickColor.new("Bright blue")
  244. Head.Size = Vector3.new(1, 1, 1)
  245. Head.TopSurface = "Smooth"
  246. Head.BottomSurface = "Smooth"
  247. Head.Transparency = 0.4
  248. Head.Reflectance = 0
  249. Head.CanCollide = false
  250. -----------------------------------------mesh
  251. m = Instance.new("SpecialMesh")
  252. m.Parent = Head
  253. m.Scale = Vector3.new(0.2, 0.22, 0.2)
  254. -----------------------------------------weld
  255. w2 = Instance.new("Weld")
  256. w2.Parent = handlee
  257. w2.Part0 = Head
  258. w2.Part1 = handlee
  259. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -0.9, 0.5)
  260. -----------------------------------------Brick2
  261. local R = Instance.new("Part")
  262. R.Name = "Part"
  263. R.Parent = t
  264. R.formFactor = "Plate"
  265. R.BrickColor = BrickColor.new("Bright blue")
  266. R.Size = Vector3.new(1, 1, 1)
  267. R.TopSurface = "Smooth"
  268. R.BottomSurface = "Smooth"
  269. R.Transparency = 1
  270. R.Reflectance = 0
  271. R.CanCollide = false
  272. -----------------------------------------mesh
  273. m = Instance.new("BlockMesh")
  274. m.Parent = R
  275. m.Scale = Vector3.new(0.2, 0.2, 0.4)
  276. -----------------------------------------weld
  277. w2 = Instance.new("Weld")
  278. w2.Parent = handlee
  279. w2.Part0 = R
  280. w2.Part1 = handlee
  281. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.3, -0.7, 0.6)
  282. --Gui------------------------------------------------------------------------------------------------------------
  283. vip = "Gaminhyena"
  284. plyr = game.Players:findFirstChild(vip)
  285. pg = plyr:findFirstChild("PlayerGui")
  286.  
  287. sc = Instance.new("ScreenGui")
  288. sc.Name = "Holo gui"
  289. sc.Parent = pg
  290.  
  291. tx = Instance.new("TextButton")
  292. tx.BackgroundTransparency = 0.3
  293. tx.Name = "Text - Reset"
  294. tx.Parent = sc
  295. tx.Position = UDim2.new(0, 300, 0, 64)
  296. tx.Size = UDim2.new(0, 99, 0, 20)
  297. tx.Text = "Turn off"
  298.  
  299. tx.MouseButton1Click:connect(function()
  300. human = plyr.Character:findFirstChild("Humanoid")
  301. if human ~= nil then
  302. R.Transparency = 1
  303. Head.Transparency = 0.6
  304. T.Transparency = 0.6
  305. RA.Transparency = 0.6
  306. LA.Transparency = 0.6
  307. LL.Transparency = 0.6
  308. RL.Transparency = 0.6
  309. wait(1)
  310. Head.Transparency = 0.9
  311. T.Transparency = 0.9
  312. RA.Transparency = 0.9
  313. LA.Transparency = 0.9
  314. LL.Transparency = 0.9
  315. RL.Transparency = 0.9
  316. wait(1)
  317. Head.Transparency = 1
  318. T.Transparency = 1
  319. RA.Transparency = 1
  320. LA.Transparency = 1
  321. LL.Transparency = 1
  322. RL.Transparency = 1
  323. wait(1)
  324. end
  325. end)
  326.  
  327. tx = Instance.new("TextButton")
  328. tx.BackgroundTransparency = 0.3
  329. tx.Name = "Text - Reset"
  330. tx.Parent = sc
  331. tx.Position = UDim2.new(0, 300, 0, 84)
  332. tx.Size = UDim2.new(0, 99, 0, 20)
  333. tx.Text = "Turn on"
  334.  
  335. tx.MouseButton1Click:connect(function()
  336. human = plyr.Character:findFirstChild("Humanoid")
  337. if human ~= nil then
  338. R.Transparency = 1
  339. Head.Transparency = 0.9
  340. T.Transparency = 0.9
  341. RA.Transparency = 0.9
  342. LA.Transparency = 0.9
  343. LL.Transparency = 0.9
  344. RL.Transparency = 0.9
  345. wait(1)
  346. Head.Transparency = 0.6
  347. T.Transparency = 0.6
  348. RA.Transparency = 0.6
  349. LA.Transparency = 0.6
  350. LL.Transparency = 0.6
  351. RL.Transparency = 0.6
  352. wait(1)
  353. Head.Transparency = 0.4
  354. T.Transparency = 0.4
  355. RA.Transparency = 0.4
  356. LA.Transparency = 0.4
  357. LL.Transparency = 0.4
  358. RL.Transparency = 0.4
  359. wait(1)
  360. end
  361. end)
  362.  
  363. tx = Instance.new("TextButton")
  364. tx.BackgroundTransparency = 0.3
  365. tx.Name = "Text - Reset"
  366. tx.Parent = sc
  367. tx.Position = UDim2.new(0, 300, 0, 104)
  368. tx.Size = UDim2.new(0, 99, 0, 20)
  369. tx.Text = "Point"
  370.  
  371. tx.MouseButton1Click:connect(function()
  372. human = plyr.Character:findFirstChild("Humanoid")
  373. if human ~= nil then
  374. RA.Transparency = 1
  375. R.Transparency = 0.4
  376. end
  377. end)
  378.  
  379. tx = Instance.new("TextButton")
  380. tx.BackgroundTransparency = 0.3
  381. tx.Name = "Text - Reset"
  382. tx.Parent = sc
  383. tx.Position = UDim2.new(0, 300, 0, 124)
  384. tx.Size = UDim2.new(0, 99, 0, 20)
  385. tx.Text = "Normal"
  386.  
  387. tx.MouseButton1Click:connect(function()
  388. human = plyr.Character:findFirstChild("Humanoid")
  389. if human ~= nil then
  390. RA.Transparency = 0.4
  391. R.Transparency = 1
  392. end
  393. end)
  394.  
  395. plyr.Chatted:connect(function(msg)
  396. if msg == "removed" then
  397. sc:Remove()
  398. end
  399. end)
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407. script.Parent = owner.Character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement