TheStarGlitcher007

Fun SCript >:}

May 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.78 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. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  88. local funcw = Instance.new("Weld")
  89. funcw.Name = zName
  90. funcw.Parent = zParent
  91. funcw.Part0 = zPart0
  92. funcw.Part1 = zPart1
  93. if (zCoco == true) then
  94. funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  95. else
  96. funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  97. end
  98. return funcw
  99. end
  100. function fun(n1, n2)
  101. pcall(function()
  102. t1 = game.Players[n1].Character.Torso
  103. t2 = game.Players[n2].Character.Torso
  104. t2.Parent.Humanoid.PlatformStand = true
  105. t1["Left Shoulder"]:Remove()
  106. ls1 = Instance.new("Weld")
  107. ls1.Parent = t1
  108. ls1.Part0 = t1
  109. ls1.Part1 = t1.Parent["Left Arm"]
  110. ls1.C0 = CFrame.new(-1.5,0,0)
  111. ls1.Name = "Left Shoulder"
  112. t1["Right Shoulder"]:Remove()
  113. rs1 = Instance.new("Weld")
  114. rs1.Parent = t1
  115. rs1.Part0 = t1
  116. rs1.Part1 = t1.Parent["Right Arm"]
  117. rs1.C0 = CFrame.new(1.5,0,0)
  118. rs1.Name = "Right Shoulder"
  119. t2["Left Shoulder"]:Remove()
  120. ls2 = Instance.new("Weld")
  121. ls2.Parent = t2
  122. ls2.Part0 = t2
  123. ls2.Part1 = t2.Parent["Left Arm"]
  124. ls2.C0 = CFrame.new(-1.5,0,0)
  125. ls2.Name = "Left Shoulder"
  126. t2["Right Shoulder"]:Remove()
  127. rs2 = Instance.new("Weld")
  128. rs2.Parent = t2
  129. rs2.Part0 = t2
  130. rs2.Part1 = t2.Parent["Right Arm"]
  131. rs2.C0 = CFrame.new(1.5,0,0)
  132. rs2.Name = "Right Shoulder"
  133. t2["Left Hip"]:Remove()
  134. lh2 = Instance.new("Weld")
  135. lh2.Parent = t2
  136. lh2.Part0 = t2
  137. lh2.Part1 = t2.Parent["Left Leg"]
  138. lh2.C0 = CFrame.new(-0.5,-2,0)
  139. lh2.Name = "Left Hip"
  140. t2["Right Hip"]:Remove()
  141. rh2 = Instance.new("Weld")
  142. rh2.Parent = t2
  143. rh2.Part0 = t2
  144. rh2.Part1 = t2.Parent["Right Leg"]
  145. rh2.C0 = CFrame.new(0.5,-2,0)
  146. rh2.Name = "Right Hip"
  147. local d = Instance.new("Part")
  148. d.TopSurface = 0
  149. d.BottomSurface = 0
  150. d.CanCollide = false
  151. d.BrickColor = BrickColor.new("Medium stone grey")
  152. d.Shape = "Ball"
  153. d.Parent = t1
  154. d.Size = Vector3.new(1,1,1)
  155. local dm = Instance.new("SpecialMesh")
  156. dm.MeshType = "Sphere"
  157. dm.Parent = d
  158. dm.Scale = Vector3.new(0.4,0.4,0.4)
  159. fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  160. d2 = d:Clone()
  161. d2.Parent = t1
  162. fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  163. local c = Instance.new("Part")
  164. c.TopSurface = 0
  165. c.BottomSurface = 0
  166. c.CanCollide = false
  167. c.BrickColor = BrickColor.new("Pastel brown")
  168. c.Parent = t1
  169. c.formFactor = "Custom"
  170. c.Size = Vector3.new(0.4,1.3,0.4)
  171. cm = Instance.new("CylinderMesh")
  172. cm.Parent = c
  173. a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  174. c2 = d:Clone()
  175. c2.BrickColor = BrickColor.new("Medium stone grey")
  176. c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  177. c2.Parent = t1
  178. fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  179. local bl = Instance.new("Part")
  180. bl.TopSurface = 0
  181. bl.BottomSurface = 0
  182. bl.CanCollide = false
  183. bl.BrickColor = BrickColor.new("Pastel brown")
  184. bl.Shape = "Ball"
  185. bl.Parent = t2
  186. bl.Size = Vector3.new(1,1,1)
  187. local dm = Instance.new("SpecialMesh")
  188. dm.MeshType = "Sphere"
  189. dm.Parent = bl
  190. dm.Scale = Vector3.new(1.2,1.2,1.2)
  191. fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  192. local br = Instance.new("Part")
  193. br.TopSurface = 0
  194. br.BottomSurface = 0
  195. br.CanCollide = false
  196. br.BrickColor = BrickColor.new("Pastel brown")
  197. br.Shape = "Ball"
  198. br.Parent = t2
  199. br.Size = Vector3.new(1,1,1)
  200. local dm = Instance.new("SpecialMesh")
  201. dm.MeshType = "Sphere"
  202. dm.Parent = br
  203. dm.Scale = Vector3.new(1.2,1.2,1.2)
  204. fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  205. local bln = Instance.new("Part")
  206. bln.TopSurface = 0
  207. bln.BottomSurface = 0
  208. bln.CanCollide = false
  209. bln.Shape = "Ball"
  210. bln.Parent = t2
  211. bln.Size = Vector3.new(1,1,1)
  212. local dm = Instance.new("SpecialMesh")
  213. dm.MeshType = "Sphere"
  214. dm.Parent = bln
  215. dm.Scale = Vector3.new(0.2,0.2,0.2)
  216. fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  217. local brn = Instance.new("Part")
  218. brn.TopSurface = 0
  219. brn.BottomSurface = 0
  220. brn.CanCollide = false
  221. brn.Shape = "Ball"
  222. brn.Parent = t2
  223. brn.Size = Vector3.new(1,1,1)
  224. local dm = Instance.new("SpecialMesh")
  225. dm.MeshType = "Sphere"
  226. dm.Parent = brn
  227. dm.Scale = Vector3.new(0.2,0.2,0.2)
  228. fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  229. lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  230. rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  231. ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
  232. rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
  233. ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
  234. rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
  235. if t1:findFirstChild("weldx") ~= nil then
  236. t1.weldx:Remove()
  237. end
  238. we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  239. n = t2.Neck
  240. n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  241. end)
  242. coroutine.resume(coroutine.create(function()
  243. while wait() do
  244. for i = 1,6 do
  245. we.C1 = we.C1 * CFrame.new(0,-0.3,0)
  246. wait()
  247. end
  248.  
  249. for i = 1,6 do
  250. we.C1 = we.C1 * CFrame.new(0,0.3,0)
  251. wait()
  252. end
  253. end
  254. end))
  255. end
  256. fun("vfgvjhgjhy", "wbaty12345")
Add Comment
Please, Sign In to add comment