SHOW:
|
|
- or go back to the newest paste.
1 | --------------------------------- | |
2 | - | -----SO BASICALLY I'M MONKEY----- |
2 | + | -----------GrownGreen------------ |
3 | --------------------------------- | |
4 | ||
5 | --This script is made by mrfunnylaughs4. | |
6 | ||
7 | local plr = owner | |
8 | local char = plr.Character | |
9 | local hum = char:FindFirstChildOfClass("Humanoid") | |
10 | local idleanim = Instance.new("Animation") | |
11 | idleanim.Name = "Roblox Idle Animation" | |
12 | - | idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
12 | + | idleanim.AnimationId = "http://www.roblox.com/asset/?id=2610907341" |
13 | local idleanimplay = hum:LoadAnimation(idleanim) | |
14 | idleanimplay:Play() | |
15 | wait(0.1) | |
16 | if char:FindFirstChild("Animate") then | |
17 | char.Animate:Destroy() | |
18 | end | |
19 | local remote = Instance.new("RemoteEvent", char) | |
20 | remote.Name = "ReplicationEvent" | |
21 | local client = NLS([==[ | |
22 | local mouse = game:GetService("Players").LocalPlayer:GetMouse() | |
23 | local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent") | |
24 | spawn(function() | |
25 | while game:GetService("RunService").Heartbeat:Wait() do | |
26 | remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent") | |
27 | end | |
28 | end) | |
29 | game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping) | |
30 | if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then | |
31 | remote:FireServer(1, input.KeyCode) | |
32 | end | |
33 | end) | |
34 | mouse.Button1Down:Connect(function() | |
35 | remote:FireServer(2) | |
36 | end) | |
37 | remote.OnClientEvent:Connect(function() | |
38 | game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z)) | |
39 | end) | |
40 | ]==], char) | |
41 | local crabrave = Instance.new("Sound", char.Torso) | |
42 | local RS = char.Torso["Right Shoulder"] | |
43 | local LS = char.Torso["Left Shoulder"] | |
44 | local RH = char.Torso["Right Hip"] | |
45 | local LH = char.Torso["Left Hip"] | |
46 | local rootj = char.HumanoidRootPart.RootJoint | |
47 | local throwbutton = false | |
48 | local throw = false | |
49 | local normalanim = true | |
50 | local attackd = false | |
51 | local animpose = "Idle" | |
52 | local timepos = 0 | |
53 | local sine = 0 | |
54 | local RSnor = RS.C0 | |
55 | local LSnor = LS.C0 | |
56 | local RHnor = RH.C0 | |
57 | local LHnor = LH.C0 | |
58 | local rootjnor = rootj.C0 | |
59 | ||
60 | --------------------------------- | |
61 | --------------Set up------------- | |
62 | --------------------------------- | |
63 | ||
64 | local sur = Instance.new("BillboardGui", char.Head) | |
65 | sur.Name = "Billboard" | |
66 | sur.Adornee = char.Head | |
67 | sur.Size = UDim2.new(10, 0, 5, 0) | |
68 | sur.StudsOffset = Vector3.new(0, 5, 0) | |
69 | local text = Instance.new("TextLabel", sur) | |
70 | - | text.Text = "SO BASICALLY IM MONKEY" |
70 | + | text.Text = "GrownGreen" |
71 | text.Size = UDim2.new(1, 0, 1, 0) | |
72 | text.TextScaled = true | |
73 | text.BackgroundTransparency = 1 | |
74 | text.Font = Enum.Font.SourceSansLight | |
75 | text.TextColor3 = Color3.new(1, 1, 1) | |
76 | text.TextStrokeTransparency = 0 | |
77 | ||
78 | --------------------------------- | |
79 | -------------Attacks------------- | |
80 | --------------------------------- | |
81 | ||
82 | remote.OnServerEvent:Connect(function(Player, number, key) | |
83 | if number == 1 and plr.Name == Player.Name and attackd == false then | |
84 | if key == Enum.KeyCode.Z then | |
85 | sine = 0 | |
86 | attackd = true | |
87 | normalanim = false | |
88 | hum.WalkSpeed = 0 | |
89 | hum.JumpPower = 0 | |
90 | for i = 1, 15 do | |
91 | game:GetService("RunService").Heartbeat:Wait() | |
92 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(1.2, 0, 0) + Vector3.new(0, -1.6, 0), 0.15) | |
93 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 1.1) + Vector3.new(0, 0, -0.3), 0.15) | |
94 | LS.C0 = LS.C0:Lerp(LSnor, 0.15) | |
95 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
96 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
97 | end | |
98 | for i = 1, 20 do | |
99 | game:GetService("RunService").Heartbeat:Wait() | |
100 | LS.C0 = LS.C0 * CFrame.Angles(0, 0, -0.06) + Vector3.new(0, 0, -0.03) | |
101 | end | |
102 | local banpart = Instance.new("Part", char) | |
103 | banpart.Size = Vector3.new(1, 1, 1) | |
104 | banpart.CanCollide = false | |
105 | local mesh = Instance.new("SpecialMesh", banpart) | |
106 | mesh.MeshType = "FileMesh" | |
107 | mesh.MeshId = "rbxassetid://28937301" | |
108 | mesh.TextureId = "rbxassetid://28937670" | |
109 | mesh.Scale = Vector3.new(0.8, 0.8, 0.8) | |
110 | local weld = Instance.new("Weld", banpart) | |
111 | weld.Part0 = char["Left Arm"] | |
112 | weld.Part1 = banpart | |
113 | weld.C1 = CFrame.new(0, 1, 0) | |
114 | for i = 1, 20 do | |
115 | game:GetService("RunService").Heartbeat:Wait() | |
116 | rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15) | |
117 | RS.C0 = RS.C0:Lerp(RSnor, 0.15) | |
118 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15) | |
119 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
120 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
121 | end | |
122 | throwbutton = true | |
123 | throw = true | |
124 | repeat game:GetService("RunService").Heartbeat:Wait() | |
125 | remote:FireClient(plr) | |
126 | until throw == false | |
127 | for i = 1, 15 do | |
128 | game:GetService("RunService").Heartbeat:Wait() | |
129 | LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i) | |
130 | end | |
131 | banpart.Parent = workspace | |
132 | weld:Destroy() | |
133 | banpart.CanCollide = true | |
134 | banpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 60 | |
135 | local start = LS.C0 | |
136 | for i = 1, 0, -1 / 15 do | |
137 | game:GetService("RunService").Heartbeat:Wait() | |
138 | LS.C0 = LSnor:Lerp(start, i * i) | |
139 | end | |
140 | normalanim = true | |
141 | attackd = false | |
142 | hum.WalkSpeed = 16 | |
143 | hum.JumpPower = 50 | |
144 | banpart.Touched:Connect(function(hit) | |
145 | if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then | |
146 | local character = hit.Parent | |
147 | character:FindFirstChildOfClass("Humanoid").Sit = true | |
148 | local s = Instance.new("Sound", character.Head) | |
149 | s.SoundId = "rbxassetid://28976727" | |
150 | s.Volume = 10 | |
151 | s:Play() | |
152 | end | |
153 | end) | |
154 | ||
155 | local Hair = Instance.new("Part") | |
156 | Hair.Parent = char | |
157 | Hair.Name = "GreenTopHat" | |
158 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
159 | Hair.CFrame = char.Head.CFrame | |
160 | Hair:BreakJoints() | |
161 | Hair.CanCollide = false | |
162 | Hair.BrickColor = BrickColor.new("Medium Stone") | |
163 | Hair.TopSurface = "Smooth" | |
164 | Hair.BottomSurface = "Smooth" | |
165 | Weld = Instance.new("Weld") | |
166 | Weld.Name = "Weld" | |
167 | Weld.Part0 = char.Head | |
168 | Weld.Part1 = Hair | |
169 | Weld.Parent = char.Head | |
170 | Weld.C0 = CFrame.new(0, 0.77, 0)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0) | |
171 | Mesh = Instance.new("SpecialMesh") | |
172 | Mesh.Parent = Hair | |
173 | Mesh.MeshId = "http://www.roblox.com/asset/?id=1028713" | |
174 | Mesh.TextureId = "http://www.roblox.com/asset/?id=1563327" | |
175 | Mesh.Scale = Vector3.new(1, 1, 1) | |
176 | ||
177 | - | sound.Volume = 5 |
177 | + | |
178 | spawn(function() | |
179 | wait(15) | |
180 | if banpart.Parent == workspace then | |
181 | banpart:Destroy() | |
182 | end | |
183 | end) | |
184 | end | |
185 | if key == Enum.KeyCode.X then | |
186 | attackd = true | |
187 | local bpart = Instance.new("Part", workspace) | |
188 | bpart.Size = Vector3.new(2.4, 3.5, 2.4) | |
189 | bpart.Locked = true | |
190 | bpart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2) | |
191 | bpart.Velocity = Vector3.new(0, 50, 0) + char.HumanoidRootPart.CFrame.LookVector * 50 | |
192 | local mesh = Instance.new("SpecialMesh", bpart) | |
193 | mesh.MeshType = "FileMesh" | |
194 | mesh.MeshId = "http://www.roblox.com/asset/?id=29873142" | |
195 | mesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
196 | mesh.TextureId = "http://www.roblox.com/asset/?id=31082268" | |
197 | local update = 0.4 | |
198 | while update > 0.1 do | |
199 | local sound = Instance.new("Sound", bpart) | |
200 | sound.SoundId = "rbxasset://sounds\\clickfast.wav" | |
201 | sound.Volume = 50 | |
202 | sound:Play() | |
203 | wait(update) | |
204 | update = update * 0.9 | |
205 | end | |
206 | for i = 1, 50 do | |
207 | local banpart = Instance.new("Part", workspace) | |
208 | banpart.Size = Vector3.new(1, 1, 1) | |
209 | banpart.CanCollide = true | |
210 | banpart.CFrame = bpart.CFrame | |
211 | local bCFrame = CFrame.new(0, 0, 0) | |
212 | local bVel = Vector3.new(0, 0, 0) | |
213 | local mesh = Instance.new("SpecialMesh", banpart) | |
214 | mesh.MeshType = "FileMesh" | |
215 | mesh.MeshId = "rbxassetid://28937301" | |
216 | mesh.TextureId = "rbxassetid://28937670" | |
217 | mesh.Scale = Vector3.new(0.8, 0.8, 0.8) | |
218 | local weld = Instance.new("Weld", banpart) | |
219 | weld.Part0 = bpart | |
220 | weld.Part1 = banpart | |
221 | spawn(function() | |
222 | wait(1) | |
223 | banpart.Touched:Connect(function(hit) | |
224 | if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then | |
225 | local character = hit.Parent | |
226 | character:FindFirstChildOfClass("Humanoid").Sit = true | |
227 | local s = Instance.new("Sound", character.Head) | |
228 | s.SoundId = "rbxassetid://28976727" | |
229 | s.Volume = 10 | |
230 | s:Play() | |
231 | end | |
232 | end) | |
233 | end) | |
234 | spawn(function() | |
235 | while wait() do | |
236 | if banpart.Parent ~= workspace then | |
237 | banpart = Instance.new("Part", workspace) | |
238 | banpart.Size = Vector3.new(1, 1, 1) | |
239 | banpart.CanCollide = true | |
240 | mesh = Instance.new("SpecialMesh", banpart) | |
241 | mesh.MeshType = "FileMesh" | |
242 | mesh.MeshId = "rbxassetid://28937301" | |
243 | mesh.TextureId = "rbxassetid://28937670" | |
244 | mesh.Scale = Vector3.new(0.8, 0.8, 0.8) | |
245 | banpart.CFrame = bCFrame | |
246 | banpart.Velocity = bVel | |
247 | banpart.Touched:Connect(function(hit) | |
248 | if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then | |
249 | local character = hit.Parent | |
250 | character:FindFirstChildOfClass("Humanoid").Sit = true | |
251 | local s = Instance.new("Sound", character.Head) | |
252 | s.SoundId = "rbxassetid://28976727" | |
253 | s.Volume = 10 | |
254 | s:Play() | |
255 | end | |
256 | end) | |
257 | else | |
258 | bCFrame = banpart.CFrame | |
259 | bVel = banpart.Velocity | |
260 | end | |
261 | end | |
262 | end) | |
263 | end | |
264 | local explosion = Instance.new("Explosion", bpart) | |
265 | explosion.Position = bpart.Position | |
266 | local sound2 = Instance.new("Sound", bpart) | |
267 | sound2.SoundId = "rbxasset://sounds\\Rocket shot.wav" | |
268 | sound2.Volume = 5 | |
269 | sound2:Play() | |
270 | bpart.CanCollide = false | |
271 | attackd = false | |
272 | end | |
273 | if key == Enum.KeyCode.C then | |
274 | sine = 0 | |
275 | attackd = true | |
276 | normalanim = false | |
277 | hum.WalkSpeed = 10 | |
278 | hum.JumpPower = 10 | |
279 | for i = 1, 20 do | |
280 | game:GetService("RunService").Heartbeat:Wait() | |
281 | rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15) | |
282 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 4), 0.15) | |
283 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15) | |
284 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
285 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
286 | end | |
287 | local tpart = Instance.new("Part", char) | |
288 | tpart.Size = Vector3.new(5.523, 6.19, 22.966) | |
289 | tpart.Anchored = true | |
290 | tpart.BrickColor = BrickColor.new("Pine Cone") | |
291 | tpart.Material = "Wood" | |
292 | tpart.CanCollide = false | |
293 | tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1) | |
294 | local mesh = Instance.new("SpecialMesh", tpart) | |
295 | mesh.MeshType = "FileMesh" | |
296 | mesh.MeshId = "rbxassetid://1760841786" | |
297 | wait(0.5) | |
298 | for i = 1, 15 do | |
299 | game:GetService("RunService").Heartbeat:Wait() | |
300 | RS.C0 = RS.C0:Lerp(RS.C0 * CFrame.Angles(0, 0, -0.01), i) | |
301 | LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i) | |
302 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
303 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
304 | tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1) | |
305 | end | |
306 | tpart.Anchored = false | |
307 | tpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 100 | |
308 | tpart.CanCollide = true | |
309 | tpart.Parent = workspace | |
310 | spawn(function() | |
311 | wait(0.3) | |
312 | tpart.Touched:Connect(function(hit) | |
313 | if hit.Size.X + hit.Size.Y + hit.Size.Z < 1000 then | |
314 | hit:BreakJoints() | |
315 | hit.Anchored = false | |
316 | hit.Velocity = tpart.Velocity | |
317 | end | |
318 | end) | |
319 | end) | |
320 | for i = 1, 20 do | |
321 | game:GetService("RunService").Heartbeat:Wait() | |
322 | rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15) | |
323 | RS.C0 = RS.C0:Lerp(RSnor, 0.15) | |
324 | - | crabrave.SoundId = "rbxassetid://1609256184" |
324 | + | |
325 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
326 | - | crabrave.Volume = 1 |
326 | + | |
327 | end | |
328 | attackd = false | |
329 | normalanim = true | |
330 | hum.WalkSpeed = 20 | |
331 | hum.JumpPower = 50 | |
332 | end | |
333 | elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then | |
334 | throwbutton = false | |
335 | throw = false | |
336 | end | |
337 | end) | |
338 | ||
339 | --------------------------------- | |
340 | -----------Wrapping up----------- | |
341 | --------------------------------- | |
342 | ||
343 | while game:GetService("RunService").Heartbeat:Wait() do | |
344 | if normalanim then | |
345 | sine = sine + 1 | |
346 | end | |
347 | if crabrave.Parent == char.Torso then | |
348 | crabrave.SoundId = "rbxassetid://1605521088" | |
349 | crabrave.Playing = true | |
350 | crabrave.Volume = 10 | |
351 | crabrave.Looped = true | |
352 | timepos = crabrave.TimePosition | |
353 | else | |
354 | crabrave = Instance.new("Sound", char.Torso) | |
355 | crabrave.TimePosition = timepos | |
356 | end | |
357 | if remote.Parent == char then | |
358 | remote.Name = "ReplicationEvent" | |
359 | else | |
360 | remote = Instance.new("RemoteEvent", char) | |
361 | end | |
362 | local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char) | |
363 | if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then | |
364 | animpose = "Walking" | |
365 | elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then | |
366 | animpose = "Jumping" | |
367 | elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then | |
368 | animpose = "Falling" | |
369 | else | |
370 | animpose = "Idle" | |
371 | end | |
372 | if animpose == "Idle" and normalanim then | |
373 | RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5)) | |
374 | LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5)) | |
375 | RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0) | |
376 | LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0) | |
377 | rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2) | |
378 | elseif animpose == "Walking" and normalanim then | |
379 | RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5)) | |
380 | LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5)) | |
381 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 10)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0) | |
382 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 10)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0) | |
383 | rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2) | |
384 | elseif animpose == "Jumping" and normalanim then | |
385 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15) | |
386 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15) | |
387 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15) | |
388 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
389 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
390 | elseif animpose == "Falling" and normalanim then | |
391 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15) | |
392 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15) | |
393 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15) | |
394 | RH.C0 = RH.C0:Lerp(RHnor, 0.15) | |
395 | LH.C0 = LH.C0:Lerp(LHnor, 0.15) | |
396 | end | |
397 | end |