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 | local plr = owner | |
7 | local sine = 0 | |
8 | local change = 1 | |
9 | local val = 0 | |
10 | local idle = 0 | |
11 | local donum = 0 | |
12 | local donum2 = 0 | |
13 | local char = plr.Character | |
14 | local mouse = plr:GetMouse() | |
15 | local torso = char.Torso | |
16 | local rs = torso["Right Shoulder"] | |
17 | local ls = torso["Left Shoulder"] | |
18 | local rh = torso["Right Hip"] | |
19 | local lh = torso["Left Hip"] | |
20 | local rj = char.HumanoidRootPart.RootJoint | |
21 | local neck = torso.Neck | |
22 | local animpose = "Idle" | |
23 | local attacking = false | |
24 | local cananim = true | |
25 | local rage = false | |
26 | local shield = nil | |
27 | local deb = false | |
28 | local sprint = false | |
29 | local RAC = char.Torso:WaitForChild("Right Shoulder") | |
30 | local LAC = char.Torso:WaitForChild("Left Shoulder") | |
31 | local RA = char:FindFirstChild("Right Arm") | |
32 | local LA = char:FindFirstChild("Left Arm") | |
33 | local Torso = char.Torso | |
34 | local Head = char.Head | |
35 | local RL = char:FindFirstChild("Right Leg") | |
36 | local LL = char:FindFirstChild("Left Leg") | |
37 | local Root = char.HumanoidRootPart | |
38 | local Humanoid = char.Humanoid | |
39 | local canrage = true | |
40 | local legs = false | |
41 | local powers = false | |
42 | local bc = char:WaitForChild("Body Colors") | |
43 | local multiplier = 1 | |
44 | local lac = char["Body Colors"].LeftArmColor | |
45 | local rac = char["Body Colors"].RightArmColor | |
46 | local rlc = char["Body Colors"].RightArmColor | |
47 | local llc = char["Body Colors"].LeftLegColor | |
48 | local hc = char["Body Colors"].HeadColor | |
49 | local tc = char["Body Colors"].TorsoColor | |
50 | local humanoid = char:FindFirstChildOfClass("Humanoid") | |
51 | local huge = Vector3.new(math.huge,math.huge,math.huge) | |
52 | local mobs = Instance.new("Sound", Torso) | |
53 | mobs.SoundId = "rbxassetid://237963663" | |
54 | mobs.Looped = true | |
55 | mobs.Volume = 3 | |
56 | mobs:Play() | |
57 | local naeeym2 = Instance.new("BillboardGui",char) | |
58 | naeeym2.AlwaysOnTop = true | |
59 | naeeym2.Size = UDim2.new(5,35,2,35) | |
60 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
61 | naeeym2.Adornee = char.Head | |
62 | naeeym2.Name = "Name" | |
63 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
64 | tecks2.BackgroundTransparency = 1 | |
65 | - | basll = Instance.new("Part") |
65 | + | |
66 | tecks2.BorderSizePixel = 0 | |
67 | tecks2.Text = "Pokemon Master" | |
68 | tecks2.Font = "Code" | |
69 | tecks2.TextSize = 35 | |
70 | tecks2.TextTransparency = 0 | |
71 | tecks2.TextStrokeTransparency = 1 | |
72 | tecks2.TextColor3 = Color3.new(22,29,50) | |
73 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
74 | tecks2.Parent = naeeym2 | |
75 | Player = owner | |
76 | Character = Player.Character | |
77 | PlayerGui = Player.PlayerGui | |
78 | Backpack = Player.Backpack | |
79 | Torso = Character.Torso | |
80 | Head = Character.Head | |
81 | Humanoid = Character.Humanoid | |
82 | LeftArm = Character["Left Arm"] | |
83 | LeftLeg = Character["Left Leg"] | |
84 | RightArm = Character["Right Arm"] | |
85 | RightLeg = Character["Right Leg"] | |
86 | Character = Player.Character | |
87 | PlayerGui = Player.PlayerGui | |
88 | Backpack = Player.Backpack | |
89 | Torso = Character.Torso | |
90 | Head = Character.Head | |
91 | Humanoid = Character.Humanoid | |
92 | LS = Torso["Left Shoulder"] | |
93 | LH = Torso["Left Hip"] | |
94 | RS = Torso["Right Shoulder"] | |
95 | RH = Torso["Right Hip"] | |
96 | Neck = Torso.Neck | |
97 | attacktype = 1 | |
98 | vt = Vector3.new | |
99 | cf = CFrame.new | |
100 | euler = CFrame.fromEulerAnglesXYZ | |
101 | angles = CFrame.Angles | |
102 | necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
103 | necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
104 | LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
105 | LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
106 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
107 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
108 | RootPart = Character.HumanoidRootPart | |
109 | RootJoint = RootPart.RootJoint | |
110 | RootCF = euler(-1.57, 0, 3.14) | |
111 | attack = false | |
112 | equipped = true | |
113 | local Anim = "Idle" | |
114 | local Effects = {} | |
115 | mouse = Player:GetMouse() | |
116 | RSH, LSH = nil, nil | |
117 | LH = Torso["Left Hip"] | |
118 | RH = Torso["Right Hip"] | |
119 | RSH = Torso["Right Shoulder"] | |
120 | LSH = Torso["Left Shoulder"] | |
121 | local RbxUtility = LoadLibrary("RbxUtility") | |
122 | - | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0172375813, 0.156434491, -0.987539232, 0.0027301528, 0.987688541, 0.156410769, 0.999848783, 0, -0.0174524169), 0.2) |
122 | + | |
123 | RW = Create("Weld"){ | |
124 | Name = "Right Shoulder", | |
125 | Part0 = Torso , | |
126 | C0 = cf(1.5, 0.5, 0), | |
127 | C1 = cf(0, 0.5, 0), | |
128 | Part1 = RightArm , | |
129 | - | if a == 0.7 then |
129 | + | |
130 | - | basll.CanCollide = false |
130 | + | |
131 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
132 | - | basll.CFrame = CFrame.new(basll.CFrame.p, Root.CFrame.p) |
132 | + | |
133 | formFactor = formfactor, | |
134 | Parent = parent, | |
135 | Reflectance = reflectance, | |
136 | Transparency = transparency, | |
137 | CanCollide = false, | |
138 | - | game.Debris:AddItem(bv, 0.1) |
138 | + | |
139 | BrickColor = BrickColor.new(tostring(brickcolor)), | |
140 | - | wait(0.2) |
140 | + | |
141 | - | basll.Touched:connect(function(hit2) |
141 | + | |
142 | - | if hit2.Parent:FindFirstChildOfClass("Humanoid") then |
142 | + | |
143 | Material = material, | |
144 | } | |
145 | nooutline(fp) | |
146 | - | print("pass") |
146 | + | |
147 | end | |
148 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
149 | - | local uhum = hit2.Parent:FindFirstChildOfClass("Humanoid") |
149 | + | |
150 | - | local Roou = hit2.Parent:FindFirstChild("HumanoidRootPart") |
150 | + | |
151 | Offset = offset, | |
152 | - | Root.Position = Vector3.new(-83.4299622, 2, -5.97999287) |
152 | + | |
153 | - | Humanoid.WalkSpeed = 0 |
153 | + | |
154 | if Mesh == "SpecialMesh" then | |
155 | Msh.MeshType = meshtype | |
156 | - | Roou.Position = Vector3.new(-72.9500122, 2, -43.1300049) |
156 | + | |
157 | - | uhum.WalkSpeed = 0 |
157 | + | |
158 | return Msh | |
159 | - | Part023 = Instance.new("Part") |
159 | + | |
160 | - | Part132 = Instance.new("Part") |
160 | + | |
161 | - | Part222 = Instance.new("Part") |
161 | + | |
162 | - | Part322 = Instance.new("Part") |
162 | + | |
163 | - | Part023.Parent = workspace |
163 | + | |
164 | - | Part023.CFrame = CFrame.new(-84.2199631, 0.13499999, -6.81999397, 0, 0, 1, -1, 0, 0, 0, -1, 0) |
164 | + | |
165 | - | Part023.Orientation = Vector3.new(0, 90, -90) |
165 | + | |
166 | - | Part023.Position = Vector3.new(-84.2199631, 0.13499999, -6.81999397) |
166 | + | |
167 | - | Part023.Rotation = Vector3.new(-90, 90, 0) |
167 | + | |
168 | - | Part023.Color = Color3.new(0.156863, 0.498039, 0.278431) |
168 | + | |
169 | - | Part023.Size = Vector3.new(0.269999981, 14.5599976, 17.7799911) |
169 | + | |
170 | - | Part023.Anchored = true |
170 | + | |
171 | - | Part023.BottomSurface = Enum.SurfaceType.Smooth |
171 | + | |
172 | - | Part023.BrickColor = BrickColor.new("Dark green") |
172 | + | |
173 | - | Part023.Material = Enum.Material.Grass |
173 | + | |
174 | - | Part023.TopSurface = Enum.SurfaceType.Smooth |
174 | + | |
175 | - | Part023.brickColor = BrickColor.new("Dark green") |
175 | + | |
176 | - | Part023.Shape = Enum.PartType.Cylinder |
176 | + | |
177 | - | Part132.Name = "You" |
177 | + | |
178 | - | Part132.Parent = workspace |
178 | + | |
179 | - | Part132.CFrame = CFrame.new(-83.4299622, 0.294999987, -5.97999287, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
179 | + | |
180 | - | Part132.Position = Vector3.new(-83.4299622, 0.294999987, -5.97999287) |
180 | + | |
181 | - | Part132.Transparency = 1 |
181 | + | |
182 | - | Part132.Size = Vector3.new(4, 0.0500000007, 2) |
182 | + | |
183 | - | Part132.Anchored = true |
183 | + | |
184 | - | Part132.BottomSurface = Enum.SurfaceType.Smooth |
184 | + | |
185 | - | Part132.TopSurface = Enum.SurfaceType.Smooth |
185 | + | |
186 | - | Part222.Parent = workspace |
186 | + | |
187 | - | Part222.CFrame = CFrame.new(-73.0100098, 0.25999999, -43.0700073, 0, 0, 1, -1, 0, 0, 0, -1, 0) |
187 | + | |
188 | - | Part222.Orientation = Vector3.new(0, 90, -90) |
188 | + | |
189 | - | Part222.Position = Vector3.new(-73.0100098, 0.25999999, -43.0700073) |
189 | + | |
190 | - | Part222.Rotation = Vector3.new(-90, 90, 0) |
190 | + | |
191 | - | Part222.Color = Color3.new(0.156863, 0.498039, 0.278431) |
191 | + | |
192 | - | Part222.Size = Vector3.new(0.519999981, 14.5599976, 17.7799911) |
192 | + | |
193 | - | Part222.Anchored = true |
193 | + | |
194 | - | Part222.BottomSurface = Enum.SurfaceType.Smooth |
194 | + | |
195 | - | Part222.BrickColor = BrickColor.new("Dark green") |
195 | + | |
196 | - | Part222.Material = Enum.Material.Grass |
196 | + | |
197 | - | Part222.TopSurface = Enum.SurfaceType.Smooth |
197 | + | |
198 | - | Part222.brickColor = BrickColor.new("Dark green") |
198 | + | |
199 | - | Part222.Shape = Enum.PartType.Cylinder |
199 | + | |
200 | - | Part322.Name = "User" |
200 | + | |
201 | - | Part322.Parent = workspace |
201 | + | |
202 | - | Part322.CFrame = CFrame.new(-72.9500122, 0.544999957, -43.1300049, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
202 | + | |
203 | - | Part322.Position = Vector3.new(-72.9500122, 0.544999957, -43.1300049) |
203 | + | |
204 | - | Part322.Transparency = 1 |
204 | + | |
205 | - | Part322.Size = Vector3.new(4, 0.0500000007, 2) |
205 | + | |
206 | - | Part322.Anchored = true |
206 | + | |
207 | - | Part322.BottomSurface = Enum.SurfaceType.Smooth |
207 | + | |
208 | - | Part322TopSurface = Enum.SurfaceType.Smooth |
208 | + | |
209 | if j then | |
210 | if true then | |
211 | local new = Instance.new("Weld") | |
212 | new.Part0 = j.Part0 | |
213 | j.Part0 = nil | |
214 | new.Name = j.Name.." Replacement" | |
215 | new.Parent = j.Parent | |
216 | new.Part1 = j.Part1 | |
217 | new.C0 = j.C0 | |
218 | new.C1 = j.C1 | |
219 | return new | |
220 | end | |
221 | end | |
222 | end | |
223 | function rayCast(Pos, Dir, Max, Ignore) | |
224 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
225 | end | |
226 | function removejoint(name) | |
227 | local j = torso:FindFirstChild(name.." Replacement") | |
228 | if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end | |
229 | if j then | |
230 | local p0 = j.Part0 | |
231 | local c0 = j.C0 | |
232 | local c1 = j.C1 | |
233 | j:Destroy() | |
234 | local new = p0:FindFirstChild(name) | |
235 | local ac0 = new.C0 | |
236 | local ac1 = new.C1 | |
237 | new.Part0 = p0 | |
238 | new.C0 = c0 | |
239 | new.C1 = c1 | |
240 | spawn(function() | |
241 | for i = 0, 1, 0.1 do | |
242 | new.C0 = new.C0:Lerp(ac0, 0.7) | |
243 | new.C1 = new.C1:lerp(ac1, 0.7) | |
244 | wait() | |
245 | end | |
246 | end) | |
247 | end | |
248 | end | |
249 | function fixalljoints() | |
250 | for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do | |
251 | removejoint(v) | |
252 | end | |
253 | end | |
254 | function getnewjoints() | |
255 | local rs = replacejoint("Right Shoulder") | |
256 | local ls = replacejoint("Left Shoulder") | |
257 | local rh = replacejoint("Right Hip") | |
258 | local lh = replacejoint("Left Hip") | |
259 | local neck = replacejoint("Neck") | |
260 | local rj = replacejoint("RootJoint") | |
261 | return rs,ls,rh,lh,neck,rj | |
262 | end | |
263 | function weld(parent, part0, part1, c0, c1) | |
264 | local Weld = Create("Weld"){ | |
265 | Parent = parent, | |
266 | Part0 = part0, | |
267 | Part1 = part1, | |
268 | C0 = c0, | |
269 | C1 = c1, | |
270 | } | |
271 | return Weld | |
272 | end | |
273 | local gay = false | |
274 | ||
275 | basll = Instance.new("Part") | |
276 | Decal1 = Instance.new("Decal") | |
277 | Decal2 = Instance.new("Decal") | |
278 | Decal3 = Instance.new("Decal") | |
279 | Decal4 = Instance.new("Decal") | |
280 | Decal5 = Instance.new("Decal") | |
281 | Decal6 = Instance.new("Decal") | |
282 | Decal7 = Instance.new("Decal") | |
283 | basll.Name = "Handle" | |
284 | basll.Parent = Torso | |
285 | basll.Color = Color3.new(0.94902, 0.952941, 0.952941) | |
286 | basll.Transparency = 1 | |
287 | basll.Size = Vector3.new(1, 1, 1) | |
288 | basll.BottomSurface = Enum.SurfaceType.Smooth | |
289 | basll.BrickColor = BrickColor.new("White") | |
290 | basll.TopSurface = Enum.SurfaceType.Smooth | |
291 | basll.brickColor = BrickColor.new("White") | |
292 | basll.Shape = Enum.PartType.Ball | |
293 | Decal1.Parent = basll | |
294 | Decal1.Texture = "http://www.roblox.com/asset/?id=28106051" | |
295 | Decal2.Parent = basll | |
296 | Decal2.Texture = "http://www.roblox.com/asset/?id=28106111" | |
297 | Decal2.Face = Enum.NormalId.Top | |
298 | Decal3.Parent = basll | |
299 | Decal3.Texture = "http://www.roblox.com/asset/?id=28106493" | |
300 | Decal3.Face = Enum.NormalId.Left | |
301 | Decal4.Parent = basll | |
302 | Decal4.Texture = "http://www.roblox.com/asset/?id=28106493" | |
303 | Decal4.Face = Enum.NormalId.Back | |
304 | Decal5.Parent = basll | |
305 | Decal5.Texture = "http://www.roblox.com/asset/?id=28106708" | |
306 | Decal5.Face = Enum.NormalId.Bottom | |
307 | Decal6.Parent = basll | |
308 | Decal6.Texture = "http://www.roblox.com/asset/?id=25770051" | |
309 | Decal6.Face = Enum.NormalId.Bottom | |
310 | Decal7.Parent = basll | |
311 | Decal7.Texture = "http://www.roblox.com/asset/?id=28106493" | |
312 | Decal7.Face = Enum.NormalId.Right | |
313 | basll.Parent = Torso | |
314 | local weld = Instance.new("Weld") | |
315 | weld.Part0 = basll | |
316 | weld.Part1 = RA | |
317 | weld.C1 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90),0,math.rad(180)) | |
318 | weld.Parent = basll | |
319 | mouse.KeyDown:connect(function(key) | |
320 | if key == "q" then | |
321 | local rs,ls,rh,lh,neck,rj = getnewjoints() | |
322 | for i = 0, 2, 0.1 do | |
323 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0.305212736, 0.156434491, -0.9393484, -0.048340939, 0.987688541, 0.148778111, 0.951057434, 0, 0.309017241), 0.2) | |
324 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.00729153398, -0.104904592, 0.994455755, -0.104274213, -0.989144921, -0.103580341, 0.994524956, -0.102940485, -0.0181511845), 0.2) | |
325 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0270539615, 0.100966766, -0.994522035, -0.257401317, 0.960634768, 0.104528472, 0.96592617, 0.258819103, 0), 0.2) | |
326 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.00911026634, -0.0866784006, 0.996195018, -0.10413079, 0.990738153, 0.0871557668, -0.994522691, -0.104528546, 0), 0.2) | |
327 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
328 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.970296144, -0.241921961, 0, 0, 0, 1, -0.241921961, 0.970296144, 0), 0.2) | |
329 | swait() | |
330 | end | |
331 | swait(15) | |
332 | for a = 0, 2, 0.1 do | |
333 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0172375813, 0.156434491, -0.987539232, 0.0027301528, 0.987688541, 0.156410769, 0.999848783, 0, -0.0174524169), 0.2) | |
334 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0183038525, 0.103552699, 0.994455755, 0.340473503, 0.934539497, -0.103580341, -0.940082133, 0.340481132, -0.0181511845), 0.2) | |
335 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0357508697, 0.0982247144, -0.994522035, 0.34014678, 0.934545875, 0.104528472, 0.93969363, -0.342020512, 0), 0.2) | |
336 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0298090633, -0.0818997845, 0.996195018, 0.340719104, 0.936117887, 0.0871557668, -0.939694166, 0.342020661, 0), 0.2) | |
337 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
338 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546976, 0.12186949, 0, 0, 0, 1, 0.12186949, 0.992546976, 0), 0.2) | |
339 | summon = true | |
340 | if a == 0.5 then | |
341 | for i = 0, 2, 0.1 do | |
342 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2) | |
343 | rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2) | |
344 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954e-009, 9.31323796e-010, 1.00000024, -0.866026342, 0.500000715, -1.86264515e-009), 0.2) | |
345 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2) | |
346 | swait() | |
347 | end | |
348 | basll.CanCollide = true | |
349 | weld:Destroy() | |
350 | basll.CFrame = CFrame.new(basll.CFrame.p, mouse.Hit.p) | |
351 | local bv = Instance.new("BodyVelocity") | |
352 | bv.MaxForce = huge | |
353 | bv.Velocity = Root.CFrame.lookVector*100 | |
354 | bv.Parent = basll | |
355 | print("work") | |
356 | game.Debris:AddItem(bv, 0.3) | |
357 | local ready = false | |
358 | wait() | |
359 | basll.Touched:connect(function(hit) | |
360 | if hit.Parent:FindFirstChildOfClass("Part") then | |
361 | if ready == false then | |
362 | basll.CanCollide = true | |
363 | basll.Anchored = true | |
364 | local SongDriver1 = Instance.new("Sound") | |
365 | SongDriver1.Parent = basll | |
366 | SongDriver1.SoundId = "rbxassetid://134872897" | |
367 | SongDriver1.Volume = 2 | |
368 | SongDriver1:Play() | |
369 | ready = true | |
370 | ||
371 | fixalljoints() | |
372 | ||
373 | local player = owner | |
374 | local Cha = player.Character | |
375 | local mouse = player:GetMouse() | |
376 | local henshine = false | |
377 | local RAC = Cha.Torso:WaitForChild("Right Shoulder") | |
378 | local LAC = Cha.Torso:WaitForChild("Left Shoulder") | |
379 | local RA = Cha:FindFirstChild("Right Arm") | |
380 | local LA = Cha:FindFirstChild("Left Arm") | |
381 | local Torso = Cha.Torso | |
382 | local Head = Cha.Head | |
383 | local Root = Cha.HumanoidRootPart | |
384 | local RL = Cha:FindFirstChild("Right Leg") | |
385 | local LL = Cha:FindFirstChild("Left Leg") | |
386 | local Humanoid = Cha.Humanoid | |
387 | local chat = game:GetService("Chat") | |
388 | ||
389 | ||
390 | local SongDriver12 = Instance.new("Sound") | |
391 | SongDriver12.Parent = Cha.Torso | |
392 | SongDriver12.SoundId = "rbxassetid://305568662" | |
393 | SongDriver12.Volume = 2 | |
394 | SongDriver12:Play() | |
395 | ||
396 | local ll3part2 = Instance.new("Part") | |
397 | ll3part2.Parent = Torso | |
398 | ll3part2.Name = "Kyogre" | |
399 | ll3part2.BrickColor = BrickColor.new("Pearl") | |
400 | ll3part2.CanCollide = false | |
401 | ll3part2.Size = Vector3.new(8.16, 6.69, 0.05) | |
402 | ll3part2.Anchored = true | |
403 | ll3part2.Locked = true | |
404 | ll3part2.Transparency = 1 | |
405 | local Decal71 = Instance.new("Decal") | |
406 | Decal71.Parent = ll3part2 | |
407 | Decal71.Face = Enum.NormalId.Front | |
408 | local Decal712 = Instance.new("Decal") | |
409 | Decal712.Parent = ll3part2 | |
410 | Decal712.Name = "De" | |
411 | Decal712.Face = Enum.NormalId.Back | |
412 | ||
413 | ll3part2.Position = basll.Position + Vector3.new(0,3,0) | |
414 | ||
415 | wait(1) | |
416 | ||
417 | game:GetService('RunService').Stepped:Connect(function() | |
418 | ll3part2.CFrame = Root.CFrame*CFrame.new(6,3,3) | |
419 | end) | |
420 | ||
421 | mouse.KeyDown:connect(function(key) | |
422 | if key == "z" then | |
423 | local sed = Instance.new("Sound") | |
424 | sed.Parent = ll3part2 | |
425 | sed.SoundId = "rbxassetid://305568662" | |
426 | sed.Volume = 2 | |
427 | sed:Play() | |
428 | chat:Chat(player.Character.Head, "Kyogre Water Blast!") | |
429 | local rs,ls,rh,lh,neck,rj = getnewjoints() | |
430 | for i = 0, 2, 0.1 do | |
431 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2) | |
432 | rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2) | |
433 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954e-009, 9.31323796e-010, 1.00000024, -0.866026342, 0.500000715, -1.86264515e-009), 0.2) | |
434 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2) | |
435 | swait() | |
436 | end | |
437 | ||
438 | local fus = Instance.new("Part") | |
439 | fus.Size = Vector3.new(2, 2, 2) | |
440 | fus.Anchored = false | |
441 | fus.Name = "damage" | |
442 | fus.CanCollide = false | |
443 | fus.BrickColor = BrickColor.new("Bright blue") | |
444 | fus.Transparency = 1 | |
445 | fus.CFrame = ll3part2.CFrame*CFrame.new(0,-2,0) | |
446 | ParticleEmitter0 = Instance.new("ParticleEmitter") | |
447 | ParticleEmitter0.Name = "1" | |
448 | ParticleEmitter0.Parent = fus | |
449 | ParticleEmitter0.Speed = NumberRange.new(0, 0) | |
450 | ParticleEmitter0.Rotation = NumberRange.new(-180, 180) | |
451 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.917647, 1, 1),Color3.new(0.917647, 1, 1)) | |
452 | ParticleEmitter0.LightEmission = 0.20000000298023 | |
453 | ParticleEmitter0.LightInfluence = 0.050000000745058 | |
454 | ParticleEmitter0.Texture = "rbxassetid://387288028" | |
455 | ParticleEmitter0.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1) | |
456 | ParticleEmitter0.ZOffset = 1 | |
457 | ParticleEmitter0.Size = NumberSequence.new(3,3) | |
458 | ParticleEmitter0.Lifetime = NumberRange.new(1, 1) | |
459 | ParticleEmitter0.Rate = 82 | |
460 | ParticleEmitter0.RotSpeed = NumberRange.new(-180, 180) | |
461 | ParticleEmitter0.SpreadAngle = Vector2.new(6, 6) | |
462 | ParticleEmitter0.VelocitySpread = 6 | |
463 | ||
464 | ||
465 | local mesh = Instance.new("SpecialMesh") | |
466 | mesh.MeshType = "FileMesh" | |
467 | mesh.MeshId = "rbxassetid://430736398" | |
468 | mesh.Parent = fus | |
469 | ||
470 | local bp = Instance.new("BodyVelocity") | |
471 | bp.maxForce = Vector3.new(math.huge, math.huge,math.huge) | |
472 | bp.Velocity = ll3part2.CFrame.lookVector*150 | |
473 | bp.Parent = fus | |
474 | ||
475 | fus.Parent = Torso | |
476 | ||
477 | coroutine.resume(coroutine.create(function() | |
478 | wait(0.4) | |
479 | for i = 1, 5 do | |
480 | wait(0.01) | |
481 | fus.Size = fus.Size + Vector3.new(1, 1, 1) | |
482 | end | |
483 | wait(3) | |
484 | fus.Transparency = 0 | |
485 | fus:remove() | |
486 | fixalljoints() | |
487 | end)) | |
488 | local canattack = true --you had this as a Instance before, you can just do it as variable | |
489 | Torso:FindFirstChild("damage").Touched:Connect(function(user) --event | |
490 | local humanoid2 = user.Parent:FindFirstChild("Humanoid")--checks if there is a humanoid in p | |
491 | if canattack == true and humanoid2 then --if canattack is false and there is a humanoid | |
492 | ||
493 | canattack = false--sets canattack to false | |
494 | ||
495 | humanoid2:TakeDamage(42) | |
496 | wait(0.3) | |
497 | canattack = true | |
498 | ||
499 | end | |
500 | ||
501 | end) | |
502 | ||
503 | end | |
504 | end) | |
505 | ||
506 | ||
507 | ||
508 | mouse.KeyDown:connect(function(key) | |
509 | if key == "v" then | |
510 | ||
511 | chat:Chat(owner.Character.Head, "Kyogre Rain Fall!") | |
512 | ||
513 | Model0 = Instance.new("Model") | |
514 | Part1 = Instance.new("Part") | |
515 | ParticleEmitter2 = Instance.new("ParticleEmitter") | |
516 | Part3 = Instance.new("Part") | |
517 | ParticleEmitter4 = Instance.new("ParticleEmitter") | |
518 | Part5 = Instance.new("Part") | |
519 | ParticleEmitter6 = Instance.new("ParticleEmitter") | |
520 | Part7 = Instance.new("Part") | |
521 | ParticleEmitter8 = Instance.new("ParticleEmitter") | |
522 | Part9 = Instance.new("Part") | |
523 | ParticleEmitter10 = Instance.new("ParticleEmitter") | |
524 | Part11 = Instance.new("Part") | |
525 | ParticleEmitter12 = Instance.new("ParticleEmitter") | |
526 | Sky13 = Instance.new("Sky") | |
527 | Model0.Name = "Cloud" | |
528 | Model0.Parent = workspace | |
529 | Part1.Parent = Model0 | |
530 | Part1.CFrame = CFrame.new(125.963196, 113.600372, 201.838348, -2.12383497e-08, -0.0199206024, 0.999801159, 3.28179709e-07, -0.999801159, -0.0199207217, 0.99999994, 3.22424484e-07, 3.42798785e-08) | |
531 | Part1.Orientation = Vector3.new(1.13999999, 90, 180) | |
532 | Part1.Position = Vector3.new(125.963196, 113.600372, 201.838348) | |
533 | Part1.Rotation = Vector3.new(90, 88.8600006, 90) | |
534 | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
535 | Part1.Transparency = 1 | |
536 | Part1.Size = Vector3.new(218.93515, 64.9928284, 225.207718) | |
537 | Part1.Anchored = true | |
538 | Part1.BrickColor = BrickColor.new("Black") | |
539 | Part1.Material = Enum.Material.Slate | |
540 | Part1.brickColor = BrickColor.new("Black") | |
541 | Part1.FormFactor = Enum.FormFactor.Symmetric | |
542 | Part1.formFactor = Enum.FormFactor.Symmetric | |
543 | ParticleEmitter2.Parent = Part1 | |
544 | ParticleEmitter2.Speed = NumberRange.new(0, 0) | |
545 | ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1)) | |
546 | ParticleEmitter2.Texture = "http://www.roblox.com/asset/?id=241876428" | |
547 | ParticleEmitter2.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186) | |
548 | ParticleEmitter2.Size = NumberSequence.new(2,2) | |
549 | ParticleEmitter2.Acceleration = Vector3.new(0, -50, 0) | |
550 | ParticleEmitter2.Lifetime = NumberRange.new(2.5, 2.5) | |
551 | ParticleEmitter2.Rate = 500 | |
552 | ParticleEmitter2.SpreadAngle = Vector2.new(10, 10) | |
553 | ParticleEmitter2.VelocitySpread = 10 | |
554 | Part3.Parent = Model0 | |
555 | Part3.CFrame = CFrame.new(-95.7134705, 99.3041534, 210.907654, -2.12383497e-08, -0.0199206024, 0.999801159, 3.28179709e-07, -0.999801159, -0.0199207217, 0.99999994, 3.22424484e-07, 3.42798785e-08) | |
556 | Part3.Orientation = Vector3.new(1.13999999, 90, 180) | |
557 | Part3.Position = Vector3.new(-95.7134705, 99.3041534, 210.907654) | |
558 | Part3.Rotation = Vector3.new(90, 88.8600006, 90) | |
559 | Part3.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
560 | Part3.Transparency = 1 | |
561 | Part3.Size = Vector3.new(237.072693, 43.8323746, 383.911102) | |
562 | Part3.Anchored = true | |
563 | Part3.BrickColor = BrickColor.new("Black") | |
564 | Part3.Material = Enum.Material.Slate | |
565 | Part3.brickColor = BrickColor.new("Black") | |
566 | Part3.FormFactor = Enum.FormFactor.Symmetric | |
567 | Part3.formFactor = Enum.FormFactor.Symmetric | |
568 | ParticleEmitter4.Parent = Part3 | |
569 | ParticleEmitter4.Speed = NumberRange.new(0, 0) | |
570 | ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1)) | |
571 | ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=241876428" | |
572 | ParticleEmitter4.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186) | |
573 | ParticleEmitter4.Size = NumberSequence.new(2,2) | |
574 | ParticleEmitter4.Acceleration = Vector3.new(0, -50, 0) | |
575 | ParticleEmitter4.Lifetime = NumberRange.new(2.5, 2.5) | |
576 | ParticleEmitter4.Rate = 500 | |
577 | ParticleEmitter4.SpreadAngle = Vector2.new(10, 10) | |
578 | ParticleEmitter4.VelocitySpread = 10 | |
579 | Part5.Parent = Model0 | |
580 | Part5.CFrame = CFrame.new(126.45311, 117.118408, 67.3167725, -2.12383497e-08, -0.0199206024, 0.999801159, 3.28179709e-07, -0.999801159, -0.0199207217, 0.99999994, 3.22424484e-07, 3.42798785e-08) | |
581 | Part5.Orientation = Vector3.new(1.13999999, 90, 180) | |
582 | Part5.Position = Vector3.new(126.45311, 117.118408, 67.3167725) | |
583 | Part5.Rotation = Vector3.new(90, 88.8600006, 90) | |
584 | Part5.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
585 | Part5.Transparency = 1 | |
586 | Part5.Size = Vector3.new(237.072693, 43.8323746, 308.338043) | |
587 | Part5.Anchored = true | |
588 | Part5.BrickColor = BrickColor.new("Black") | |
589 | Part5.Material = Enum.Material.Slate | |
590 | Part5.brickColor = BrickColor.new("Black") | |
591 | Part5.FormFactor = Enum.FormFactor.Symmetric | |
592 | Part5.formFactor = Enum.FormFactor.Symmetric | |
593 | ParticleEmitter6.Parent = Part5 | |
594 | ParticleEmitter6.Speed = NumberRange.new(0, 0) | |
595 | ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1)) | |
596 | ParticleEmitter6.Texture = "http://www.roblox.com/asset/?id=241876428" | |
597 | ParticleEmitter6.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186) | |
598 | ParticleEmitter6.Size = NumberSequence.new(2,2) | |
599 | ParticleEmitter6.Acceleration = Vector3.new(0, -50, 0) | |
600 | ParticleEmitter6.Lifetime = NumberRange.new(2.5, 2.5) | |
601 | ParticleEmitter6.Rate = 500 | |
602 | ParticleEmitter6.SpreadAngle = Vector2.new(10, 10) | |
603 | ParticleEmitter6.VelocitySpread = 10 | |
604 | Part7.Parent = Model0 | |
605 | Part7.CFrame = CFrame.new(-159.202057, 115.269096, -46.7988205, -2.12383497e-08, -0.0199206024, 0.999801159, 3.28179709e-07, -0.999801159, -0.0199207217, 0.99999994, 3.22424484e-07, 3.42798785e-08) | |
606 | Part7.Orientation = Vector3.new(1.13999999, 90, 180) | |
607 | Part7.Position = Vector3.new(-159.202057, 115.269096, -46.7988205) | |
608 | Part7.Rotation = Vector3.new(90, 88.8600006, 90) | |
609 | Part7.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
610 | Part7.Transparency = 1 | |
611 | Part7.Size = Vector3.new(323.225922, 43.8323746, 317.40686) | |
612 | Part7.Anchored = true | |
613 | Part7.BrickColor = BrickColor.new("Black") | |
614 | Part7.Material = Enum.Material.Slate | |
615 | Part7.brickColor = BrickColor.new("Black") | |
616 | Part7.FormFactor = Enum.FormFactor.Symmetric | |
617 | Part7.formFactor = Enum.FormFactor.Symmetric | |
618 | ParticleEmitter8.Parent = Part7 | |
619 | ParticleEmitter8.Speed = NumberRange.new(0, 0) | |
620 | ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1)) | |
621 | ParticleEmitter8.Texture = "http://www.roblox.com/asset/?id=241876428" | |
622 | ParticleEmitter8.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186) | |
623 | ParticleEmitter8.Size = NumberSequence.new(2,2) | |
624 | ParticleEmitter8.Acceleration = Vector3.new(0, -50, 0) | |
625 | ParticleEmitter8.Lifetime = NumberRange.new(2.5, 2.5) | |
626 | ParticleEmitter8.Rate = 500 | |
627 | ParticleEmitter8.SpreadAngle = Vector2.new(10, 10) | |
628 | ParticleEmitter8.VelocitySpread = 10 | |
629 | Part9.Parent = Model0 | |
630 | Part9.CFrame = CFrame.new(90.9316101, 97.3010101, -103.478722, -2.12383497e-08, -0.0199206024, 0.999801159, 3.28179709e-07, -0.999801159, -0.0199207217, 0.99999994, 3.22424484e-07, 3.42798785e-08) | |
631 | Part9.Orientation = Vector3.new(1.13999999, 90, 180) | |
632 | Part9.Position = Vector3.new(90.9316101, 97.3010101, -103.478722) | |
633 | Part9.Rotation = Vector3.new(90, 88.8600006, 90) | |
634 | Part9.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
635 | Part9.Transparency = 1 | |
636 | Part9.Size = Vector3.new(185.682999, 43.8323746, 324.964172) | |
637 | Part9.Anchored = true | |
638 | Part9.BrickColor = BrickColor.new("Black") | |
639 | Part9.Material = Enum.Material.Slate | |
640 | Part9.brickColor = BrickColor.new("Black") | |
641 | Part9.FormFactor = Enum.FormFactor.Symmetric | |
642 | Part9.formFactor = Enum.FormFactor.Symmetric | |
643 | ParticleEmitter10.Parent = Part9 | |
644 | ParticleEmitter10.Speed = NumberRange.new(0, 0) | |
645 | ParticleEmitter10.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1)) | |
646 | ParticleEmitter10.Texture = "http://www.roblox.com/asset/?id=241876428" | |
647 | ParticleEmitter10.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186) | |
648 | ParticleEmitter10.Size = NumberSequence.new(2,2) | |
649 | ParticleEmitter10.Acceleration = Vector3.new(0, -50, 0) | |
650 | ParticleEmitter10.Lifetime = NumberRange.new(2.5, 2.5) | |
651 | ParticleEmitter10.Rate = 500 | |
652 | ParticleEmitter10.SpreadAngle = Vector2.new(10, 10) | |
653 | ParticleEmitter10.VelocitySpread = 10 | |
654 | Part11.Parent = Model0 | |
655 | Part11.CFrame = CFrame.new(-38.2844696, 80.5067139, -219.858307, -2.12383497e-08, -0.0199206024, 0.999801159, 3.28179709e-07, -0.999801159, -0.0199207217, 0.99999994, 3.22424484e-07, 3.42798785e-08) | |
656 | Part11.Orientation = Vector3.new(1.13999999, 90, 180) | |
657 | Part11.Position = Vector3.new(-38.2844696, 80.5067139, -219.858307) | |
658 | Part11.Rotation = Vector3.new(90, 88.8600006, 90) | |
659 | Part11.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
660 | Part11.Transparency = 1 | |
661 | Part11.Size = Vector3.new(88.9494781, 43.8323746, 317.40686) | |
662 | Part11.Anchored = true | |
663 | Part11.BrickColor = BrickColor.new("Black") | |
664 | Part11.Material = Enum.Material.Slate | |
665 | Part11.brickColor = BrickColor.new("Black") | |
666 | Part11.FormFactor = Enum.FormFactor.Symmetric | |
667 | Part11.formFactor = Enum.FormFactor.Symmetric | |
668 | ParticleEmitter12.Parent = Part11 | |
669 | ParticleEmitter12.Speed = NumberRange.new(0, 0) | |
670 | ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0.666667, 1, 1)) | |
671 | ParticleEmitter12.Texture = "http://www.roblox.com/asset/?id=241876428" | |
672 | ParticleEmitter12.Transparency = NumberSequence.new(0.84375,0.41874998807907,0.63125002384186,0.44374996423721,0.60000002384186) | |
673 | ParticleEmitter12.Size = NumberSequence.new(2,2) | |
674 | ParticleEmitter12.Acceleration = Vector3.new(0, -50, 0) | |
675 | ParticleEmitter12.Lifetime = NumberRange.new(2.5, 2.5) | |
676 | ParticleEmitter12.Rate = 500 | |
677 | ParticleEmitter12.SpreadAngle = Vector2.new(10, 10) | |
678 | ParticleEmitter12.VelocitySpread = 10 | |
679 | Sky13.Parent = game.Lighting | |
680 | Sky13.CelestialBodiesShown = false | |
681 | Sky13.SkyboxBk = "rbxassetid://246480323" | |
682 | Sky13.SkyboxDn = "rbxassetid://246480523" | |
683 | Sky13.SkyboxFt = "rbxassetid://246480105" | |
684 | Sky13.SkyboxLf = "rbxassetid://246480549" | |
685 | Sky13.SkyboxRt = "rbxassetid://246480565" | |
686 | Sky13.SkyboxUp = "rbxassetid://246480504" | |
687 | end | |
688 | end) | |
689 | ||
690 | mouse.KeyDown:connect(function(key) | |
691 | if key == "x" then | |
692 | ||
693 | chat:Chat(owner.Character.Head, "Kyogre Water Charge!!") | |
694 | - | if Torso:WaitForChild("Kyogre") then |
694 | + | |
695 | for i = 0, 2, 0.1 do | |
696 | - | Decal31.Texture = "http://www.roblox.com/asset/?id=3667944697" |
696 | + | |
697 | - | wait(0.1) |
697 | + | |
698 | - | Decal31.Texture = "http://www.roblox.com/asset/?id=3667945757" |
698 | + | |
699 | - | wait(0.1) |
699 | + | |
700 | swait() | |
701 | - | wait(0.1) |
701 | + | |
702 | Part0 = Instance.new("Part") | |
703 | - | wait(0.1) |
703 | + | |
704 | Part0.Parent = ll3part2 | |
705 | - | wait(0.1) |
705 | + | |
706 | Part0.Position = Vector3.new(-11.383276, 3.62347698, 80.1322327) | |
707 | - | wait(0.1) |
707 | + | |
708 | Part0.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
709 | - | wait(0.1) |
709 | + | |
710 | local charge = true | |
711 | - | wait(0.1) |
711 | + | |
712 | if charge == true then | |
713 | - | wait(0.1) |
713 | + | |
714 | end | |
715 | - | wait(0.1) |
715 | + | |
716 | local sed1 = Instance.new("Sound") | |
717 | - | wait(0.1) |
717 | + | |
718 | sed1.SoundId = "rbxassetid://1289851900" | |
719 | - | wait(0.1) |
719 | + | |
720 | sed1:Play() | |
721 | - | wait(0.1) |
721 | + | |
722 | Part0.FormFactor = Enum.FormFactor.Symmetric | |
723 | - | wait(0.1) |
723 | + | |
724 | ParticleEmitter1.Parent = Part0 | |
725 | - | wait(0.1) |
725 | + | |
726 | ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=266550445" | |
727 | - | wait(0.1) |
727 | + | |
728 | ParticleEmitter1.Size = NumberSequence.new(6.6875,0,0) | |
729 | - | wait(0.1) |
729 | + | |
730 | wait(7) | |
731 | - | wait(0.1) |
731 | + | |
732 | charge = false | |
733 | - | wait(0.1) |
733 | + | |
734 | fus2.Size = Vector3.new(5, 5, 5) | |
735 | - | wait(0.3) |
735 | + | |
736 | fus2.Name = "damage2" | |
737 | - | wait(0.1) |
737 | + | |
738 | fus2.BrickColor = BrickColor.new("Bright blue") | |
739 | - | wait(0.1) |
739 | + | |
740 | fus2.CFrame = ll3part2.CFrame*CFrame.new(0,-2,0) | |
741 | - | wait(0.1) |
741 | + | |
742 | ParticleEmitter12 = Instance.new("ParticleEmitter") | |
743 | - | wait(0.1) |
743 | + | |
744 | ParticleEmitter12.Parent = fus2 | |
745 | - | wait(0.1) |
745 | + | |
746 | ParticleEmitter12.Rotation = NumberRange.new(-180, 180) | |
747 | - | wait(0.1) |
747 | + | |
748 | ParticleEmitter12.LightEmission = 0.20000000298023 | |
749 | - | wait(0.1) |
749 | + | |
750 | ParticleEmitter12.Texture = "rbxassetid://387288028" | |
751 | - | wait(0.1) |
751 | + | |
752 | ParticleEmitter12.ZOffset = 1 | |
753 | - | wait(0.1) |
753 | + | |
754 | ParticleEmitter12.Lifetime = NumberRange.new(1, 1) | |
755 | - | wait(0.1) |
755 | + | |
756 | ParticleEmitter12.RotSpeed = NumberRange.new(-180, 180) | |
757 | - | wait(0.1) |
757 | + | |
758 | ParticleEmitter12.VelocitySpread = 6 | |
759 | - | wait(0.1) |
759 | + | |
760 | local bp = Instance.new("BodyVelocity") | |
761 | - | wait(0.1) |
761 | + | |
762 | bp.Velocity = ll3part2.CFrame.lookVector*150 | |
763 | - | wait(0.1) |
763 | + | |
764 | local canattack2 = true --you had this as a Instance before, you can just do it as variable | |
765 | - | wait(0.1) |
765 | + | |
766 | local humanoid3 = pe.Parent:FindFirstChild("Humanoid")--checks if there is a humanoid in p | |
767 | - | wait(0.01) |
767 | + | |
768 | ||
769 | - | wait(0.1) |
769 | + | |
770 | ||
771 | - | wait(0.1) |
771 | + | |
772 | wait(0.3) | |
773 | - | wait(0.1) |
773 | + | |
774 | ||
775 | - | wait(0.1) |
775 | + | |
776 | ||
777 | - | wait(0.1) |
777 | + | |
778 | ||
779 | - | wait(0.1) |
779 | + | |
780 | Part0:Destroy() | |
781 | - | wait(0.1) |
781 | + | |
782 | end | |
783 | - | wait(0.1) |
783 | + | |
784 | ||
785 | - | wait(0.1) |
785 | + | |
786 | mouse.KeyDown:connect(function(key) | |
787 | - | wait(0.1) |
787 | + | |
788 | chat:Chat(owner.Character.Head, "Kyogre Ice Beam!!") | |
789 | - | wait(0.1) |
789 | + | |
790 | ParticleEmitter145 = Instance.new("ParticleEmitter") | |
791 | - | wait(0.1) |
791 | + | |
792 | Part02.Name = "Ice" | |
793 | - | wait(0.1) |
793 | + | |
794 | local skilklse = true | |
795 | - | wait(0.1) |
795 | + | |
796 | if skilklse == true then | |
797 | - | wait(0.1) |
797 | + | |
798 | end | |
799 | - | wait(0.1) |
799 | + | |
800 | Part02.Transparency = 1 | |
801 | - | wait(0.1) |
801 | + | |
802 | Part02.BottomSurface = Enum.SurfaceType.Smooth | |
803 | - | wait(0.1) |
803 | + | |
804 | ParticleEmitter145.Parent = Part02 | |
805 | - | wait(0.1) |
805 | + | |
806 | ParticleEmitter145.Rotation = NumberRange.new(-150, 150) | |
807 | - | wait(0.1) |
807 | + | |
808 | ParticleEmitter145.LightEmission = 0.30000001192093 | |
809 | - | wait(0.1) |
809 | + | |
810 | ParticleEmitter145.Texture = "rbxassetid://2119427041" | |
811 | - | wait(0.1) |
811 | + | |
812 | ParticleEmitter145.Size = NumberSequence.new(3,3) | |
813 | - | wait(0.1) |
813 | + | |
814 | ParticleEmitter145.Lifetime = NumberRange.new(1, 2) | |
815 | - | wait(0.1) |
815 | + | |
816 | ParticleEmitter145.Rate = 500 | |
817 | - | wait(0.1) |
817 | + | |
818 | local canattack2 = true --you had this as a Instance before, you can just do it as variable | |
819 | - | wait(0.1) |
819 | + | |
820 | local humanoid3 = pe.Parent:FindFirstChild("Humanoid")--checks if there is a humanoid in p | |
821 | - | wait(0.1) |
821 | + | |
822 | ||
823 | - | wait(0.1) |
823 | + | |
824 | ||
825 | - | wait(0.1) |
825 | + | |
826 | local LeftL = pe.Parent:FindFirstChild("Left Leg") | |
827 | - | wait(0.1) |
827 | + | |
828 | local RightA = pe.Parent:FindFirstChild("Right Arm") | |
829 | - | wait(0.1) |
829 | + | |
830 | local Faktorso = pe.Parent.Torso | |
831 | - | endif game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
831 | + | |
832 | LeftA.Anchored = true | |
833 | RightL.Anchored = true | |
834 | LeftL.Anchored = true | |
835 | RightA.Anchored = true | |
836 | local Part04 = Instance.new("Part") | |
837 | Part04.Parent = pe.Parent.Head | |
838 | Part04.CFrame = Faktorso.CFrame*CFrame.new(0,-1,0) | |
839 | Part04.Color = Color3.new(0.321569, 0.486275, 0.682353) | |
840 | Part04.Transparency = 0.10000000149012 | |
841 | Part04.Size = Vector3.new(4.68000031, 6.51000071, 4.94000053) | |
842 | Part04.BottomSurface = Enum.SurfaceType.Smooth | |
843 | Part04.BrickColor = BrickColor.new("Steel blue") | |
844 | Part04.Material = Enum.Material.Ice | |
845 | Part04.Anchored = true | |
846 | Part04.TopSurface = Enum.SurfaceType.Smooth | |
847 | Part04.brickColor = BrickColor.new("Steel blue") | |
848 | wait(5) | |
849 | LeftA.Anchored = false | |
850 | RightL.Anchored = false | |
851 | LeftL.Anchored = false | |
852 | RightA.Anchored = false | |
853 | Part04:Destroy() | |
854 | pe.Parent.HumanoidRootPart.Anchored = false | |
855 | skilklse = false | |
856 | Part02:Destroy() | |
857 | end | |
858 | ||
859 | end) | |
860 | end | |
861 | end) | |
862 | ||
863 | wait(2) | |
864 | basll:Destroy() | |
865 | end | |
866 | end | |
867 | end) | |
868 | end | |
869 | ||
870 | end | |
871 | end | |
872 | end) | |
873 | ||
874 | while true do | |
875 | local dt = game:GetService("RunService").Heartbeat:Wait() | |
876 | ||
877 | if Torso:FindFirstChild("Kyogre") then | |
878 | local Decal31 = Torso:FindFirstChild("Kyogre").Decal | |
879 | local Decal712 = Torso:FindFirstChild("Kyogre").De | |
880 | wait(0.03) | |
881 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669576942" | |
882 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667945757" | |
883 | wait(0.03) | |
884 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669577447" | |
885 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667946634" | |
886 | wait(0.03) | |
887 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667947488" | |
888 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669577872" | |
889 | wait(0.03) | |
890 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667949427" | |
891 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669578353" | |
892 | wait(0.03) | |
893 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667951303" | |
894 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669578812" | |
895 | wait(0.03) | |
896 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667952330" | |
897 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669579323" | |
898 | wait(0.03) | |
899 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667978862" | |
900 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669579705" | |
901 | wait(0.03) | |
902 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667979327" | |
903 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669580143" | |
904 | wait(0.03) | |
905 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667979737" | |
906 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669580442" | |
907 | wait(0.03) | |
908 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667980122" | |
909 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669580442" | |
910 | wait(0.03) | |
911 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667980517" | |
912 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669581634" | |
913 | wait(0.03) | |
914 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667980933" | |
915 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669581634" | |
916 | wait(0.03) | |
917 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667981356" | |
918 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669581634" | |
919 | wait(0.03) | |
920 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667981777" | |
921 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669582256" | |
922 | wait(0.03) | |
923 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667982167" | |
924 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669583535" | |
925 | wait(0.03) | |
926 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667982623" | |
927 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669584058" | |
928 | wait(0.03) | |
929 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667982975" | |
930 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669584524" | |
931 | wait(0.03) | |
932 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667983293" | |
933 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669585114" | |
934 | wait(0.03) | |
935 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667983590" | |
936 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669585519" | |
937 | wait(0.03) | |
938 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667984958" | |
939 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669585932" | |
940 | wait(0.03) | |
941 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667985504" | |
942 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669586410" | |
943 | wait(0.03) | |
944 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667985931" | |
945 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669587079" | |
946 | wait(0.03) | |
947 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667986519" | |
948 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669587079" | |
949 | wait(0.03) | |
950 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667986945" | |
951 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669587712" | |
952 | wait(0.03) | |
953 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667987665" | |
954 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669588348" | |
955 | wait(0.03) | |
956 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667988351" | |
957 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669588735" | |
958 | wait(0.03) | |
959 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667989044" | |
960 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669589232" | |
961 | wait(0.03) | |
962 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667989617" | |
963 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669589739" | |
964 | wait(0.03) | |
965 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667990258" | |
966 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669590378" | |
967 | wait(0.03) | |
968 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667990747" | |
969 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669590897" | |
970 | wait(0.03) | |
971 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667991287" | |
972 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669591447" | |
973 | wait(0.03) | |
974 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667991810" | |
975 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669591912" | |
976 | wait(0.03) | |
977 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667992274" | |
978 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669592702" | |
979 | wait(0.03) | |
980 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667992738" | |
981 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669593541" | |
982 | wait(0.03) | |
983 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667993317" | |
984 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669595045" | |
985 | wait(0.03) | |
986 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667993835" | |
987 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669595608" | |
988 | wait(0.03) | |
989 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667994369" | |
990 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669596188" | |
991 | wait(0.03) | |
992 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667995043" | |
993 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669596812" | |
994 | wait(0.03) | |
995 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667995470" | |
996 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669597313" | |
997 | wait(0.03) | |
998 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667996116" | |
999 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669597884" | |
1000 | wait(0.03) | |
1001 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667996835" | |
1002 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669598502" | |
1003 | wait(0.03) | |
1004 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667997317" | |
1005 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669599372" | |
1006 | wait(0.03) | |
1007 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667997853" | |
1008 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669600117" | |
1009 | wait(0.03) | |
1010 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667998344" | |
1011 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669600826" | |
1012 | wait(0.03) | |
1013 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667999061" | |
1014 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669601316" | |
1015 | wait(0.03) | |
1016 | Decal31.Texture = "http://www.roblox.com/asset/?id=3667999615" | |
1017 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669601828" | |
1018 | wait(0.03) | |
1019 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668000244" | |
1020 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669602361" | |
1021 | wait(0.03) | |
1022 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668000965" | |
1023 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669603597" | |
1024 | wait(0.03) | |
1025 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668001504" | |
1026 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669604224" | |
1027 | wait(0.03) | |
1028 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668005353" | |
1029 | wait(0.03) | |
1030 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668005946" | |
1031 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669604729" | |
1032 | wait(0.03) | |
1033 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668006638" | |
1034 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669605381" | |
1035 | wait(0.03) | |
1036 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668007462" | |
1037 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669605982" | |
1038 | wait(0.03) | |
1039 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668008033" | |
1040 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669605982" | |
1041 | wait(0.03) | |
1042 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668008556" | |
1043 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669607384" | |
1044 | wait(0.03) | |
1045 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668011615" | |
1046 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669607384" | |
1047 | wait(0.03) | |
1048 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668012488" | |
1049 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669608116" | |
1050 | wait(0.03) | |
1051 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668013361" | |
1052 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669609006" | |
1053 | wait(0.03) | |
1054 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668014140" | |
1055 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669609789" | |
1056 | wait(0.03) | |
1057 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668014755" | |
1058 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669610439" | |
1059 | wait(0.03) | |
1060 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668015312" | |
1061 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669611055" | |
1062 | wait(0.03) | |
1063 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668015939" | |
1064 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669611669" | |
1065 | wait(0.03) | |
1066 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668016643" | |
1067 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669612173" | |
1068 | wait(0.03) | |
1069 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668017486" | |
1070 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669612734" | |
1071 | wait(0.03) | |
1072 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668019384" | |
1073 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669613489" | |
1074 | wait(0.03) | |
1075 | Decal31.Texture = "http://www.roblox.com/asset/?id=3668020069" | |
1076 | wait(0.03) | |
1077 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669614133" | |
1078 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669617589" | |
1079 | wait(0.03) | |
1080 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669618275" | |
1081 | wait(0.03) | |
1082 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669619024" | |
1083 | wait(0.03) | |
1084 | Decal712.Texture = "http://www.roblox.com/asset/?id=3669619682" | |
1085 | end | |
1086 | spawn(function() | |
1087 | ||
1088 | torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1089 | velderp = RootPart.Velocity.y | |
1090 | hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1091 | swait() | |
1092 | if torvel < 1 and hitfloor ~= nil then | |
1093 | Anim = "Idle" | |
1094 | change = 1 | |
1095 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3) | |
1096 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3) | |
1097 | RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), 0.3) | |
1098 | LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3) | |
1099 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1100 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1101 | ||
1102 | elseif torvel > 2 and hitfloor ~= nil then | |
1103 | Anim = "Walk" | |
1104 | change = 1 | |
1105 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3) | |
1106 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3) | |
1107 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3) | |
1108 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3) | |
1109 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3) | |
1110 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3) | |
1111 | end | |
1112 | ||
1113 | end) | |
1114 | ||
1115 | end |