Advertisement
waconline

I dont know

Feb 12th, 2020
158
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.  
  10. ----------------------------------------------------------------------------------------
  11. --https://github.com/Mokiros/roblox-FE-compatibility
  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,game,owner = owner,game
  14. local RealPlayer = Player
  15. do
  16. print("FE Compatibility code V2 by Mokiros")
  17. local RealPlayer = RealPlayer
  18. script.Parent = RealPlayer.Character
  19.  
  20. --Fake event to make stuff like Mouse.KeyDown work
  21. local Disconnect_Function = function(this)
  22. this[1].Functions[this[2]] = nil
  23. end
  24. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  25. local FakeEvent_Metatable = {__index={
  26. Connect = function(this,f)
  27. local i = tostring(math.random(0,10000))
  28. while this.Functions[i] do
  29. i = tostring(math.random(0,10000))
  30. end
  31. this.Functions[i] = f
  32. return setmetatable({this,i},Disconnect_Metatable)
  33. end
  34. }}
  35. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  36. local function fakeEvent()
  37. return setmetatable({Functions={}},FakeEvent_Metatable)
  38. end
  39.  
  40. --Creating fake input objects with fake variables
  41. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  42. FakeMouse.keyUp = FakeMouse.KeyUp
  43. FakeMouse.keyDown = FakeMouse.KeyDown
  44. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  45. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  46. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  47. end}
  48. --Merged 2 functions into one by checking amount of arguments
  49. CAS.UnbindAction = CAS.BindAction
  50.  
  51. --This function will trigger the events that have been :Connect()'ed
  52. local function TriggerEvent(self,ev,...)
  53. for _,f in pairs(self[ev].Functions) do
  54. f(...)
  55. end
  56. end
  57. FakeMouse.TriggerEvent = TriggerEvent
  58. UIS.TriggerEvent = TriggerEvent
  59.  
  60. --Client communication
  61. local Event = Instance.new("RemoteEvent")
  62. Event.Name = "UserInput_Event"
  63. Event.OnServerEvent:Connect(function(plr,io)
  64. if plr~=RealPlayer then return end
  65. FakeMouse.Target = io.Target
  66. FakeMouse.Hit = io.Hit
  67. if not io.isMouse then
  68. local b = io.UserInputState == Enum.UserInputState.Begin
  69. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  70. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  71. end
  72. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  73. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  74. end
  75. for _,t in pairs(CAS.Actions) do
  76. for _,k in pairs(t.Keys) do
  77. if k==io.KeyCode then
  78. t.Function(t.Name,io.UserInputState,io)
  79. end
  80. end
  81. end
  82. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  83. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  84. end
  85. end)
  86. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  87. local Mouse = owner:GetMouse()
  88. local UIS = game:GetService("UserInputService")
  89. local input = function(io,RobloxHandled)
  90. if RobloxHandled then return end
  91. --Since InputObject is a client-side instance, we create and pass table instead
  92. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  93. end
  94. UIS.InputBegan:Connect(input)
  95. UIS.InputEnded:Connect(input)
  96.  
  97. local h,t
  98. --Give the server mouse data every second frame, but only if the values changed
  99. --If player is not moving their mouse, client won't fire events
  100. local HB = game:GetService("RunService").Heartbeat
  101. while true do
  102. if h~=Mouse.Hit or t~=Mouse.Target then
  103. h,t=Mouse.Hit,Mouse.Target
  104. Event:FireServer({isMouse=true,Target=t,Hit=h})
  105. end
  106. --Wait 2 frames
  107. for i=1,2 do
  108. HB:Wait()
  109. end
  110. end]==],script)
  111.  
  112. ----Sandboxed game object that allows the usage of client-side methods and services
  113. --Real game object
  114. local RealGame = game
  115.  
  116. --Metatable for fake service
  117. local FakeService_Metatable = {
  118. __index = function(self,k)
  119. local s = rawget(self,"_RealService")
  120. if s then
  121. return typeof(s[k])=="function"
  122. and function(_,...)return s[k](s,...)end or s[k]
  123. end
  124. end,
  125. __newindex = function(self,k,v)
  126. local s = rawget(self,"_RealService")
  127. if s then s[k]=v end
  128. end
  129. }
  130. local function FakeService(t,RealService)
  131. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  132. return setmetatable(t,FakeService_Metatable)
  133. end
  134.  
  135. --Fake game object
  136. local FakeGame = {
  137. GetService = function(self,s)
  138. return rawget(self,s) or RealGame:GetService(s)
  139. end,
  140. Players = FakeService({
  141. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  142. },"Players"),
  143. UserInputService = FakeService(UIS,"UserInputService"),
  144. ContextActionService = FakeService(CAS,"ContextActionService"),
  145. RunService = FakeService({
  146. _btrs = {},
  147. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  148. BindToRenderStep = function(self,name,_,fun)
  149. self._btrs[name] = self.Heartbeat:Connect(fun)
  150. end,
  151. UnbindFromRenderStep = function(self,name)
  152. self._btrs[name]:Disconnect()
  153. end,
  154. },"RunService")
  155. }
  156. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  157. FakeGame.service = FakeGame.GetService
  158. FakeService(FakeGame,game)
  159. --Changing owner to fake player object to support owner:GetMouse()
  160. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  161. end
  162. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  163. local funcw = Instance.new("Weld")
  164. funcw.Name = zName
  165. funcw.Parent = zParent
  166. funcw.Part0 = zPart0
  167. funcw.Part1 = zPart1
  168. if (zCoco == true) then
  169. funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  170. else
  171. funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  172. end
  173. return funcw
  174. end
  175. function fun(n1, n2)
  176. pcall(function()
  177. t1 = game.Players[n1].Character.Torso
  178. t2 = game.Players[n2].Character.Torso
  179. t2.Parent.Humanoid.PlatformStand = true
  180. t1["Left Shoulder"]:Remove()
  181. ls1 = Instance.new("Weld")
  182. ls1.Parent = t1
  183. ls1.Part0 = t1
  184. ls1.Part1 = t1.Parent["Left Arm"]
  185. ls1.C0 = CFrame.new(-1.5,0,0)
  186. ls1.Name = "Left Shoulder"
  187. t1["Right Shoulder"]:Remove()
  188. rs1 = Instance.new("Weld")
  189. rs1.Parent = t1
  190. rs1.Part0 = t1
  191. rs1.Part1 = t1.Parent["Right Arm"]
  192. rs1.C0 = CFrame.new(1.5,0,0)
  193. rs1.Name = "Right Shoulder"
  194. t2["Left Shoulder"]:Remove()
  195. ls2 = Instance.new("Weld")
  196. ls2.Parent = t2
  197. ls2.Part0 = t2
  198. ls2.Part1 = t2.Parent["Left Arm"]
  199. ls2.C0 = CFrame.new(-1.5,0,0)
  200. ls2.Name = "Left Shoulder"
  201. t2["Right Shoulder"]:Remove()
  202. rs2 = Instance.new("Weld")
  203. rs2.Parent = t2
  204. rs2.Part0 = t2
  205. rs2.Part1 = t2.Parent["Right Arm"]
  206. rs2.C0 = CFrame.new(1.5,0,0)
  207. rs2.Name = "Right Shoulder"
  208. t2["Left Hip"]:Remove()
  209. lh2 = Instance.new("Weld")
  210. lh2.Parent = t2
  211. lh2.Part0 = t2
  212. lh2.Part1 = t2.Parent["Left Leg"]
  213. lh2.C0 = CFrame.new(-0.5,-2,0)
  214. lh2.Name = "Left Hip"
  215. t2["Right Hip"]:Remove()
  216. rh2 = Instance.new("Weld")
  217. rh2.Parent = t2
  218. rh2.Part0 = t2
  219. rh2.Part1 = t2.Parent["Right Leg"]
  220. rh2.C0 = CFrame.new(0.5,-2,0)
  221. rh2.Name = "Right Hip"
  222. local d = Instance.new("Part")
  223. d.TopSurface = 0
  224. d.BottomSurface = 0
  225. d.CanCollide = false
  226. d.BrickColor = BrickColor.new("Medium stone grey")
  227. d.Shape = "Ball"
  228. d.Parent = t1
  229. d.Size = Vector3.new(1,1,1)
  230. local dm = Instance.new("SpecialMesh")
  231. dm.MeshType = "Sphere"
  232. dm.Parent = d
  233. dm.Scale = Vector3.new(0.4,0.4,0.4)
  234. fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  235. d2 = d:Clone()
  236. d2.Parent = t1
  237. fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  238. local c = Instance.new("Part")
  239. c.TopSurface = 0
  240. c.BottomSurface = 0
  241. c.CanCollide = false
  242. c.BrickColor = BrickColor.new("Pastel brown")
  243. c.Parent = t1
  244. c.formFactor = "Custom"
  245. c.Size = Vector3.new(0.4,1.3,0.4)
  246. cm = Instance.new("CylinderMesh")
  247. cm.Parent = c
  248. a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  249. c2 = d:Clone()
  250. c2.BrickColor = BrickColor.new("Medium stone grey")
  251. c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  252. c2.Parent = t1
  253. fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  254. local bl = Instance.new("Part")
  255. bl.TopSurface = 0
  256. bl.BottomSurface = 0
  257. bl.CanCollide = false
  258. bl.BrickColor = BrickColor.new("Pastel brown")
  259. bl.Shape = "Ball"
  260. bl.Parent = t2
  261. bl.Size = Vector3.new(1,1,1)
  262. local dm = Instance.new("SpecialMesh")
  263. dm.MeshType = "Sphere"
  264. dm.Parent = bl
  265. dm.Scale = Vector3.new(1.2,1.2,1.2)
  266. fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  267. local br = Instance.new("Part")
  268. br.TopSurface = 0
  269. br.BottomSurface = 0
  270. br.CanCollide = false
  271. br.BrickColor = BrickColor.new("Pastel brown")
  272. br.Shape = "Ball"
  273. br.Parent = t2
  274. br.Size = Vector3.new(1,1,1)
  275. local dm = Instance.new("SpecialMesh")
  276. dm.MeshType = "Sphere"
  277. dm.Parent = br
  278. dm.Scale = Vector3.new(1.2,1.2,1.2)
  279. fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  280. local bln = Instance.new("Part")
  281. bln.TopSurface = 0
  282. bln.BottomSurface = 0
  283. bln.CanCollide = false
  284. bln.Shape = "Ball"
  285. bln.Parent = t2
  286. bln.Size = Vector3.new(1,1,1)
  287. local dm = Instance.new("SpecialMesh")
  288. dm.MeshType = "Sphere"
  289. dm.Parent = bln
  290. dm.Scale = Vector3.new(0.2,0.2,0.2)
  291. fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  292. local brn = Instance.new("Part")
  293. brn.TopSurface = 0
  294. brn.BottomSurface = 0
  295. brn.CanCollide = false
  296. brn.Shape = "Ball"
  297. brn.Parent = t2
  298. brn.Size = Vector3.new(1,1,1)
  299. local dm = Instance.new("SpecialMesh")
  300. dm.MeshType = "Sphere"
  301. dm.Parent = brn
  302. dm.Scale = Vector3.new(0.2,0.2,0.2)
  303. fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  304. lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  305. rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  306. ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
  307. rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
  308. ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
  309. rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
  310. if t1:findFirstChild("weldx") ~= nil then
  311. t1.weldx:Remove()
  312. end
  313. we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  314. n = t2.Neck
  315. n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  316. end)
  317. coroutine.resume(coroutine.create(function()
  318. while wait() do
  319. for i = 1,6 do
  320. we.C1 = we.C1 * CFrame.new(0,-0.3,0)
  321. wait()
  322. end
  323.  
  324. for i = 1,6 do
  325. we.C1 = we.C1 * CFrame.new(0,0.3,0)
  326. wait()
  327. end
  328. end
  329. end))
  330. end
  331. fun("robloku", "moloboy")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement