Advertisement
zXzGamePROzXz

Sec script

Mar 23rd, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --This ROBLOX Script Is Made By The Respected Owners.
  2. --Script Hidden For Privacy Of The Users. Script Hidden For Privacy Of The Users.
  3. --Username Input Is Required At The Bottom.
  4.  
  5. --Instructions Copy and paste into script builder,
  6. --Put two names into "YOURNAME", and "THE VICTIM" (One of them doesn't have to be you)
  7.  
  8. --This Script Makes two players in your game.. Well.. I think its in the title ;D
  9. -- This script has been converted to FE by iPxter
  10.  
  11.  
  12. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  13. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  14. do
  15. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  16. script.Parent = Player.Character
  17.  
  18. --RemoteEvent for communicating
  19. local Event = Instance.new("RemoteEvent")
  20. Event.Name = "UserInput_Event"
  21.  
  22. --Fake event to make stuff like Mouse.KeyDown work
  23. local function fakeEvent()
  24. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  25. t.connect = t.Connect
  26. return t
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  31. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  32. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  33. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  34. end}
  35. --Merged 2 functions into one by checking amount of arguments
  36. CAS.UnbindAction = CAS.BindAction
  37.  
  38. --This function will trigger the events that have been :Connect()'ed
  39. local function te(self,ev,...)
  40. local t = m[ev]
  41. if t and t._fakeEvent and t.Function then
  42. t.Function(...)
  43. end
  44. end
  45. m.TrigEvent = te
  46. UIS.TrigEvent = te
  47.  
  48. Event.OnServerEvent:Connect(function(plr,io)
  49. if plr~=Player then return end
  50. if io.isMouse then
  51. m.Target = io.Target
  52. m.Hit = io.Hit
  53. else
  54. local b = io.UserInputState == Enum.UserInputState.Begin
  55. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  56. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  57. end
  58. for _,t in pairs(CAS.Actions) do
  59. for _,k in pairs(t.Keys) do
  60. if k==io.KeyCode then
  61. t.Function(t.Name,io.UserInputState,io)
  62. end
  63. end
  64. end
  65. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  66. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  67. end
  68. end)
  69. Event.Parent = NLS([==[
  70. local Player = owner
  71. local Event = script:WaitForChild("UserInput_Event")
  72.  
  73. local UIS = game:GetService("UserInputService")
  74. local input = function(io,a)
  75. if a then return end
  76. --Since InputObject is a client-side instance, we create and pass table instead
  77. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  78. end
  79. UIS.InputBegan:Connect(input)
  80. UIS.InputEnded:Connect(input)
  81.  
  82. local Mouse = Player:GetMouse()
  83. local h,t
  84. --Give the server mouse data 30 times every second, but only if the values changed
  85. --If player is not moving their mouse, client won't fire events
  86. while wait(1/30) do
  87. if h~=Mouse.Hit or t~=Mouse.Target then
  88. h,t=Mouse.Hit,Mouse.Target
  89. Event:FireServer({isMouse=true,Target=t,Hit=h})
  90. end
  91. end]==],Player.Character)
  92. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  93. end
  94.  
  95. ----------------------------------------------------------------------------------------
  96. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  97. local funcw = Instance.new("Weld")
  98. funcw.Name = zName
  99. funcw.Parent = zParent
  100. funcw.Part0 = zPart0
  101. funcw.Part1 = zPart1
  102. if (zCoco == true) then
  103. funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  104. else
  105. funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  106. end
  107. return funcw
  108. end
  109. function fun(n1, n2)
  110. pcall(function()
  111. t1 = game.Players[n1].Character.Torso
  112. t2 = game.Players[n2].Character.Torso
  113. t2.Parent.Humanoid.PlatformStand = true
  114. t1["Left Shoulder"]:Remove()
  115. ls1 = Instance.new("Weld")
  116. ls1.Parent = t1
  117. ls1.Part0 = t1
  118. ls1.Part1 = t1.Parent["Left Arm"]
  119. ls1.C0 = CFrame.new(-1.5,0,0)
  120. ls1.Name = "Left Shoulder"
  121. t1["Right Shoulder"]:Remove()
  122. rs1 = Instance.new("Weld")
  123. rs1.Parent = t1
  124. rs1.Part0 = t1
  125. rs1.Part1 = t1.Parent["Right Arm"]
  126. rs1.C0 = CFrame.new(1.5,0,0)
  127. rs1.Name = "Right Shoulder"
  128. t2["Left Shoulder"]:Remove()
  129. ls2 = Instance.new("Weld")
  130. ls2.Parent = t2
  131. ls2.Part0 = t2
  132. ls2.Part1 = t2.Parent["Left Arm"]
  133. ls2.C0 = CFrame.new(-1.5,0,0)
  134. ls2.Name = "Left Shoulder"
  135. t2["Right Shoulder"]:Remove()
  136. rs2 = Instance.new("Weld")
  137. rs2.Parent = t2
  138. rs2.Part0 = t2
  139. rs2.Part1 = t2.Parent["Right Arm"]
  140. rs2.C0 = CFrame.new(1.5,0,0)
  141. rs2.Name = "Right Shoulder"
  142. t2["Left Hip"]:Remove()
  143. lh2 = Instance.new("Weld")
  144. lh2.Parent = t2
  145. lh2.Part0 = t2
  146. lh2.Part1 = t2.Parent["Left Leg"]
  147. lh2.C0 = CFrame.new(-0.5,-2,0)
  148. lh2.Name = "Left Hip"
  149. t2["Right Hip"]:Remove()
  150. rh2 = Instance.new("Weld")
  151. rh2.Parent = t2
  152. rh2.Part0 = t2
  153. rh2.Part1 = t2.Parent["Right Leg"]
  154. rh2.C0 = CFrame.new(0.5,-2,0)
  155. rh2.Name = "Right Hip"
  156. local d = Instance.new("Part")
  157. d.TopSurface = 0
  158. d.BottomSurface = 0
  159. d.CanCollide = false
  160. d.BrickColor = BrickColor.new("Medium stone grey")
  161. d.Shape = "Ball"
  162. d.Parent = t1
  163. d.Size = Vector3.new(1,1,1)
  164. local dm = Instance.new("SpecialMesh")
  165. dm.MeshType = "Sphere"
  166. dm.Parent = d
  167. dm.Scale = Vector3.new(0.4,0.4,0.4)
  168. fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  169. d2 = d:Clone()
  170. d2.Parent = t1
  171. fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  172. local c = Instance.new("Part")
  173. c.TopSurface = 0
  174. c.BottomSurface = 0
  175. c.CanCollide = false
  176. c.BrickColor = BrickColor.new("Pastel brown")
  177. c.Parent = t1
  178. c.formFactor = "Custom"
  179. c.Size = Vector3.new(0.4,1.3,0.4)
  180. cm = Instance.new("CylinderMesh")
  181. cm.Parent = c
  182. a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  183. c2 = d:Clone()
  184. c2.BrickColor = BrickColor.new("Medium stone grey")
  185. c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  186. c2.Parent = t1
  187. fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  188. local bl = Instance.new("Part")
  189. bl.TopSurface = 0
  190. bl.BottomSurface = 0
  191. bl.CanCollide = false
  192. bl.BrickColor = BrickColor.new("Pastel brown")
  193. bl.Shape = "Ball"
  194. bl.Parent = t2
  195. bl.Size = Vector3.new(1,1,1)
  196. local dm = Instance.new("SpecialMesh")
  197. dm.MeshType = "Sphere"
  198. dm.Parent = bl
  199. dm.Scale = Vector3.new(1.2,1.2,1.2)
  200. fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  201. local br = Instance.new("Part")
  202. br.TopSurface = 0
  203. br.BottomSurface = 0
  204. br.CanCollide = false
  205. br.BrickColor = BrickColor.new("Pastel brown")
  206. br.Shape = "Ball"
  207. br.Parent = t2
  208. br.Size = Vector3.new(1,1,1)
  209. local dm = Instance.new("SpecialMesh")
  210. dm.MeshType = "Sphere"
  211. dm.Parent = br
  212. dm.Scale = Vector3.new(1.2,1.2,1.2)
  213. fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  214. local bln = Instance.new("Part")
  215. bln.TopSurface = 0
  216. bln.BottomSurface = 0
  217. bln.CanCollide = false
  218. bln.Shape = "Ball"
  219. bln.Parent = t2
  220. bln.Size = Vector3.new(1,1,1)
  221. local dm = Instance.new("SpecialMesh")
  222. dm.MeshType = "Sphere"
  223. dm.Parent = bln
  224. dm.Scale = Vector3.new(0.2,0.2,0.2)
  225. fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  226. local brn = Instance.new("Part")
  227. brn.TopSurface = 0
  228. brn.BottomSurface = 0
  229. brn.CanCollide = false
  230. brn.Shape = "Ball"
  231. brn.Parent = t2
  232. brn.Size = Vector3.new(1,1,1)
  233. local dm = Instance.new("SpecialMesh")
  234. dm.MeshType = "Sphere"
  235. dm.Parent = brn
  236. dm.Scale = Vector3.new(0.2,0.2,0.2)
  237. fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  238. lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  239. rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  240. ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
  241. rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
  242. ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
  243. rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
  244. if t1:findFirstChild("weldx") ~= nil then
  245. t1.weldx:Remove()
  246. end
  247. we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  248. n = t2.Neck
  249. n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  250. end)
  251. coroutine.resume(coroutine.create(function()
  252. while wait() do
  253. for i = 1,6 do
  254. we.C1 = we.C1 * CFrame.new(0,-0.3,0)
  255. wait()
  256. end
  257.  
  258. for i = 1,6 do
  259. we.C1 = we.C1 * CFrame.new(0,0.3,0)
  260. wait()
  261. end
  262. end
  263. end))
  264. end
  265. fun("Guest537561", "Dummy")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement