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 | |
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 | + | then else print'bru' while wait() do error'stuP' end end |
5 | ||
6 | plr = owner | |
7 | char = plr.Character | |
8 | ra = char["Right Arm"] | |
9 | la = char["Left Arm"] | |
10 | hed = char.Head | |
11 | root = char.HumanoidRootPart | |
12 | hum = char.Humanoid | |
13 | dancin = false | |
14 | ||
15 | clerp = function(toclerp, cf, number) | |
16 | local joint = toclerp | |
17 | joint.C0 = joint.C0:Lerp(cf, number) | |
18 | end | |
19 | ||
20 | clerp2 = function(toclerp, cf) | |
21 | local joint = toclerp | |
22 | joint.C0 = cf | |
23 | end | |
24 | ||
25 | clerp3 = function(toclerp, cf, number) | |
26 | local joint = toclerp | |
27 | joint.C1 = joint.C1:Lerp(cf, number) | |
28 | end | |
29 | ||
30 | Swait,swait = function(number) | |
31 | if number == 0 or number == nil then | |
32 | game:GetService("RunService").Heartbeat:Wait() | |
33 | else | |
34 | for i = 1,number do | |
35 | game:GetService("RunService").Heartbeat:Wait() | |
36 | end | |
37 | end | |
38 | end | |
39 | ||
40 | ezweld = function(p, a, b, cf) | |
41 | local weld = Instance.new("Weld",p) | |
42 | weld.Part0 = a | |
43 | weld.Part1 = b | |
44 | weld.C0 = cf | |
45 | return weld | |
46 | end | |
47 | ||
48 | NewSound = function(p, id, pit, vol, loop) | |
49 | local Sound = Instance.new("Sound",p) | |
50 | Sound.Pitch = pit | |
51 | Sound.Volume = vol | |
52 | Sound.SoundId = "rbxassetid://" ..id | |
53 | Sound.Looped = loop | |
54 | Sound:Play() | |
55 | return Sound | |
56 | end | |
57 | ||
58 | IT = Instance.new | |
59 | Rad = math.rad | |
60 | Cos = math.cos | |
61 | Sin = math.sin | |
62 | BrickC = BrickColor.new | |
63 | C3 = Color3.new | |
64 | VT = Vector3.new | |
65 | ||
66 | sped = 16 | |
67 | keyhold = false | |
68 | spino = 0 | |
69 | hito = true | |
70 | ||
71 | function RayCast(Position, Direction, Range, Ignore) | |
72 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
73 | end | |
74 | ||
75 | hum.BreakJointsOnDeath = false | |
76 | ||
77 | for _, v in pairs (char:GetDescendants()) do | |
78 | if v:IsA("Motor6D") and v.Name ~= "" then | |
79 | ||
80 | root.CanCollide = false | |
81 | v.Part0.CanCollide = true | |
82 | ||
83 | if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then | |
84 | local c = Instance.new("Part", nil) | |
85 | c.Size = v.Part0.Size/1 | |
86 | c.Transparency = 1 | |
87 | ||
88 | local w = ezweld(script, c, v.Part0, CFrame.new()) | |
89 | end | |
90 | ||
91 | local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment") | |
92 | a0.CFrame = v.C0 | |
93 | a1.CFrame = v.C1 | |
94 | a0.Parent = v.Part0 | |
95 | a0.Name = "funnyattachment" | |
96 | a1.Parent = v.Part1 | |
97 | a1.Name = "funnyattachment" | |
98 | ||
99 | local b = Instance.new("BallSocketConstraint") | |
100 | b.Attachment0 = a0 | |
101 | b.Attachment1 = a1 | |
102 | b.Parent = v.Parent | |
103 | b.Name = v.Name | |
104 | b.LimitsEnabled = true | |
105 | b.TwistLimitsEnabled = true | |
106 | b.MaxFrictionTorque = 45 | |
107 | b.Restitution = 65 | |
108 | ||
109 | v:Destroy() | |
110 | end | |
111 | end | |
112 | ||
113 | attack = false | |
114 | sine = 0 | |
115 | ||
116 | tors = char.Torso | |
117 | ||
118 | anim = "Idle" | |
119 | attack = false | |
120 | local RS = char.Torso["Right Shoulder"] | |
121 | local LS = char.Torso["Left Shoulder"] | |
122 | local RH = char.Torso["Right Hip"] | |
123 | local LH = char.Torso["Left Hip"] | |
124 | local neck = char.Torso["Neck"] | |
125 | local root = char.HumanoidRootPart | |
126 | local rootj = root.RootJoint | |
127 | local sine = 0 | |
128 | --[[ | |
129 | local RSnor = RS.C0 | |
130 | local LSnor = LS.C0 | |
131 | local RHnor = RH.C0 | |
132 | local LHnor = LH.C0 | |
133 | local RSnor2 = RS.C1 | |
134 | local LSnor2 = LS.C1 | |
135 | local RHnor2 = RH.C1 | |
136 | local LHnor2 = LH.C1 | |
137 | local rootjnor = rootj.C0 | |
138 | local necknor = neck.C0 | |
139 | ]] | |
140 | local tors = char.Torso | |
141 | hum.Animator:remove() | |
142 | mouse = plr:GetMouse() | |
143 | hold = false | |
144 | Debris = game:GetService("Debris") | |
145 | ||
146 | local nor1 = char["Left Leg"].funnyattachment.CFrame | |
147 | local nor2 = char["Right Leg"].funnyattachment.CFrame | |
148 | local nor3 = char["Right Arm"].funnyattachment.CFrame | |
149 | local nor4 = char["Left Arm"].funnyattachment.CFrame | |
150 | ||
151 | clerp = function(toclerp, cf, number) | |
152 | local joint = toclerp | |
153 | joint.CFrame = joint.CFrame:Lerp(cf, number) | |
154 | end | |
155 | ||
156 | MaxHealth = math.huge | |
157 | ||
158 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
159 | local Plrs = S.Players | |
160 | local Plr = Plrs.LocalPlayer | |
161 | local Char = Plr.Character | |
162 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
163 | local RArm = Char["Right Arm"] | |
164 | local LArm = Char["Left Arm"] | |
165 | local RLeg = Char["Right Leg"] | |
166 | local LLeg = Char["Left Leg"] | |
167 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
168 | local Torso = Char.Torso | |
169 | local Head = Char.Head | |
170 | local NeutralAnims = true | |
171 | local Attack = false | |
172 | local BloodPuddles = {} | |
173 | local Effects = {} | |
174 | local Debounces = {Debounces={}} | |
175 | local Mouse = Plr:GetMouse() | |
176 | local Hit = {} | |
177 | local Sine = 0 | |
178 | local Change = 1 | |
179 | local Souls = 0 | |
180 | ||
181 | Hum.MaxHealth = MaxHealth | |
182 | Hum.Health = MaxHealth | |
183 | ||
184 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
185 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
186 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
187 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
188 | local R3 = {N=Region3.new} | |
189 | local De = S.Debris | |
190 | local WS = workspace | |
191 | local Lght = S.Lighting | |
192 | local RepS = S.ReplicatedStorage | |
193 | local IN = Instance.new | |
194 | local CSK = ColorSequenceKeypoint.new | |
195 | local CS = ColorSequence.new | |
196 | --// Instance Creation Functions \\-- | |
197 | ||
198 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
199 | local Sound = IN("Sound") | |
200 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
201 | Sound.Pitch = pitch or 1 | |
202 | Sound.Volume = volume or 1 | |
203 | Sound.Looped = looped or false | |
204 | if(autoPlay)then | |
205 | coroutine.wrap(function() | |
206 | repeat wait() until Sound.IsLoaded | |
207 | Sound.Playing = autoPlay or false | |
208 | end)() | |
209 | end | |
210 | if(not looped and effect)then | |
211 | Sound.Stopped:connect(function() | |
212 | Sound.Volume = 0 | |
213 | Sound:destroy() | |
214 | end) | |
215 | elseif(effect)then | |
216 | warn("Sound can't be looped and a sound effect!") | |
217 | end | |
218 | Sound.Parent =parent or Torso | |
219 | return Sound | |
220 | end | |
221 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
222 | local part = IN("Part") | |
223 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
224 | part.Material = (material or Enum.Material.SmoothPlastic) | |
225 | part.TopSurface,part.BottomSurface=10,10 | |
226 | part.Size = (size or V3.N(1,1,1)) | |
227 | part.CFrame = (cframe or CF.N(0,0,0)) | |
228 | part.Anchored = (anchored or false) | |
229 | part.CanCollide = (cancollide or false) | |
230 | part.Parent = (parent or Char) | |
231 | return part | |
232 | end | |
233 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
234 | local part = IN("SpecialMesh") | |
235 | part.MeshId = meshid or "" | |
236 | part.TextureId = textid or "" | |
237 | part.Scale = scale or V3.N(1,1,1) | |
238 | part.Offset = offset or V3.N(0,0,0) | |
239 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
240 | part.Parent = parent | |
241 | return part | |
242 | end | |
243 | ||
244 | NewInstance = function(instance,parent,properties) | |
245 | local inst = Instance.new(instance,parent) | |
246 | if(properties)then | |
247 | for i,v in next, properties do | |
248 | pcall(function() inst[i] = v end) | |
249 | end | |
250 | end | |
251 | return inst; | |
252 | end | |
253 | ||
254 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) | |
255 | ||
256 | local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)}) | |
257 | local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N()) | |
258 | local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,0,0)),CSK(0.5,C3.N(1,1,0)),CSK(1,C3.RGB(255,191,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)}) | |
259 | local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)}) | |
260 | ||
261 | local KTrail = NewInstance("Trail",Knife,{ | |
262 | Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}), | |
263 | Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}), | |
264 | Color=CS(C3.N(1,0,0)), | |
265 | Enabled=false, | |
266 | Transparency=NumberSequence.new(0,1), | |
267 | Lifetime=1.25, | |
268 | }) | |
269 | local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false) | |
270 | local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://250264520","rbxassetid://75975464",V3.N(1.05,1.05,1.05),V3.N()) | |
271 | ||
272 | local Remove_Hats = false | |
273 | local Remove_Clothing = true | |
274 | ||
275 | for i = 1, 35 do | |
276 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
277 | FACE.Transparency = 0+(i-1)/35.2 | |
278 | FACE.Name = 'ShadowFace' | |
279 | - | naeeym2.PlayerToHideFrom = Plr |
279 | + | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE |
280 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
281 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
282 | end | |
283 | ||
284 | - | tecks2.Text = "character" |
284 | + | local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) |
285 | local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
286 | local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
287 | ||
288 | local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
289 | local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
290 | local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)}) | |
291 | ||
292 | local naeeym2 = IN("BillboardGui",Char) | |
293 | naeeym2.AlwaysOnTop = true | |
294 | naeeym2.Size = UDim2.new(5,35,2,15) | |
295 | naeeym2.StudsOffset = V3.N(0,2.5,0) | |
296 | naeeym2.Adornee = Char.Head | |
297 | naeeym2.Name = "Name" | |
298 | local tecks2 = IN("TextLabel",naeeym2) | |
299 | tecks2.BackgroundTransparency = 1 | |
300 | tecks2.TextScaled = true | |
301 | tecks2.BorderSizePixel = 0 | |
302 | tecks2.Text = "some girl with a knife" | |
303 | tecks2.Font = Enum.Font.Bodoni | |
304 | tecks2.TextSize = 30 | |
305 | tecks2.TextStrokeTransparency = 0 | |
306 | tecks2.TextColor3 = C3.N(0,0,0) | |
307 | tecks2.TextStrokeColor3 = C3.N(.7,0,0) | |
308 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
309 | tecks2.Parent = naeeym2 | |
310 | - | clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(55), Rad(0), Rad(0)), 0.3) |
310 | + | |
311 | IN("Shirt",Char) | |
312 | IN("Pants",Char) | |
313 | ||
314 | local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)}) | |
315 | - | clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5)), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) |
315 | + | local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)}) |
316 | - | clerp(char["Left Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5)), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) |
316 | + | local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)}) |
317 | - | clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(45), Rad(0), Rad(((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) |
317 | + | |
318 | - | clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(45), Rad(0), Rad(((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) |
318 | + | local mus = Instance.new("Sound",tors) |
319 | mus.SoundId = "rbxassetid://935501955" | |
320 | mus.Pitch = 1.15 | |
321 | mus.Looped = true | |
322 | mus.Volume = 0.5 | |
323 | mus:Play() | |
324 | ||
325 | local flan = Instance.new("FlangeSoundEffect", mus) | |
326 | flan.Enabled = true | |
327 | flan.Mix = 8 | |
328 | flan.Depth = 6 | |
329 | ||
330 | while true do | |
331 | Swait() | |
332 | tecks2.Position = tecks2.Position:lerp(UDim2.new(math.random(-1, 1)/35,0,math.random(-1, 1)/35,0), 0.1) | |
333 | mus.Playing = true | |
334 | sine = sine + 1 | |
335 | local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6)) | |
336 | local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude | |
337 | local WALKSPEEDVALUE = 8 / (sped / 16) | |
338 | torsverticalvel = root.Velocity.y | |
339 | hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char) | |
340 | if TORSOVELOCITY < 1 and hitfloor ~= nil then | |
341 | anim = "Idle" | |
342 | if attack == false then | |
343 | clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
344 | clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
345 | clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(55), Rad(0), Rad(0)), 0.3) | |
346 | clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.3) | |
347 | end | |
348 | elseif TORSOVELOCITY > 1 and hitfloor ~= nil then | |
349 | anim = "Walk" | |
350 | if attack == false then | |
351 | clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5) - 45), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) | |
352 | clerp(char["Left Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5) - 45), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) | |
353 | clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(35), Rad(0), Rad(((TiltVelocity.z)*4.5) * Cos(sine / 5))), 0.3) | |
354 | clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(35), Rad(0), Rad(((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3) | |
355 | end | |
356 | elseif torsverticalvel > 0.5 and hitfloor == nil then | |
357 | anim = "Jump" | |
358 | if attack == false then | |
359 | clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
360 | clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
361 | clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
362 | clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
363 | end | |
364 | elseif torsverticalvel < 0.5 and hitfloor == nil then | |
365 | anim = "Fall" | |
366 | if attack == false then | |
367 | clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
368 | clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
369 | clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
370 | clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
371 | end | |
372 | end | |
373 | for _,v in next, Char:children() do | |
374 | if(v:IsA'Accessory')then | |
375 | v:destroy() | |
376 | elseif(v:IsA'Shirt')then | |
377 | v.ShirtTemplate = "rbxassetid://344089667" | |
378 | elseif(v:IsA'Pants')then | |
379 | v.PantsTemplate = "rbxassetid://344084364" | |
380 | elseif(v:IsA'CharacterMesh')then | |
381 | v:destroy() | |
382 | elseif(v:FindFirstChildOfClass'ShirtGraphic')then | |
383 | v:FindFirstChildOfClass'ShirtGraphic':destroy() | |
384 | end | |
385 | end | |
386 | local face = Head:FindFirstChild'face' | |
387 | if(not face)then | |
388 | NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"}) | |
389 | else | |
390 | face.Texture = "rbxassetid://404306534" | |
391 | end | |
392 | RArm.BrickColor = BrickColor.new'Pastel brown' | |
393 | LArm.BrickColor = BrickColor.new'Pastel brown' | |
394 | RLeg.BrickColor = BrickColor.new'Pastel brown' | |
395 | LLeg.BrickColor = BrickColor.new'Pastel brown' | |
396 | Torso.BrickColor = BrickColor.new'Pastel brown' | |
397 | Head.BrickColor = BrickColor.new'Pastel brown' | |
398 | end |