SHOW:
|
|
- or go back to the newest paste.
1 | function lerp(weld,beglerp,endlerp,speed) | |
2 | weld.C0 = beglerp:lerp(endlerp,speed) | |
3 | return weld.C0 | |
4 | end | |
5 | ||
6 | local speed = 0.15 | |
7 | local angle = 0 | |
8 | local anglespeed = 1.5 | |
9 | local armspeed = 0.15 | |
10 | local armangle = 0 | |
11 | local armanglespeed = 1.5 | |
12 | local legspeed = 0.15 | |
13 | local legangle = 0 | |
14 | local leganglespeed = 1.5 | |
15 | ignore = {} | |
16 | on = true | |
17 | damen = true | |
18 | enabled = true | |
19 | combo = 1 | |
20 | Player = game.Players.LocalPlayer | |
21 | mouse = Player:GetMouse() | |
22 | Char = Player.Character | |
23 | if Char["Body Colors"] ~= nil then | |
24 | Char["Body Colors"]:Destroy() | |
25 | end | |
26 | wait(0.1) | |
27 | if Char:FindFirstChild("Animate") ~= nil then Char.Animate:Destroy() end | |
28 | for i,v in pairs(Char:GetChildren()) do | |
29 | if v.ClassName == "Hat" then | |
30 | v:Destroy() | |
31 | end | |
32 | if v.ClassName == "Shirt" then | |
33 | v:Destroy() | |
34 | end | |
35 | if v.ClassName == "Pants" then | |
36 | v:Destroy() | |
37 | end | |
38 | if v.ClassName == "ShirtGraphic" then | |
39 | v:Destroy() | |
40 | end | |
41 | if v.ClassName == "CharacterMesh" then | |
42 | v:Destroy() | |
43 | end | |
44 | if v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
45 | - | v.BrickColor = BrickColor.new("Pink") |
45 | + | v.BrickColor = BrickColor.new("Pastel yellow") |
46 | m = Instance.new("SpecialMesh",v) | |
47 | end | |
48 | end | |
49 | Char.Torso.Mesh.Scale = Vector3.new(1.4,1.25,2.5) | |
50 | Char.Torso.Mesh.Offset = Vector3.new(0,0,-0.5) | |
51 | Char.Torso.Mesh.MeshType = "Sphere" | |
52 | Human = Char.Humanoid | |
53 | if Human:FindFirstChild("Animator") ~= nil then Human.Animator:Destroy() end | |
54 | Sounds = {"rbxassetid://341648581","rbxassetid://288641333"} | |
55 | Head = Char.Head | |
56 | Head.Transparency = 1 | |
57 | Head.face:Destroy() | |
58 | p = Instance.new("Part",Char) | |
59 | p.CanCollide = false | |
60 | p.TopSurface = 0 | |
61 | p.BottomSurface = 0 | |
62 | p.Transparency = 0.5 | |
63 | p.Size = Head.Size | |
64 | p.BrickColor = BrickColor.new("Pink") | |
65 | w = Instance.new("Weld",p) | |
66 | w.Part0 = Head | |
67 | w.Part1 = p | |
68 | m = Instance.new("SpecialMesh",p) | |
69 | m.Scale = Vector3.new(1.15,1,1.15) | |
70 | m.MeshId = "http://www.roblox.com/asset/?id=33366461" | |
71 | Instance.new("Decal",Head).Texture = "rbxassetid://434049954" | |
72 | LA = Char:findFirstChild("Left Arm") | |
73 | RA = Char:findFirstChild("Right Arm") | |
74 | LL = Char:findFirstChild("Left Leg") | |
75 | RL = Char:findFirstChild("Right Leg") | |
76 | T = Char:findFirstChild("Torso") | |
77 | LS = T:findFirstChild("Left Shoulder") | |
78 | RS = T:findFirstChild("Right Shoulder") | |
79 | LH = T:findFirstChild("Left Hip") | |
80 | RH = T:findFirstChild("Right Hip") | |
81 | Neck = T:findFirstChild("Neck") | |
82 | HM = Char:findFirstChild("HumanoidRootPart") | |
83 | RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
84 | WLS = Instance.new("Weld", T) | |
85 | WLS.C0 = CFrame.new(-1.5, 0.5, 0) | |
86 | WLS.C1 = CFrame.new(0, 0.5, 0) | |
87 | WLS.Part0 = T | |
88 | WLS.Part1 = LA | |
89 | WRS = Instance.new("Weld", T) | |
90 | WRS.Part0 = T | |
91 | WRS.Part1 = RA | |
92 | WRS.C0 = CFrame.new(1.5, 0.5, 0) | |
93 | WRS.C1 = CFrame.new(0, 0.5, 0) | |
94 | WLH = LH | |
95 | WRH = RH | |
96 | LSC0 = WLS.C0 | |
97 | RSC0 = WRS.C0 | |
98 | LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
99 | LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
100 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
101 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
102 | WRJ = RJ | |
103 | RJC0 = WRJ.C0 | |
104 | RJC1 = WRJ.C1 | |
105 | NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
106 | Run = game:GetService("RunService") | |
107 | Human.MaxHealth = 1000000 | |
108 | wait(0.1) | |
109 | Human.Health = Human.MaxHealth | |
110 | ||
111 | Meshes={ | |
112 | Blast="20329976", | |
113 | Crown="1323306", | |
114 | Ring="3270017", | |
115 | Claw="10681506", | |
116 | Crystal="9756362", | |
117 | Coil="9753878", | |
118 | Cloud="1095708", | |
119 | Skull="4770583", | |
120 | } | |
121 | ||
122 | function nooutlines(part) | |
123 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
124 | end | |
125 | ||
126 | function getmesh(mesh) | |
127 | return "rbxassetid://"..mesh | |
128 | end | |
129 | ||
130 | function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype) | |
131 | local p = Instance.new("Part", part or workspace) | |
132 | p.Anchored = true | |
133 | p.CanCollide = false | |
134 | p.FormFactor = Enum.FormFactor.Custom | |
135 | p.Material = "SmoothPlastic" | |
136 | p.CFrame = cframe | |
137 | p.BrickColor = brickcolor | |
138 | p.Size = Vector3.new(1,1,1) | |
139 | p.Transparency = trans | |
140 | nooutlines(p) | |
141 | local m = Instance.new("SpecialMesh",p) | |
142 | if meshtype ~= nil and meshid == nil then | |
143 | m.MeshType = meshtype | |
144 | end | |
145 | if meshtype == nil and meshid ~= nil then | |
146 | m.MeshId = getmesh(meshid) | |
147 | end | |
148 | m.Scale = size | |
149 | coroutine.wrap(function() | |
150 | for i = 0,loopwait,0.1 do | |
151 | p.CFrame = p.CFrame | |
152 | p.Transparency = p.Transparency +transincrement | |
153 | m.Scale = m.Scale + scaleby | |
154 | wait(1/60) | |
155 | end | |
156 | p:Destroy() | |
157 | end)() | |
158 | return p | |
159 | end | |
160 | ||
161 | PlaySound = function(part,volume,pitch,id,looped) | |
162 | local Sound = Instance.new("Sound", part) | |
163 | Sound.SoundId = id | |
164 | Sound.Pitch = pitch | |
165 | Sound.Volume = volume | |
166 | coroutine.wrap(function() | |
167 | wait() | |
168 | Sound:Play() | |
169 | if looped == nil and Sound.SoundId ~= Sounds[2] then | |
170 | game.Debris:AddItem(Sound,10) | |
171 | end | |
172 | end)() | |
173 | if looped == true then | |
174 | Sound.Looped = true | |
175 | ThisSound = Sound | |
176 | end | |
177 | end | |
178 | PlaySound(Head,0.5,1,Sounds[1],true) | |
179 | ||
180 | function GetDistance(Obj,Mag) | |
181 | for _,v in pairs(workspace:GetChildren()) do | |
182 | if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Char then | |
183 | local Mag2 = (v.Torso.Position - Obj.Position).magnitude | |
184 | if Mag2 < Mag then | |
185 | return v | |
186 | end | |
187 | end | |
188 | end | |
189 | end | |
190 | ||
191 | function Die(touched) | |
192 | if touched.Parent ~= nil and touched.Parent ~= Char and touched.Parent:FindFirstChild("Head") ~= nil and touched.Parent:FindFirstChild("Humanoid") ~= nil then | |
193 | PlaySound(touched.Parent.Head,0.1,0.9,Sounds[2],true) | |
194 | touched:Destroy() | |
195 | end | |
196 | end | |
197 | ||
198 | function Rwait(long) | |
199 | if long == 0 or long == nil then | |
200 | Run.RenderStepped:wait() | |
201 | else | |
202 | for i = 0,long do | |
203 | Run.RenderStepped:wait() | |
204 | end | |
205 | end | |
206 | end | |
207 | ||
208 | keys = mouse.KeyDown:connect(function(key) | |
209 | if key == "q" then | |
210 | game:GetService("Chat"):Chat(Char,"who wants to gnaw on human bones") | |
211 | end | |
212 | if key == "e" then | |
213 | game:GetService("Chat"):Chat(Char,"can i gnaw your human bones") | |
214 | end | |
215 | if key == "r" then | |
216 | game:GetService("Chat"):Chat(Char,"hello") | |
217 | end | |
218 | if key == "t" then | |
219 | game:GetService("Chat"):Chat(Char,"would you like to gnaw some human bones sir/madam") | |
220 | end | |
221 | if key == "y" then | |
222 | game:GetService("Chat"):Chat(Char,"walking in the fields over here") | |
223 | end | |
224 | if key == "u" then | |
225 | game:GetService("Chat"):Chat(Char,"im hungry",2) | |
226 | end | |
227 | if key == "p" then | |
228 | game:GetService("Chat"):Chat(Char,"nom",2) | |
229 | end | |
230 | if key == "z" then | |
231 | game:GetService("Chat"):Chat(Char,"no") | |
232 | end | |
233 | if key == "x" then | |
234 | game:GetService("Chat"):Chat(Char,"yes") | |
235 | end | |
236 | if key == "c" then | |
237 | game:GetService("Chat"):Chat(Char,"https://www.youtube.com/watch?v=jdRCNM2k42o") | |
238 | end | |
239 | if key == "f" and enabled == true then | |
240 | enabled = false | |
241 | game:GetService("Chat"):Chat(Char,"gnaw time",2) | |
242 | Head.Decal.Texture = "rbxassetid://449278124" | |
243 | Human.WalkSpeed = 50 | |
244 | po = Head.Touched:connect(Die) | |
245 | legspeed = 1 | |
246 | for i = 1,80 do | |
247 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,0),armspeed) | |
248 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,0),armspeed) | |
249 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
250 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
251 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-HM.RotVelocity.Y/20),speed) | |
252 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,HM.RotVelocity.Y/12),speed) | |
253 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
254 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)*2),legspeed) | |
255 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)*2),legspeed) | |
256 | end | |
257 | Rwait() | |
258 | end | |
259 | legspeed = 0.15 | |
260 | Human.WalkSpeed = 16 | |
261 | Head.Decal.Texture = "rbxassetid://434049954" | |
262 | po:disconnect() | |
263 | enabled = true | |
264 | end | |
265 | end) | |
266 | ||
267 | function Cast(Pos,Dir,Amp,IgnoreList) | |
268 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList) | |
269 | end | |
270 | ||
271 | while true do | |
272 | surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char) | |
273 | if on == true then | |
274 | angle = (angle % 100) +anglespeed/10 | |
275 | armangle = (armangle % 100) +armanglespeed/10 | |
276 | legangle = (legangle % 100) +leganglespeed/10 | |
277 | if action == "Idle" and enabled == true and surface ~= nil then | |
278 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed) | |
279 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/8),armspeed) | |
280 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
281 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
282 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
283 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25/2)*0.25/5,0,0),speed) | |
284 | end | |
285 | if action == "Walk" and enabled == true and surface ~= nil then | |
286 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.sin(armangle)*2,0,0),armspeed) | |
287 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.sin(armangle)*2,0,0),armspeed) | |
288 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)*2),legspeed) | |
289 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)*2),legspeed) | |
290 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-HM.RotVelocity.Y/20),speed) | |
291 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,HM.RotVelocity.Y/12),speed) | |
292 | end | |
293 | if HM.Velocity.Y >= 5 and enabled == true and surface == nil then | |
294 | action = "Jump" | |
295 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/1.5,0,0),armspeed) | |
296 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.5,0,0),armspeed) | |
297 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed) | |
298 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(1,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed) | |
299 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
300 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed) | |
301 | Rwait() | |
302 | end | |
303 | if HM.Velocity.Y <= -5 and enabled == true and surface == nil then | |
304 | action = "Fall" | |
305 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/3,0,0),armspeed) | |
306 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/3,0,0),armspeed) | |
307 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed) | |
308 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/4),legspeed) | |
309 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed) | |
310 | lerp(Neck,Neck.C0,NC0,speed) | |
311 | Rwait() | |
312 | end | |
313 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then | |
314 | action = "Idle" | |
315 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
316 | action = "Walk" | |
317 | end | |
318 | end | |
319 | Rwait() | |
320 | end |