Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. ez = 'ez'
  2. while ez == ez do
  3. wait(1)
  4. if not game.Soundscape:FindFirstChild("no") then
  5. gg = Instance.new("Sound")
  6. gg.Name = "no"
  7. gg.SoundId = 'rbxassetid://255288110'
  8. gg.Volume = 1.75
  9. gg.Parent = game.Soundscape
  10. gg:Play()
  11.  
  12. wait (2)
  13. for i,v in pairs(game.Players:GetChildren())
  14. do
  15. no = Instance.new('ScreenGui')
  16. no.Parent = v.PlayerGui
  17. gg = Instance.new("Frame")
  18. gg.Parent = no
  19. gg.BackgroundTransparency = 1
  20. gg.Size = UDim2.new(0,500,0,500)
  21. gg.Position = UDim2.new(.5, -250, .5,-250)
  22. meme = Instance.new("TextLabel")
  23. meme.TextScaled = true
  24. meme.Parent = gg
  25. meme.Text = 'UwU'
  26. meme.BackgroundTransparency= 1
  27. meme.Size = UDim2.new(0,500,0,500)
  28. meme.Position = UDim2.new(.5, -250, .5,-250)
  29. meme.TextColor3 = Color3.new(1,1,1,1)
  30. end
  31.  
  32. wait(2)
  33. no:Destroy()
  34.  
  35.  
  36. script.Parent = nil
  37. end
  38. end
  39. -- This script has been converted to FE by iPxter
  40.  
  41.  
  42. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  43. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  44. do
  45. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  46. script.Parent = Player.Character
  47.  
  48. --RemoteEvent for communicating
  49. local Event = Instance.new("RemoteEvent")
  50. Event.Name = "UserInput_Event"
  51.  
  52. --Fake event to make stuff like Mouse.KeyDown work
  53. local function fakeEvent()
  54. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  55. t.connect = t.Connect
  56. return t
  57. end
  58.  
  59. --Creating fake input objects with fake variables
  60. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  61. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  62. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  63. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  64. end}
  65. --Merged 2 functions into one by checking amount of arguments
  66. CAS.UnbindAction = CAS.BindAction
  67.  
  68. --This function will trigger the events that have been :Connect()'ed
  69. local function te(self,ev,...)
  70. local t = m[ev]
  71. if t and t._fakeEvent and t.Function then
  72. t.Function(...)
  73. end
  74. end
  75. m.TrigEvent = te
  76. UIS.TrigEvent = te
  77.  
  78. Event.OnServerEvent:Connect(function(plr,io)
  79. if plr~=Player then return end
  80. if io.isMouse then
  81. m.Target = io.Target
  82. m.Hit = io.Hit
  83. else
  84. local b = io.UserInputState == Enum.UserInputState.Begin
  85. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  86. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  87. end
  88. for _,t in pairs(CAS.Actions) do
  89. for _,k in pairs(t.Keys) do
  90. if k==io.KeyCode then
  91. t.Function(t.Name,io.UserInputState,io)
  92. end
  93. end
  94. end
  95. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  96. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  97. end
  98. end)
  99. Event.Parent = NLS([==[
  100. local Player = game:GetService("Players").LocalPlayer
  101. local Event = script:WaitForChild("UserInput_Event")
  102.  
  103. local UIS = game:GetService("UserInputService")
  104. local input = function(io,a)
  105. if a then return end
  106. --Since InputObject is a client-side instance, we create and pass table instead
  107. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  108. end
  109. UIS.InputBegan:Connect(input)
  110. UIS.InputEnded:Connect(input)
  111.  
  112. local Mouse = Player:GetMouse()
  113. local h,t
  114. --Give the server mouse data 30 times every second, but only if the values changed
  115. --If player is not moving their mouse, client won't fire events
  116. while wait(1/30) do
  117. if h~=Mouse.Hit or t~=Mouse.Target then
  118. h,t=Mouse.Hit,Mouse.Target
  119. Event:FireServer({isMouse=true,Target=t,Hit=h})
  120. end
  121. end]==],Player.Character)
  122. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  123. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement