gray_alli28codesrbx

crack neck fe

Aug 7th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 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 = owner
  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 h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85. -- Objects
  86.  
  87. local ScreenGui = Instance.new("ScreenGui")
  88. local Frame = Instance.new("Frame")
  89. local TextLabel = Instance.new("TextLabel")
  90. local TextBox = Instance.new("TextBox")
  91. local TextButton = Instance.new("TextButton")
  92.  
  93. -- Properties
  94.  
  95. ScreenGui.Parent = owner.PlayerGui
  96.  
  97. Frame.Parent = ScreenGui
  98. Frame.Active = true
  99. Frame.BackgroundColor3 = Color3.new(0.278431, 0.831373, 1)
  100. Frame.BackgroundTransparency = 0.30000001192093
  101. Frame.Draggable = true
  102. Frame.Position = UDim2.new(0.634092569, 0, 0.542553186, 0)
  103. Frame.Size = UDim2.new(0.224099919, 0, 0.338652492, 0)
  104.  
  105. TextLabel.Parent = Frame
  106. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  107. TextLabel.BackgroundTransparency = 1
  108. TextLabel.Size = UDim2.new(1, 0, 0, 60)
  109. TextLabel.Font = Enum.Font.SourceSansLight
  110. TextLabel.Text = "LemonHead's Breakneck Gui"
  111. TextLabel.TextScaled = true
  112. TextLabel.TextSize = 14
  113. TextLabel.TextWrapped = true
  114.  
  115. TextBox.Parent = Frame
  116. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  117. TextBox.Position = UDim2.new(0, 0, 0.349999994, 0)
  118. TextBox.Size = UDim2.new(1, 0, 0, 70)
  119. TextBox.Font = Enum.Font.SourceSans
  120. TextBox.Text = "Player name here, or \"all\", or \"me\"."
  121. TextBox.TextScaled = true
  122. TextBox.TextSize = 14
  123. TextBox.TextWrapped = true
  124.  
  125. TextButton.Parent = Frame
  126. TextButton.BackgroundColor3 = Color3.new(0.137255, 1, 0.380392)
  127. TextButton.BackgroundTransparency = 0.30000001192093
  128. TextButton.Position = UDim2.new(0, 0, 0.730000019, 0)
  129. TextButton.Size = UDim2.new(1, 0, 0, 50)
  130. TextButton.Font = Enum.Font.SourceSans
  131. TextButton.Text = "Go!"
  132. TextButton.TextScaled = true
  133. TextButton.TextSize = 14
  134. TextButton.TextWrapped = true
  135. TextButton.MouseButton1Click:connect(function()
  136. if TextBox.Text ~= "Player name here, or \"all\", or \"me\"." then
  137. if TextBox.Text ~= "all" then
  138. if TextBox.Text ~= "me" then
  139. plr = game.Players[TextBox.Text]
  140. char = plr.Character
  141. HeadTorsoWeld = Instance.new("Weld", char.Head)
  142. HeadTorsoWeld.Part0 = char.Head
  143. HeadTorsoWeld.Part1 = char.Torso
  144.  
  145. HeadTorsoWeld.C0 = CFrame.new(0, -0.5, 1)*CFrame.Angles(-1.5, 0, 0)
  146. Oof = Instance.new("ParticleEmitter", char.Head)
  147. Oof.Color = ColorSequence.new(Color3.fromRGB(216, 0, 3))
  148. Oof.Size = NumberSequence.new(0.2)
  149. Oof.Texture = "rbxasset://textures/particles/sparkles_main.dds" --Just the sparkle texture; change if you want.
  150. Oof.Acceleration = Vector3.new(0, -20, 0)
  151. Oof.EmissionDirection = "Bottom"
  152. Oof.Lifetime = NumberRange.new(5, 10)
  153. Oof.Rate = 200.000
  154. Oof.Speed = NumberRange.new(10)
  155. else
  156. plr = owner
  157. char = plr.Character
  158. HeadTorsoWeld = Instance.new("Weld", char.Head)
  159. HeadTorsoWeld.Part0 = char.Head
  160. HeadTorsoWeld.Part1 = char.Torso
  161.  
  162. HeadTorsoWeld.C0 = CFrame.new(0, -0.5, 1)*CFrame.Angles(-1.5, 0, 0)
  163. Oof = Instance.new("ParticleEmitter", char.Head)
  164. Oof.Color = ColorSequence.new(Color3.fromRGB(216, 0, 3))
  165. Oof.Size = NumberSequence.new(0.2)
  166. Oof.Texture = "rbxasset://textures/particles/sparkles_main.dds" --Just the sparkle texture; change if you want.
  167. Oof.Acceleration = Vector3.new(0, -20, 0)
  168. Oof.EmissionDirection = "Bottom"
  169. Oof.Lifetime = NumberRange.new(5, 10)
  170. Oof.Rate = 200.000
  171. Oof.Speed = NumberRange.new(10)
  172. end
  173. else
  174. for index, child in pairs(game.Players:GetChildren()) do
  175. plr = child
  176. char = plr.Character
  177. HeadTorsoWeld = Instance.new("Weld", char.Head)
  178. HeadTorsoWeld.Part0 = char.Head
  179. HeadTorsoWeld.Part1 = char.Torso
  180.  
  181. HeadTorsoWeld.C0 = CFrame.new(0, -0.5, 1)*CFrame.Angles(-1.5, 0, 0)
  182. Oof = Instance.new("ParticleEmitter", char.Head)
  183. Oof.Color = ColorSequence.new(Color3.fromRGB(216, 0, 3))
  184. Oof.Size = NumberSequence.new(0.2)
  185. Oof.Texture = "rbxasset://textures/particles/sparkles_main.dds" --Just the sparkle texture; change if you want.
  186. Oof.Acceleration = Vector3.new(0, -20, 0)
  187. Oof.EmissionDirection = "Bottom"
  188. Oof.Lifetime = NumberRange.new(5, 10)
  189. Oof.Rate = 200.000
  190. Oof.Speed = NumberRange.new(10)
  191. end
  192. end
  193. end
  194. end)
Add Comment
Please, Sign In to add comment