Advertisement
ManlyMemeScripter

Chicken script

Feb 1st, 2018
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. game.Players.THECREATOR200291.Character.Humanoid.MaxHealth = 99999999999
  85.  
  86. game.Players.THECREATOR200291.Character.Humanoid.Health = 99999999999
  87.  
  88. --{{Made by Strazos}}--
  89.  
  90. local p = game.Players.THECREATOR200291
  91. local char = p.Character
  92. local larm = char["Left Arm"]
  93. local rarm = char["Right Arm"]
  94. local lleg = char["Left Leg"]
  95. local rleg = char["Right Leg"]
  96. local hed = char.Head
  97. local torso = char.Torso
  98. local hum = char.Humanoid
  99. local weld = Instance.new("Weld",torso)
  100. weld.Part0 = torso
  101.  
  102. larm.Transparency = 1
  103. rarm.Transparency = 1
  104. lleg.Transparency = 1
  105. rleg.Transparency = 1
  106. hed.Transparency = 1
  107. torso.Transparency = 1
  108.  
  109.  
  110. local train = Instance.new("Part",torso)
  111. train.Anchored = true
  112. train.CanCollide = false
  113. train.Size = Vector3.new(5,5,5)
  114. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  115. weld.Part1 = train
  116. weld.C1 = CFrame.new(0,-0,0) * CFrame.Angles(50,math.rad(0),0)
  117. train.Anchored = false
  118. local TrainMesh = Instance.new("SpecialMesh",train)
  119. TrainMesh.MeshType = Enum.MeshType.FileMesh
  120. TrainMesh.Scale = Vector3.new(2, 2, 2)
  121. TrainMesh.MeshId = "rbxassetid://1195479250"
  122. TrainMesh.TextureId = "rbxassetid://1195479264"
  123.  
  124. hum.WalkSpeed = 130;
  125.  
  126.  
  127. for i,v in pairs(char:GetChildren()) do
  128. if v:IsA("Part") then
  129. v.Transparency = 1;
  130. elseif v:IsA("Hat") then
  131. v:Destroy()
  132. elseif v:IsA("Model") then
  133. v:Destroy()
  134. end
  135. end
  136.  
  137.  
  138. local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 999; return s; end
  139. train.Touched:connect(function(p)
  140. if p.Parent then
  141. if p.Parent:IsA("Model") then
  142. if game.Players:FindFirstChild(p.Parent.Name) then
  143. if p.Parent.Name ~= game.Players.THECREATOR200291.Name then
  144. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  145. local Whistle = SFX(149638875)
  146. Whistle:Play()
  147. end
  148. end
  149. end
  150. end
  151. end)
  152.  
  153. local Music = SFX(0)
  154. Music.Looped = true;
  155. wait(1)
  156. Music:Play();
  157.  
  158. local particleemitter = Instance.new("ParticleEmitter", torso)
  159. particleemitter.Texture = "http://www.roblox.com/asset/?id=0"
  160. particleemitter.VelocitySpread = 180
  161. particleemitter.Lifetime = NumberRange.new(5)
  162. particleemitter.Speed = NumberRange.new(6)
  163. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)})
  164. particleemitter.RotSpeed = NumberRange.new(-55, 55)
  165. particleemitter.Rate = 150
  166. particleemitter.Rotation = NumberRange.new(-55, 55)
  167. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)})
  168. particleemitter.LightEmission = 0
  169. particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here
  170.  
  171.  
  172.  
  173. local plr = game.Players.THECREATOR200291
  174. local chr = plr.Character
  175. local maus = plr:GetMouse()
  176. local PGui=plr.PlayerGui
  177. local lleg = chr["Left Leg"]
  178. local rleg = chr["Right Leg"]
  179. local larm = chr["Left Arm"]
  180. local rarm = chr["Right Arm"]
  181. local hed = chr.Head
  182. local rutprt = chr.HumanoidRootPart
  183. local torso = chr.Torso
  184. local pseudohead=hed:Clone()
  185. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  186. pseudohead.Name='PseudoHead'
  187. pseudohead.Parent=chr.Head
  188. local pseudoweld=Instance.new('Weld',torso)
  189. pseudoweld.Part0=hed
  190. pseudoweld.Name='PseudoHeadWeld'
  191. pseudoweld.Part1=pseudohead
  192. hed.Transparency=1
  193. for i,x in pairs(chr:GetChildren()) do
  194. if x:IsA'HHat' then x:destroy'' end end
  195. for i,x in pairs(chr:GetChildren()) do
  196. for a,v in pairs(x:GetChildren()) do
  197. if v:IsA'CharacterMesh' then v:destroy''
  198. end
  199. end
  200. end
  201.  
  202. -- Objects
  203.  
  204. local ScreenGui = Instance.new("ScreenGui")
  205. local TextButton = Instance.new("TextButton")
  206.  
  207. -- Properties
  208.  
  209. ScreenGui.Parent = game.Players.THECREATOR200291.PlayerGui
  210.  
  211. TextButton.Parent = ScreenGui
  212. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  213. TextButton.Size = UDim2.new(0, 200, 0, 50)
  214. TextButton.Font = Enum.Font.SourceSans
  215. TextButton.FontSize = Enum.FontSize.Size14
  216. TextButton.Text = "chicken!"
  217. TextButton.TextSize = 14
  218.  
  219. --[[Function/s being made!]]
  220. function PlayMusic(ID)
  221. for i, v in pairs (game.Workspace:GetChildren()) do
  222. if v:IsA("Sound") then
  223. end
  224. end
  225. local music = Instance.new("Sound")
  226. local asset = "rbxassetid://"
  227. music.SoundId = asset .. ID
  228. music.Parent = workspace
  229. music.Volume = 999
  230. music.Looped = false
  231. music:Play()
  232. end
  233. --[[Connecting functions!]]
  234. TextButton.MouseButton1Down:connect(function()
  235. PlayMusic(738087836)
  236. end)
  237.  
  238. --This is a localscript; you will need to have access to using scripts wherever you want this
  239. p = game:GetService('Players').THECREATOR200291 if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement