View difference between Paste ID: 5x271Gbh and KxqaNqBY
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12-
local plr = game.Players.LocalPlayer
12+
	Event.Name = "UserInput_Event"
13
14-
local maus = plr:GetMouse()
14+
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37-
local trcolor = {"Cyan","Deep blue","Really blue","Medium blue"} 
37+
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
 = Player:GetMou
74
	local Mousese()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
--------------------------This is an Official script from Duelist--------------------------  
87
                           ---{--------------------                         -------------------}---
88
                           ---{--------------------         / \           -------------------}---
89
                            ---{--------------------         II            -------------------}---
90
                             ---{--------------------        II            -------------------}---
91
                             ---{--------------------        II            -------------------}---
92
                        ---{--------------------  A========A   -------------------}---      
93
                               ---{--------------------      II             -------------------}---
94
                               ---{--------------------      II             -------------------}---
95
                                ---{--------------------     W           -------------------}---
96
--------------------------------------------------------------------------------------------------------------
97
local plr = owner
98
local chr = plr.Character
99
local PGui=plr.PlayerGui
100
local lleg = chr["Left Leg"]
101
local rleg = chr["Right Leg"]
102
local larm = chr["Left Arm"]
103
local rarm = chr["Right Arm"]
104
local hed = chr.Head
105
local rutprt = chr.HumanoidRootPart
106
local torso = chr.Torso
107
local otheranims=false
108
local armmovement=false
109
local toss=false
110
local jamp=false
111
chr.Animate.Disabled=true
112
local running=false
113
local tek=0
114
local ltdb=false
115
local surfing=true
116
local rising=false
117
local cloudanim='Regular'
118
local dnc=false
119
local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
120
local TotalRate=10
121
local trcolor = {"Cyan","Deep blue","Really blue","Medium blue"}
122
clepz = {"138151785","131396502","152626854"}
123
 
124
coroutine.resume(coroutine.create(function()
125
for i,x in pairs(chr:GetChildren()) do if x:IsA('Part') then x.Material='SmoothPlastic' elseif x:IsA('Hat') then x.Handle.Material='SmoothPlastic' end end end))
126
 
127
 
128
 
129
 
130
 
131
chr.Humanoid.WalkSpeed=25
132
 
133
 
134
function Lerp(a, b, i)
135
local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
136
local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
137
local calx = com1[1] + (com2[1] - com1[1]) * i
138
local caly = com1[2] + (com2[2] - com1[2]) * i
139
local calz = com1[3] + (com2[3] - com1[3]) * i
140
local cala = com1[4] + (com2[4] - com1[4]) * i
141
local calb = com1[5] + (com2[5] - com1[5]) * i
142
local calc = com1[6] + (com2[6] - com1[6]) * i
143
return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
144
end
145
 
146
function TwnSingleNumber(s,f,m)
147
local wot=s+(f-s)*m
148
return wot
149
end
150
 
151
function TwnVector3(q,w,e)
152
local begin={q.x,q.y,q.z}
153
local ending={w.x,w.y,w.z}
154
local bgx=begin[1]+(ending[1]-begin[1])*e
155
local bgy=begin[2]+(ending[2]-begin[2])*e
156
local bgz=begin[3]+(ending[3]-begin[3])*e
157
return Vector3.new(bgx,bgy,bgz)
158
end
159
 
160
newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
161
wld = Instance.new("Weld", wp1)
162
wld.Part0 = wp0
163
wld.Part1 = wp1
164
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
165
end
166
 
167
newWeld(law, torso, larm, -1.5, 0.5, 0)
168-
local magz = (Start - End).magnitude 
168+
169-
local curpos = Start 
169+
170
newWeld(rlw, torso, rleg, .5, -2, 0)
171-
for i=1,Times do 
171+
172-
local li = Instance.new("Part",workspace) 
172+
173-
li.TopSurface =10 
173+
174-
li.BottomSurface = 10 
174+
175
rutwald.Name="RootJoint"
176-
li.Transparency = 0 
176+
177
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
178-
li.formFactor = "Custom" 
178+
179-
li.CanCollide = false 
179+
180-
li.Size = Vector3.new(Thickness,Thickness,magz/Times) 
180+
181
 
182
local anim = "Idling"
183
local lastanim = "Idling"
184
local val = 0
185
local syne = 0
186
local num = 0
187
local runtime = 0
188-
local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) 
188+
 
189
local claud=Instance.new('Part',chr)
190-
if Times == i then 
190+
191-
local magz2 = (curpos - End).magnitude 
191+
192
claud.Name='Claud'
193
claud.formFactor='Custom'
194
claud.Locked=true
195
claud.Material='SmoothPlastic'
196
claud.BrickColor=BrickColor.new('Light stone grey')
197
claud.TopSurface=10
198
claud.BottomSurface=10
199
claud.LeftSurface=10
200
claud.RightSurface=10
201
claud.FrontSurface=10
202
claud.BackSurface=10
203
claud:breakJoints()
204
local emit=Instance.new("ParticleEmitter",claud)
205
emit.Lifetime=NumberRange.new(1,2)
206
emit.RotSpeed=NumberRange.new(3,6)
207
emit.Name='claudmitterpls'
208
emit.Acceleration=Vector3.new(math.random(-50,50)*.01,1,math.random(-50,50)*.01)
209
emit.Size=NumberSequence.new(.5,1)
210
emit.Transparency=NumberSequence.new(1)
211
emit.Texture="http://www.roblox.com/asset?id=241541739"
212
local clms=Instance.new('SpecialMesh',claud)
213
clms.MeshId="http://www.roblox.com/asset/?id=1095708"
214
clms.TextureId="http://www.roblox.com/asset/?id=298752372"
215
clms.Scale=Vector3.new(7,2.5,6)
216
local clwl=Instance.new('Weld',claud)
217
clwl.Part0=rutprt
218
clwl.Part1=claud
219
clwl.C0=CFrame.new(0,0,.85)*CFrame.Angles(math.rad(100),math.rad(90),0)
220
 
221
 
222
maus.KeyUp:connect(function(kei)
223
if string.byte(kei)==48 and not otheranims then
224
if surfing then
225
chr.Humanoid.WalkSpeed=40
226
elseif not surfing then
227
chr.Humanoid.WalkSpeed=25
228
end
229
end
230
if kei=='e' then
231
floating=false
232
end
233
if kei=='q' then
234
lowering=false
235
end
236
if kei=='w' then fldb.w=false end
237
if kei=='a' then fldb.a=false end
238
if kei=='s' then fldb.s=false end
239
if kei=='d' then fldb.d=false end
240
end)
241
 
242
chr.Humanoid.Changed:connect(function(c)
243
if c=='Jump' then
244
if otheranims or not surfing then
245
chr.Humanoid.Jump=false
246
end
247
end
248
end)
249
 
250
DrawLightning = function(Start,End,Times,Offset,Color,Thickness)
251
if Start.y>End.y then
252
local magz = (Start - End).magnitude
253
local curpos = Start
254
local trz = {-Offset,Offset}
255
for i=1,Times do
256
local li = Instance.new("Part",workspace)
257
li.TopSurface =10
258
li.BottomSurface = 10
259
li.Anchored = true  
260
li.Transparency = 0
261
li.BrickColor = Color
262
li.formFactor = "Custom"
263
li.CanCollide = false
264
li.Size = Vector3.new(Thickness,Thickness,magz/Times)
265
local lt=Instance.new("SpotLight",li)
266
lt.Range=16
267
lt.Brightness=5
268
lt.Shadows=true
269
lt.Angle=45
270
lt.Face="Top"
271
lt.Color=li.BrickColor.Color
272
local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
273
local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
274
if Times == i then
275
local magz2 = (curpos - End).magnitude
276
li.Size = Vector3.new(Thickness,Thickness,magz2)
277
li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
278
else
279
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
280
end
281
curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,5 do wait() li.Transparency = li.Transparency+.2 end li:Destroy() end)
282
end
283
for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Torso') and x:findFirstChild('Head') and x~=chr then
284
for a,v in pairs(x:GetChildren()) do if v:IsA'Humanoid' then if (x.Torso.CFrame.p-End).magnitude<10 then v.Health=v.Health-30 end end end end end
285
local so=Instance.new('Sound',claud)
286
so.SoundId="http://www.roblox.com/asset?id="..clepz[math.random(1,#clepz)]
287
so.Volume=.2
288
so:Play''
289
end
290
end
291
 
292
maus.KeyDown:connect(function(kei)
293
if string.byte(kei)==48 and not otheranims then
294
if surfing then
295
chr.Humanoid.WalkSpeed=80
296
elseif not surfing then
297
chr.Humanoid.WalkSpeed=50
298
end
299
end
300
if kei=='r' then
301
if torso:findFirstChild('CedarClaudVelo') then
302
torso['CedarClaudVelo']:Destroy()
303
else
304
local veloo=Instance.new('BodyVelocity',torso)
305
veloo.Name='CedarClaudVelo'
306
veloo.maxForce=Vector3.new(0,math.huge,0)
307
end
308
end
309
if kei=='w' then fldb.w=true end
310
if kei=='a' then fldb.a=true end
311
if kei=='s' then fldb.s=true end
312
if kei=='d' then fldb.d=true end
313
if kei=='x' then
314
if not surfing then surfing=true
315
chr.Humanoid.WalkSpeed=40
316
elseif surfing then surfing=false
317
chr.Humanoid.WalkSpeed=25
318
end
319
end
320
if kei=='e' and not floating and not lowering and surfing then
321
floating=true
322
end
323
if kei=='q' and not lowering and not floating and surfing then
324
lowering=true
325
end
326
if kei=='f' and not otheranims and surfing then
327
dnc=true
328
anim='Dance'
329
end
330
end)
331
 
332
maus.Button1Down:connect(function()
333
if not otheranims and surfing and not ltdb and (torso.CFrame.p-maus.Hit.p).magnitude<100 then
334
ltdb=true
335
DrawLightning(claud.CFrame.p,maus.Hit.p,5,.5,BrickColor.new("New Yeller"),.2)
336
wait()
337
ltdb=false
338
end
339
end)
340
 
341
plr.Chatted:connect(function(m)
342
if m:lower():sub(1,3)=='/e ' then m=m:sub(4)
343
if m:lower():sub(1,5)=='dance' and not otheranims and surfing then
344
dnc=true
345
anim='Dance'
346
end
347
end
348
end)
349
 
350
game:service'RunService'.RenderStepped:connect(function()
351
 
352
if fldb.w or fldb.a or fldb.s or fldb.d then
353
nerrrk=chr.Humanoid.WalkSpeed
354
TotalRate=10
355
else
356
TotalRate=0
357
nerrrk=0
358
end
359
chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
360
syne=syne+.95
361
if not otheranims then
362
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 and not dnc then
363
anim="Idling"
364
puffing=false
365
 
366
elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 43 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
367
anim="Walking"
368
puffing=true
369
dnc=false
370
 
371
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 43 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
372
anim="Sprinting"
373
puffing=true
374
dnc=false
375
 
376
elseif torso.Velocity.y>1 and surfing then
377
anim='Jumping'
378
puffing=true
379
dnc=false
380
 
381
elseif (torso.Velocity.y < -1) and surfing then
382
anim='Falling'
383
puffing=true
384
dnc=false
385
end
386
end
387
 
388
if torso:findFirstChild('CedarClaudVelo') then
389
if floating and surfing then
390
torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,30,0)
391
elseif lowering and surfing then
392
torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk+Vector3.new(0,-30,0)
393
else
394
torso['CedarClaudVelo'].velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*nerrrk
395
end
396
end
397
 
398
if anim=='Idling' and not surfing then
399
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.9,1,0)*CFrame.Angles(math.rad(190),math.rad(0),math.rad(-40)),.1)
400
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.9,1,0)*CFrame.Angles(math.rad(190),math.rad(-0),math.rad(40)),.1)
401
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.1)
402
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.4,-1.7,-.3)*CFrame.Angles(math.rad(15),0,math.rad(-5)),.1)
403
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.32,-1.9,.1)*CFrame.Angles(math.rad(-5),0,math.rad(10)),.1)
404
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/3,0)*CFrame.Angles(math.rad(90),math.rad(180),0),.1)
405
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,.5)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-2.5)),.15)
406
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
407
end
408
if anim=='Walking' and not surfing then
409
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.3,.55,.2)*CFrame.Angles(math.rad(290),math.rad(0),math.rad(-10)),.15)
410
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.3,.55,.2)*CFrame.Angles(math.rad(290),math.rad(-0),math.rad(10)),.15)
411
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-38),0,0),.15)
412
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(10)),.15)
413
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.675,-1.8,-.6)*CFrame.Angles(math.rad(40),0,math.rad(-10)),.15)
414
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/3+1,2.625)*CFrame.Angles(math.rad(50),math.rad(180),0),.15)
415
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,.5)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-5)),.15)
416
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
417
end
418
if anim=='Sprinting' and not surfing then
419
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.3,.5,.15)*CFrame.Angles(math.rad(290),math.rad(0),math.rad(-10)),.15)
420
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.3,.5,.15)*CFrame.Angles(math.rad(290),math.rad(-0),math.rad(10)),.15)
421
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.4)*CFrame.Angles(math.rad(-28),0,0),.15)
422
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(5)),.15)
423
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.3,-.6)*CFrame.Angles(math.rad(20),0,math.rad(-5)),.15)
424
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/3+1,2.625)*CFrame.Angles(math.rad(40),math.rad(180),0),.15)
425
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,.6)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-10)),.15)
426
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
427
end
428
if anim=='Idling' and surfing then
429
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.45,.5,0)*CFrame.Angles(math.cos(syne/30)/10,math.rad(0),math.rad(12.5)),.1)
430
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(math.cos(syne/30)/10*-1,math.rad(-0),math.rad(-15)),.1)
431
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.15,1.45,0)*CFrame.Angles(math.rad(0),math.rad(85),math.rad(0)),.1)
432
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.1)
433
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.1)
434
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,math.cos(syne/30)/3+4.4,0)*CFrame.Angles(math.rad(0),math.rad(90),0),.1)
435
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.25,-.25)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-2)),.15)
436
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
437
end
438
if anim=='Walking' and surfing then
439
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.25,.5,0)*CFrame.Angles(math.cos(syne/30)/10,math.rad(0),math.rad(25)),.15)
440
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(math.cos(syne/30)/10*-1,math.rad(-0),math.rad(-20)),.15)
441
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.15,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
442
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
443
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.615,-1.55,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-5)),.15)
444
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,math.cos(syne/30)/3+4.4,-.25)*CFrame.Angles(math.rad(-5),math.rad(90),0),.15)
445
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(5)),.15)
446
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
447
end
448
if anim=='Sprinting' and surfing then
449
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.25,.5,0)*CFrame.Angles(math.cos(syne/30)/10,math.rad(0),math.rad(40)),.15)
450
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(math.cos(syne/30)/10*-1,math.rad(-30),math.rad(-20)),.15)
451
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.25,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
452
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
453
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.3,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
454
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,math.cos(syne/30)/3+2.4,-.5)*CFrame.Angles(math.rad(-15),math.rad(90),0),.15)
455
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/3+.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(10)),.15)
456
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
457
end
458
if anim=='Jumping' and surfing then
459
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(5),math.rad(48)),.15)
460
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.4,0)*CFrame.Angles(0,math.rad(-20),math.rad(-35)),.15)
461
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.25,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
462
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
463
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
464
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,0)*CFrame.Angles(math.rad(-30),math.rad(90),0),.15)
465
clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(10)),.15)
466
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
467
end
468
if anim=='Falling' and surfing then
469
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.375,.5,0)*CFrame.Angles(0,math.rad(-20),math.rad(30)),.15)
470
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.25,.25,0)*CFrame.Angles(0,math.rad(5),math.rad(-55)),.15)
471
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(-.25,1.45,0)*CFrame.Angles(math.rad(0),math.rad(89),math.rad(0)),.15)
472
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.2,-.1)*CFrame.Angles(math.rad(0),0,math.rad(5)),.15)
473
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(-10)),.15)
474
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(-3,4,-0)*CFrame.Angles(math.rad(15),math.rad(90),0),.15)
475
clwl.C0=Lerp(clwl.C0,CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-20)),.15)
476
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(0),math.rad(180),0)
477
end
478
if anim=='Dance' and surfing and dnc then
479
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,1,0)*CFrame.Angles(math.rad(190),math.rad(0),math.rad(-10)),.1)
480
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,1,0)*CFrame.Angles(math.rad(190),math.rad(-0),math.rad(10)),.1)
481
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.45,-.2)*CFrame.Angles(math.rad(-15),0,0),.1)
482
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(5)),.1)
483
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.575,-1.9,-.1)*CFrame.Angles(math.rad(5),0,math.rad(-5)),.1)
484
rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,2.375+math.cos(syne/30)/10,3)*CFrame.Angles(0,math.rad(180),0),.1)
485
clwl.C0=Lerp(clwl.C0,CFrame.new(0,math.cos(syne/30)/10+5.8,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),.15)
486
rutprt.RootJoint.C1=CFrame.new(0,-1,3)*CFrame.Angles(math.rad(10),math.rad(180),0)
487
end
488
 
489
 
490
emit.Rate=TotalRate
491
if surfing then
492
claud.BrickColor=BrickColor.new("Black")
493
clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(.1,.1,.1),.075)
494
else
495
claud.BrickColor=BrickColor.new("Institutional white")
496
clms.VertexColor=TwnVector3(clms.VertexColor,Vector3.new(1,1,1),.075)
497
end
498
 
499
if puffing then
500
tek=tek+1
501
else
502
tek=0
503
end
504
if tek>=15 then
505
tek=0
506
local cl2=Instance.new('Part',Workspace)
507
local p1=math.random(10,30)*.1
508
local p2=math.random(40,60)*.1
509
local p3=math.random(70,90)*.1
510
cl2.CanCollide=false
511
cl2.Anchored=true
512
cl2.Name='Claud'
513
cl2.formFactor='Custom'
514
cl2.BrickColor=claud.BrickColor
515
cl2.TopSurface=10
516
cl2.BottomSurface=10
517
cl2.LeftSurface=10
518
cl2.RightSurface=10
519
cl2.FrontSurface=10
520
cl2.BackSurface=10
521
game:service'Debris':AddItem(cl2,1)
522
cl2.CFrame=claud.CFrame*CFrame.new(-3.5,0,math.random(-15,15)*.1)*CFrame.Angles(math.rad(0),0,math.rad(90))
523
local cl2l=Instance.new('PointLight',cl2)
524
cl2l.Range=8
525
cl2l.Color=Color3.new(1,1,1)
526
cl2l.Brightness=123123
527
local clms2=Instance.new('SpecialMesh',cl2)
528
clms2.MeshId="http://www.roblox.com/asset/?id=1095708"
529
clms2.Scale=Vector3.new(1,2,1.5)
530
coroutine.wrap(function()
531
for ttt=0,1.05,.1 do cl2.Transparency=ttt cl2.CFrame=cl2.CFrame*CFrame.Angles(math.rad(p1),math.rad(p2),math.rad(p3)) clms2.Scale=clms2.Scale+Vector3.new(.035,.035,.035) cl2l.Range=cl2l.Range-.5 wait()
532
end
533
cl2:Destroy()
534
end)()
535
end
536
 
537
end)