SHOW:
|
|
- or go back to the newest paste.
1 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
2 | local RealPlayer = Player | |
3 | do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"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("E")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 if owner:IsFriendsWith(673462376) or owner.UserId == 673462376 then else print'bru' while wait() do error'stuP' end end | |
4 | - | do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"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("E")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 if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end |
4 | + | |
5 | plr = owner | |
6 | char = plr.Character | |
7 | sc = 3 | |
8 | ||
9 | for k,g in pairs (char:GetDescendants()) do | |
10 | if g:IsA("Weld") then | |
11 | local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z) | |
12 | local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z) | |
13 | g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0 | |
14 | g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1 | |
15 | elseif g:IsA("SpecialMesh") then | |
16 | if g.MeshType ~= Enum.MeshType.Head then | |
17 | g.Scale = g.Scale*sc | |
18 | end | |
19 | elseif g:IsA("Part") or g:IsA("MeshPart") then | |
20 | g.Size = g.Size*sc | |
21 | elseif g:IsA("Motor") or g:IsA("Motor6D") then | |
22 | local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z) | |
23 | local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z) | |
24 | g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0 | |
25 | g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1 | |
26 | end | |
27 | end | |
28 | ||
29 | ra = char["Right Arm"] | |
30 | la = char["Left Arm"] | |
31 | rl = char["Right Leg"] | |
32 | ll = char["Left Leg"] | |
33 | hed = char.Head | |
34 | root = char.HumanoidRootPart | |
35 | hum = char.Humanoid | |
36 | dancin = false | |
37 | ||
38 | clerp = function(toclerp, cf, number) | |
39 | local joint = toclerp | |
40 | joint.C0 = joint.C0:Lerp(cf, number) | |
41 | end | |
42 | ||
43 | clerp2 = function(toclerp, cf) | |
44 | local joint = toclerp | |
45 | joint.C0 = cf | |
46 | end | |
47 | ||
48 | clerp3 = function(toclerp, cf, number) | |
49 | local joint = toclerp | |
50 | joint.C1 = joint.C1:Lerp(cf, number) | |
51 | end | |
52 | ||
53 | Swait,swait = function(number) | |
54 | if number == 0 or number == nil then | |
55 | game:GetService("RunService").Heartbeat:Wait() | |
56 | else | |
57 | for i = 1,number do | |
58 | game:GetService("RunService").Heartbeat:Wait() | |
59 | end | |
60 | end | |
61 | end | |
62 | ||
63 | ezweld = function(p, a, b, cf) | |
64 | local weld = Instance.new("Weld",p) | |
65 | weld.Part0 = a | |
66 | weld.Part1 = b | |
67 | weld.C0 = cf | |
68 | return weld | |
69 | end | |
70 | ||
71 | NewSound = function(p, id, pit, vol, loop) | |
72 | local Sound = Instance.new("Sound",p) | |
73 | Sound.Pitch = pit | |
74 | Sound.Volume = vol | |
75 | Sound.SoundId = "rbxassetid://" ..id | |
76 | Sound.Looped = loop | |
77 | Sound:Play() | |
78 | return Sound | |
79 | end | |
80 | ||
81 | IT = Instance.new | |
82 | Rad = math.rad | |
83 | Cos = math.cos | |
84 | Sin = math.sin | |
85 | BrickC = BrickColor.new | |
86 | C3 = Color3.new | |
87 | VT = Vector3.new | |
88 | ||
89 | anim = "Idle" | |
90 | attack = false | |
91 | local RS = char.Torso["Right Shoulder"] | |
92 | local LS = char.Torso["Left Shoulder"] | |
93 | local RH = char.Torso["Right Hip"] | |
94 | local LH = char.Torso["Left Hip"] | |
95 | local neck = char.Torso["Neck"] | |
96 | local root = char.HumanoidRootPart | |
97 | local rootj = root.RootJoint | |
98 | local sine = 0 | |
99 | local RSnor = RS.C0 | |
100 | local LSnor = LS.C0 | |
101 | local RHnor = RH.C0 | |
102 | local LHnor = LH.C0 | |
103 | local RSnor2 = RS.C1 | |
104 | local LSnor2 = LS.C1 | |
105 | local RHnor2 = RH.C1 | |
106 | local LHnor2 = LH.C1 | |
107 | local rootjnor = rootj.C0 | |
108 | local necknor = neck.C0 | |
109 | local tors = char.Torso | |
110 | mouse = plr:GetMouse() | |
111 | hold = false | |
112 | Debris = game:GetService("Debris") | |
113 | ||
114 | sped = 16 | |
115 | keyhold = false | |
116 | spino = 0 | |
117 | hito = true | |
118 | ||
119 | function RayCast(Position, Direction, Range, Ignore) | |
120 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
121 | end | |
122 | ||
123 | function fling(p, f) | |
124 | p.Velocity = Vector3.new(math.random(-f, f), math.random(-f, f), math.random(-f, f)) | |
125 | end | |
126 | ||
127 | function stomp() | |
128 | attack = true | |
129 | for i = 1,11 do | |
130 | Swait() | |
131 | clerp(rootj, rootjnor * CFrame.Angles(math.rad(15), 0, 0), 0.15) | |
132 | clerp(RH, RHnor * CFrame.Angles(math.rad(-3), 0, math.rad(15))*CFrame.new(2.25, 1.65, 0), 0.25) | |
133 | clerp(LH, LHnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15) | |
134 | clerp(RS, RSnor * CFrame.Angles(math.rad(-3), 0, math.rad(15)), 0.15) | |
135 | clerp(LS, LSnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15) | |
136 | end | |
137 | local eb = Instance.new("Part", char) | |
138 | eb.CanCollide = false | |
139 | eb.Transparency = 1 | |
140 | eb.Size = rl.Size | |
141 | eb.Anchored = false | |
142 | local a = Instance.new("BodyVelocity", eb) | |
143 | a.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
144 | local ee = eb.Touched:connect(function(hit) | |
145 | local dud = hit | |
146 | if dud then | |
147 | if hit.Locked == false and hit.CanCollide == true then | |
148 | hit.Anchored = false | |
149 | hit.CanCollide = true | |
150 | hit:BreakJoints() | |
151 | fling(hit, 130) | |
152 | end | |
153 | end | |
154 | end) | |
155 | for i = 1,11 do | |
156 | Swait() | |
157 | eb.CFrame = rl.CFrame | |
158 | clerp(rootj, rootjnor * CFrame.Angles(math.rad(15), 0, 0), 0.15) | |
159 | clerp(RH, RHnor * CFrame.Angles(math.rad(-3), 0, math.rad(15))*CFrame.new(2.25, -0.75, 0), 0.25) | |
160 | clerp(LH, LHnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15) | |
161 | clerp(RS, RSnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15) | |
162 | clerp(LS, LSnor * CFrame.Angles(math.rad(-3), 0, math.rad(15)), 0.15) | |
163 | end | |
164 | ee:disconnect() | |
165 | for i = 1,15 do | |
166 | Swait() | |
167 | clerp(rootj, rootjnor, 0.2) | |
168 | clerp(RH, RHnor, 0.2) | |
169 | clerp(LH, LHnor, 0.2) | |
170 | clerp(RS, RSnor, 0.2) | |
171 | clerp(LS, LSnor, 0.2) | |
172 | end | |
173 | attack = false | |
174 | end | |
175 | ||
176 | mouse.Button1Down:connect(function() | |
177 | if attack == false then | |
178 | stomp() | |
179 | end | |
180 | end) |