Advertisement
PiterMosskva_TV

idk

Feb 2nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.03 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. --By Rufus14
  88. mouse = owner
  89. gun = owner
  90. gun.Size = Vector3.new(0.5, 1, 2)
  91. gun.CanCollide = false
  92. gun:BreakJoints()
  93. weld = Instance.new("Weld", gun)
  94. weld.Part0 = owner
  95. weld.Part1 = gun
  96. weld.C0 = weld.C0 * CFrame.new(-0.2,-1.7,-0.25) * CFrame.Angles(0,1.6,-1.53)
  97. mesh = Instance.new("SpecialMesh", gun)
  98. mesh.MeshId = "rbxassetid://623102664"
  99. mesh.TextureId = "rbxassetid://623102879"
  100. mesh.Scale = Vector3.new(0.01,0.01,0.01)
  101. local rhandweld = owner
  102. rhandweld.Part0 = owner
  103. rhandweld.Part1 = owner
  104. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  105. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  106. shooting = false
  107. for i = 1,2 do
  108. wait()
  109. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  110. end
  111. for i = 1,2 do
  112. wait()
  113. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  114. end
  115. for i = 1,7 do
  116. wait()
  117. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.17)
  118. end
  119. for i = 1,2 do
  120. wait()
  121. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  122. end
  123. for i = 1,2 do
  124. wait()
  125. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  126. end
  127. function shoot()
  128. if not shooting then
  129. shooting = true
  130. local shotsound = Instance.new("Sound", gun)
  131. shotsound.EmitterSize = 1
  132. shotsound.SoundId = "rbxassetid://139593133"
  133. shotsound.Volume = 3
  134. shotsound:Play()
  135. local missle = Instance.new("Part", workspace)
  136. missle.Size = Vector3.new(0.05,0.05,0.05)
  137. missle.BrickColor = BrickColor.new("New Yeller")
  138. missle:BreakJoints()
  139. missle.CFrame = gun.CFrame
  140. local velo = Instance.new("BodyVelocity", missle)
  141. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  142. velo.Velocity = mouse.Hit.lookVector * 190
  143. for i = 1,2 do
  144. weld.C0 = weld.C0 * CFrame.Angles(0,0,0.14)
  145. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.14)
  146. end
  147. for i = 1,2 do
  148. wait()
  149. weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  150. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  151. end
  152. local function kill(part)
  153. local hum = part.Parent:findFirstChild("Humanoid")
  154. local torso = part.Parent:findFirstChild("Torso")
  155. local larm = part.Parent:findFirstChild("Left Arm")
  156. local rarm = part.Parent:findFirstChild("Right Arm")
  157. local lleg = part.Parent:findFirstChild("Left Leg")
  158. local rleg = part.Parent:findFirstChild("Right Leg")
  159. missle:destroy()
  160. if hum ~= nil then
  161. if torso then
  162. hum.Health = hum.Health - math.random(25,68)
  163. local shotsound1 = Instance.new("Sound", torso)
  164. shotsound1:Play()
  165. shotsound1.EmitterSize = 1
  166. shotsound1.SoundId = "rbxassetid://144884872"
  167. shotsound1.Volume = 2
  168. shotsound1:Play()
  169. local shotsound1 = Instance.new("Sound", torso)
  170. shotsound1:Play()
  171. shotsound1.EmitterSize = 1
  172. shotsound1.SoundId = "rbxassetid://175272131"
  173. shotsound1.Volume = 2
  174. shotsound1:Play()
  175. using = false
  176. hit = Instance.new("Sound", torso)
  177. hit.SoundId = "rbxassetid://260430060"
  178. hit.Volume = 5
  179. hit1 = Instance.new("Sound", torso)
  180. hit1.SoundId = "rbxassetid://138087186"
  181. hit1.Volume = 5
  182. hit2 = Instance.new("Sound", torso)
  183. hit2.SoundId = "rbxassetid://131237241"
  184. hit2.Volume = 5
  185. hit3 = Instance.new("Sound", torso)
  186. hit3.SoundId = "rbxassetid://278062209"
  187. hit3.Volume = 5
  188. hit3.TimePosition = 0.33
  189. print("You killed "..hum.Parent.Name)
  190. hum.PlatformStand = true
  191. ----------
  192. local lhip = torso:findFirstChild("Left Hip")
  193. if lhip then
  194. ---
  195. torso["Left Hip"]:destroy()
  196. local head = owner
  197. local glue = Instance.new("Glue", torso)
  198. glue.Part0 = torso
  199. glue.Part1 = torso.Parent["Left Leg"]
  200. glue.Name = "Left leg"
  201. local collider = Instance.new("Part", torso.Parent["Left Leg"])
  202. collider.Position = Vector3.new(0,999,0)
  203. collider.Size = Vector3.new(1.7, 1, 1)
  204. collider.Shape = "Cylinder"
  205. local weld = Instance.new("Weld", collider)
  206. weld.Part0 = torso.Parent["Left Leg"]
  207. weld.Part1 = collider
  208. weld.C0 = CFrame.Angles(0, 0, 80)
  209. collider.TopSurface = "Smooth"
  210. collider.BottomSurface = "Smooth"
  211. collider.formFactor = "Symmetric"
  212. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  213. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  214. collider.Transparency = 1
  215. end
  216. local rhip = torso:findFirstChild("Right Hip")
  217. if rhip then
  218. ------------
  219. torso["Right Hip"]:destroy()
  220. local glue1 = Instance.new("Glue", torso)
  221. glue1.Part0 = torso
  222. glue1.Part1 = torso.Parent["Right Leg"]
  223. glue1.Name = "Right leg"
  224. local collider1 = Instance.new("Part", torso.Parent["Right Leg"])
  225. collider1.Position = Vector3.new(0,9999,0)
  226. collider1.Size = Vector3.new(1.7, 1, 1)
  227. collider1.Shape = "Cylinder"
  228. local weld1 = Instance.new("Weld", collider1)
  229. weld1.Part0 = torso.Parent["Right Leg"]
  230. weld1.Part1 = collider1
  231. weld1.C0 = CFrame.Angles(0, 0, 80)
  232. collider1.TopSurface = "Smooth"
  233. collider1.BottomSurface = "Smooth"
  234. collider1.formFactor = "Symmetric"
  235. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  236. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  237. collider1.Transparency = 1
  238. end
  239. ------------
  240. local rshoulder = torso:findFirstChild("Right Shoulder")
  241. if rshoulder then
  242. torso["Right Shoulder"]:destroy()
  243. local glue11 = Instance.new("Glue", torso)
  244. glue11.Part0 = torso
  245. glue11.Part1 = torso.Parent["Right Arm"]
  246. glue11.Name = "Right shoulder"
  247. local collider11 = Instance.new("Part", torso.Parent["Right Arm"])
  248. collider11.Position = Vector3.new(0,9999,0)
  249. collider11.Size = Vector3.new(1.8,1,1)
  250. collider11.Shape = "Cylinder"
  251. local weld11 = Instance.new("Weld", collider11)
  252. weld11.Part0 = torso.Parent["Right Arm"]
  253. weld11.Part1 = collider11
  254. weld11.C0 = CFrame.Angles(0, 0, 80)
  255. collider11.TopSurface = "Smooth"
  256. collider11.BottomSurface = "Smooth"
  257. collider11.formFactor = "Symmetric"
  258. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  259. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  260. collider11.Transparency = 1
  261. end
  262. ------------
  263. local lshoulder = torso:findFirstChild("Left Shoulder")
  264. if lshoulder then
  265. torso["Left Shoulder"]:destroy()
  266. local glue111 = Instance.new("Glue", torso)
  267. glue111.Part0 = torso
  268. glue111.Part1 = torso.Parent["Left Arm"]
  269. glue111.Name = "Left shoulder"
  270. local collider111 = Instance.new("Part", torso.Parent["Left Arm"])
  271. collider111.Position = Vector3.new(0,9999,0)
  272. collider111.Size = Vector3.new(1.8,1,1)
  273. collider111.Shape = "Cylinder"
  274. local weld111 = Instance.new("Weld", collider111)
  275. weld111.Part0 = torso.Parent["Left Arm"]
  276. weld111.Part1 = collider111
  277. weld111.C0 = CFrame.Angles(0, 0, 80)
  278. collider111.TopSurface = "Smooth"
  279. collider111.BottomSurface = "Smooth"
  280. collider111.formFactor = "Symmetric"
  281. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  282. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  283. collider111.Transparency = 1
  284. end
  285. -----------------
  286. local sensoring = Instance.new("Part", torso)
  287. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  288. sensoring.CanCollide = false
  289. sensoring.Position = torso.Position
  290. local welder = Instance.new("Weld", sensoring)
  291. welder.Part0 = torso
  292. welder.Part1 = sensoring
  293. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  294. sensoring.Transparency = 1
  295. -----------------
  296. local sensoring1 = Instance.new("Part", torso)
  297. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  298. sensoring1.CanCollide = false
  299. sensoring1.Position = torso.Position
  300. local welder1 = Instance.new("Weld", sensoring)
  301. welder1.Part0 = torso
  302. welder1.Part1 = sensoring1
  303. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  304. sensoring1.Transparency = 1
  305. local function touch()
  306. if not using then
  307. using = true
  308. local Math = math.random(1,4)
  309. if Math == 1 then
  310. hit:Play()
  311. end
  312. if Math == 2 then
  313. hit1:Play()
  314. end
  315. if Math == 3 then
  316. hit2:Play()
  317. end
  318. if Math == 4 then
  319. hit3:Play()
  320. end
  321. wait(0.1)
  322. using = false
  323. end
  324. end
  325. sensoring.Touched:connect(touch)
  326. sensoring1.Touched:connect(touch)
  327. while true do
  328. wait(0.3)
  329. hum.PlatformStand = true
  330. end
  331.  
  332. --di ent
  333. end
  334. end
  335. end
  336. missle.Touched:connect(kill)
  337. for i = 1,2 do
  338. wait()
  339. weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  340. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  341. end
  342. shooting = false
  343. wait(3)
  344. shotsound:destroy()
  345. end
  346. end
  347. mouse.Button1Down:connect(shoot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement