SHOW:
|
|
- or go back to the newest paste.
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 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
5 | ||
6 | ||
7 | ||
8 | function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f) | |
9 | local funcw = Instance.new("Weld") | |
10 | funcw.Name = zName | |
11 | funcw.Parent = zParent | |
12 | funcw.Part0 = zPart0 | |
13 | funcw.Part1 = zPart1 | |
14 | if (zCoco == true) then | |
15 | funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f) | |
16 | - | t1 = game.Players[n1].Character.Torso |
16 | + | |
17 | - | t2 = game.Players[n2].Character.Torso |
17 | + | |
18 | end | |
19 | return funcw | |
20 | end | |
21 | function fun(n1, n2) | |
22 | pcall(function() | |
23 | t1 = owner[n1].Character.Torso | |
24 | t2 = owner[n2].Character.Torso | |
25 | t2.Parent.Humanoid.PlatformStand = true | |
26 | t1["Left Shoulder"]:Remove() | |
27 | ls1 = Instance.new("Weld") | |
28 | ls1.Parent = t1 | |
29 | ls1.Part0 = t1 | |
30 | ls1.Part1 = t1.Parent["Left Arm"] | |
31 | ls1.C0 = CFrame.new(-1.5,0,0) | |
32 | ls1.Name = "Left Shoulder" | |
33 | t1["Right Shoulder"]:Remove() | |
34 | rs1 = Instance.new("Weld") | |
35 | rs1.Parent = t1 | |
36 | rs1.Part0 = t1 | |
37 | rs1.Part1 = t1.Parent["Right Arm"] | |
38 | rs1.C0 = CFrame.new(1.5,0,0) | |
39 | rs1.Name = "Right Shoulder" | |
40 | t2["Left Shoulder"]:Remove() | |
41 | ls2 = Instance.new("Weld") | |
42 | ls2.Parent = t2 | |
43 | ls2.Part0 = t2 | |
44 | ls2.Part1 = t2.Parent["Left Arm"] | |
45 | ls2.C0 = CFrame.new(-1.5,0,0) | |
46 | ls2.Name = "Left Shoulder" | |
47 | t2["Right Shoulder"]:Remove() | |
48 | rs2 = Instance.new("Weld") | |
49 | rs2.Parent = t2 | |
50 | rs2.Part0 = t2 | |
51 | rs2.Part1 = t2.Parent["Right Arm"] | |
52 | rs2.C0 = CFrame.new(1.5,0,0) | |
53 | rs2.Name = "Right Shoulder" | |
54 | t2["Left Hip"]:Remove() | |
55 | lh2 = Instance.new("Weld") | |
56 | lh2.Parent = t2 | |
57 | lh2.Part0 = t2 | |
58 | lh2.Part1 = t2.Parent["Left Leg"] | |
59 | lh2.C0 = CFrame.new(-0.5,-2,0) | |
60 | lh2.Name = "Left Hip" | |
61 | t2["Right Hip"]:Remove() | |
62 | rh2 = Instance.new("Weld") | |
63 | rh2.Parent = t2 | |
64 | rh2.Part0 = t2 | |
65 | rh2.Part1 = t2.Parent["Right Leg"] | |
66 | rh2.C0 = CFrame.new(0.5,-2,0) | |
67 | rh2.Name = "Right Hip" | |
68 | local d = Instance.new("Part") | |
69 | d.TopSurface = 0 | |
70 | d.BottomSurface = 0 | |
71 | d.CanCollide = false | |
72 | d.BrickColor = BrickColor.new("Medium stone grey") | |
73 | d.Shape = "Ball" | |
74 | d.Parent = t1 | |
75 | d.Size = Vector3.new(1,1,1) | |
76 | local dm = Instance.new("SpecialMesh") | |
77 | dm.MeshType = "Sphere" | |
78 | dm.Parent = d | |
79 | dm.Scale = Vector3.new(0.4,0.4,0.4) | |
80 | fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0) | |
81 | d2 = d:Clone() | |
82 | d2.Parent = t1 | |
83 | fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0) | |
84 | local c = Instance.new("Part") | |
85 | c.TopSurface = 0 | |
86 | c.BottomSurface = 0 | |
87 | c.CanCollide = false | |
88 | c.BrickColor = BrickColor.new("Pastel brown") | |
89 | c.Parent = t1 | |
90 | c.formFactor = "Custom" | |
91 | c.Size = Vector3.new(0.4,1.3,0.4) | |
92 | cm = Instance.new("CylinderMesh") | |
93 | cm.Parent = c | |
94 | a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0) | |
95 | c2 = d:Clone() | |
96 | c2.BrickColor = BrickColor.new("Medium stone grey") | |
97 | c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4) | |
98 | c2.Parent = t1 | |
99 | fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0) | |
100 | local bl = Instance.new("Part") | |
101 | bl.TopSurface = 0 | |
102 | bl.BottomSurface = 0 | |
103 | bl.CanCollide = false | |
104 | bl.BrickColor = BrickColor.new("Pastel brown") | |
105 | bl.Shape = "Ball" | |
106 | bl.Parent = t2 | |
107 | bl.Size = Vector3.new(1,1,1) | |
108 | local dm = Instance.new("SpecialMesh") | |
109 | dm.MeshType = "Sphere" | |
110 | dm.Parent = bl | |
111 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
112 | fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0) | |
113 | local br = Instance.new("Part") | |
114 | br.TopSurface = 0 | |
115 | br.BottomSurface = 0 | |
116 | br.CanCollide = false | |
117 | br.BrickColor = BrickColor.new("Pastel brown") | |
118 | br.Shape = "Ball" | |
119 | br.Parent = t2 | |
120 | br.Size = Vector3.new(1,1,1) | |
121 | local dm = Instance.new("SpecialMesh") | |
122 | dm.MeshType = "Sphere" | |
123 | dm.Parent = br | |
124 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
125 | fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0) | |
126 | local bln = Instance.new("Part") | |
127 | bln.TopSurface = 0 | |
128 | bln.BottomSurface = 0 | |
129 | bln.CanCollide = false | |
130 | bln.Shape = "Ball" | |
131 | bln.Parent = t2 | |
132 | bln.Size = Vector3.new(1,1,1) | |
133 | local dm = Instance.new("SpecialMesh") | |
134 | dm.MeshType = "Sphere" | |
135 | dm.Parent = bln | |
136 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
137 | fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0) | |
138 | local brn = Instance.new("Part") | |
139 | brn.TopSurface = 0 | |
140 | brn.BottomSurface = 0 | |
141 | brn.CanCollide = false | |
142 | brn.Shape = "Ball" | |
143 | brn.Parent = t2 | |
144 | brn.Size = Vector3.new(1,1,1) | |
145 | local dm = Instance.new("SpecialMesh") | |
146 | dm.MeshType = "Sphere" | |
147 | dm.Parent = brn | |
148 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
149 | fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0) | |
150 | lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0) | |
151 | rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0) | |
152 | ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0) | |
153 | rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0) | |
154 | ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0) | |
155 | rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0) | |
156 | if t1:findFirstChild("weldx") ~= nil then | |
157 | t1.weldx:Remove() | |
158 | end | |
159 | we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0) | |
160 | n = t2.Neck | |
161 | n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0) | |
162 | end) | |
163 | coroutine.resume(coroutine.create(function() | |
164 | while wait() do | |
165 | for i = 1,6 do | |
166 | we.C1 = we.C1 * CFrame.new(0,-0.3,0) | |
167 | wait() | |
168 | end | |
169 | ||
170 | for i = 1,6 do | |
171 | we.C1 = we.C1 * CFrame.new(0,0.3,0) | |
172 | wait() | |
173 | end | |
174 | end | |
175 | end)) | |
176 | end | |
177 | fun("YOURNAME", "THE VICTIM") |