View difference between Paste ID: JkHMxdfK and drbiWkP1
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2-
mouse = game.Players.LocalPlayer:GetMouse()
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-
bat = Instance.new("Part", game.Players.LocalPlayer.Character)
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-
baseballhit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
12+
	Event.Name = "UserInput_Event"
13
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-
weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
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-
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
29+
30-
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
30+
	--This function will trigger the events that have been :Connect()'ed
31-
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
31+
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34-
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
34+
			t.Function(...)
35-
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
35+
36-
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
36+
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-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.35),i)
44+
			m.Hit = io.Hit
45-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.35),i)
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-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
51+
				for _,k in pairs(t.Keys) do
52-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
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
74
	local Mouse = Player:GetMouse()
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-
					tor.RotVelocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
82+
83-
					tor.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
83+
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
--MADE BY RUFUS14
88
using = false
89
hit = false
90
bat = Instance.new("Part", game.Players.animefreak15439.Character)
91
bat.Size = Vector3.new(1, 1, 2)
92
bat.CanCollide = false
93-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.7),i)
93+
94-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.70),i)
94+
95
baseballhit.Volume = 10.5
96
baseballhit.SoundId = "rbxassetid://148862502"
97
baseballhit1 = Instance.new("Sound", game.Players.animefreak15439.Character.Head)
98
baseballhit1.Volume = 1
99
baseballhit1.SoundId = "rbxassetid://283398408"
100-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
100+
101-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
101+
102
weld = Instance.new("Weld", bat)
103
weld.Part0 = game.Players.animefreak15439.Character["Right Arm"]
104
weld.Part1 = bat
105
local batcritical = Instance.new("Sound", bat)
106-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
106+
107-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
107+
108
weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
109
print(weld.C0)
110
mesh = Instance.new("SpecialMesh", bat)
111
mesh.MeshId = "http://www.roblox.com/asset/?id=24342877"
112
mesh.TextureId = "http://www.roblox.com/asset/?id=186367228"
113-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.05)
113+
114-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
114+
local rhandweld = Instance.new("Weld", game.Players.animefreak15439.Character.Torso)
115
rhandweld.Part0 = game.Players.animefreak15439.Character.Torso
116
rhandweld.Part1 = game.Players.animefreak15439.Character["Right Arm"]
117
rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
118
rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
119-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.06)
119+
local lhandweld = Instance.new("Weld", game.Players.animefreak15439.Character.Torso)
120-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
120+
lhandweld.Part0 = game.Players.animefreak15439.Character.Torso
121
lhandweld.Part1 = game.Players.animefreak15439.Character["Left Arm"]
122
lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
123
lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
124
function hit()
125
	if not using then
126-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.1)
126+
127-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
127+
128
			wait()
129
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.35),i)
130
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.35),i)
131
			rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.3),i)
132-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
132+
133-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
133+
134
		for i = 1,2 do
135
			wait()
136-
		game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
136+
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
137-
		game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
137+
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
138
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
139
			lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
140
		end
141
		wait(0.2)
142
		swinging:Play()
143
		local se = Instance.new("Part", bat)
144
		se.Size = Vector3.new(1, 1, 3)
145
		se:BreakJoints()
146
		se.Transparency = 1
147
		se.CanCollide = false
148
		local dmgweld = Instance.new("Weld", se)
149
		dmgweld.Part0 = bat
150
		dmgweld.Part1 = se
151
		dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
152
		local function dmg(part)
153
			local hum = part.Parent:findFirstChild("Humanoid")
154
			if hum ~= nil then
155
				se:destroy()
156
				baseballhit:Play()
157
				baseballhit1:Play()
158
				hum.Health = hum.Health - math.random(25,35)
159
				hum.PlatformStand = true
160
				local tor = part.Parent:findFirstChild("Torso")
161
				local dmgmat = math.random(1,4)
162
				if dmgmat == 3 then
163
				batcritical:Play()
164
				hum.Health = hum.Health - math.random(98,135)
165
				end
166
				if tor then
167
					tor.RotVelocity = game.Players.animefreak15439.Character.Torso.CFrame.rightVector * 34
168
					tor.Velocity = game.Players.animefreak15439.Character.Torso.CFrame.rightVector * 34
169
				end
170
				wait(2)
171
				hum.PlatformStand = false
172
				hit = false
173
			end
174
		end
175
		se.Touched:connect(dmg)
176
		for i = 0,1 , 0.2 do
177
			wait()
178
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.7),i)
179
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.70),i)
180
			rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.6),i)
181
			lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0.30,0,0),i)
182
		end
183
		for i = 1,2 do
184
			wait()
185
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
186
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
187
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.4)
188
		end
189-
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
189+
190
			wait()
191
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
192
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
193-
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
193+
194
		end
195
		wait(0.2)
196
		for i = 1,2 do
197-
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
197+
198
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.05)
199
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
200
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
201-
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
201+
202
		for i = 1,2 do
203
			wait()
204
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.06)
205
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
206-
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
206+
207
		end
208
		se:destroy()
209
		for i = 1,2 do
210
			wait()
211
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.1)
212
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
213
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
214
		end
215
		for i = 1,2 do
216
			wait()
217
			game.Players.animefreak15439.Character.Torso.Neck.C0 = game.Players.animefreak15439.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
218
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
219
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
220
		end
221
		game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
222
		game.Players.animefreak15439.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
223
		lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
224
		lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
225
		rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
226
		rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
227
		using = false
228
	end
229
end
230-
						vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 35
230+
231
	key = key:lower()
232
	if key == "q" then
233
		if not using then
234
			using = true
235
			swinging:Play()
236
			for i = 1,2 do
237
				wait()
238
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
239
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
240
			end
241
			for i = 1,3 do
242
				wait()
243
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
244
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
245
			end
246
			for i = 1,2 do
247-
					game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
247+
248
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
249
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
250-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
250+
251-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
251+
252
			swinging:Play()
253
			for i = 1,2 do
254
				wait()
255
				weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
256
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
257
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
258
			end
259
			for i = 1,3 do
260
				wait()
261
				weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
262
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
263
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
264
			end
265
			for i = 1,2 do
266
				wait()
267
				weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
268
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
269
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
270
			end
271
			wait(0.5)
272
			for i = 1,2 do
273
				wait()
274
				game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
275
			end
276
			for i = 1,2 do
277
				wait()
278
				game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
279
			end
280
			for i = 1,2 do
281
				wait()
282
				game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
283
			end
284
			for i = 1,2 do
285
				wait()
286
				game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
287
			end
288
			swinging:Play()
289
			for i = 1,2 do
290
				wait()
291
				game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
292
			end
293
			local se = Instance.new("Part", bat)
294
			se.Size = Vector3.new(1, 1, 3)
295
			se:BreakJoints()
296
			se.Transparency = 1
297-
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
297+
298-
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
298+
299
			dmgweld.Part0 = bat
300
			dmgweld.Part1 = se
301
			dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
302
			local function dmg(part)
303
				if not hit then
304
					hit = true
305
					local hum = part.Parent:findFirstChild("Humanoid")
306
					if hum ~= nil then
307
					baseballhit:Play()
308
					baseballhit1:Play()
309
					hum.Health = hum.Health - math.random(5,25)
310
					hum.PlatformStand = true
311-
	local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
311+
312-
vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
312+
313
						local vel = Instance.new("BodyVelocity", tor)
314
						vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
315
						vel.Velocity = game.Players.animefreak15439.Character.Torso.CFrame.rightVector * 35
316
						wait(0.1)
317-
mouse = game.Players.LocalPlayer:GetMouse()
317+
318
						hit = false
319-
game.Players.LocalPlayer.Character.Archivable = true
319+
320-
clone = game.Players.LocalPlayer.Character:Clone()
320+
321
					hit = false
322
					wait(1.5)
323
					hum.PlatformStand = false
324
				end
325
				end
326
			end
327
			se.Touched:connect(dmg)
328
			for i = 1,20 do
329
				swinging:Play()
330
				for i = 1,10 do
331
					wait()
332-
for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
332+
					game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
333
				end
334
			end
335
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
336
			game.Players.animefreak15439.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
337
			for i = 1,2 do
338
				wait()
339
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
340
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
341
			end
342
			for i = 1,3 do
343
				wait()
344
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
345
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
346
			end
347
			for i = 1,2 do
348
				wait()
349
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
350
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
351
			end
352
			wait(0.4)
353
			swinging:Play()
354
			for i = 1,2 do
355
				wait()
356
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
357
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
358
			end
359
			for i = 1,3 do
360
				wait()
361
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
362
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
363
			end
364
			for i = 1,2 do
365
				wait()
366
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
367-
for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
367+
368
			end
369
			for i = 1,2 do
370
				wait()
371
				weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
372-
for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
372+
373
			for i = 1,3 do
374
				wait()
375
				weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
376
			end
377
			for i = 1,2 do
378
				wait()
379
				weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
380
			end
381
			weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
382
			game.Players.animefreak15439.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
383
			game.Players.animefreak15439.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
384
			lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
385
			lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
386
			rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
387
			rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
388
			using = false
389
			se:destroy()
390
		end
391
	end
392
end
393
mouse.KeyDown:connect(combo)
394
mouse.Button1Down:connect(hit)
395
--[[
396
	local vel = Instance.new("BodyVelocity", game.Players.animefreak15439.Character.Torso)
397
vel.Velocity = game.Players.animefreak15439.Character.Torso.CFrame.lookVector * -5
398
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
399
--]]
400
--By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
401
--die plz
402
function ragdoll()
403
game.Players.animefreak15439.Character.Archivable = true
404
clone = game.Players.animefreak15439.Character:Clone()
405
clone.Parent = workspace
406
for i,v in pairs(clone:GetChildren()) do
407
	if v.ClassName == "Script" or v.ClassName == "LocalScript" then
408
		v:destroy()
409
	end
410
	for i,p in pairs(v:GetChildren()) do
411
	if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
412
		p:destroy()
413
	end
414
end
415
end
416
for i,t in pairs(game.Players.animefreak15439.Character:GetChildren()) do
417
	if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
418
		t:destroy()
419
	end
420
end
421
vel = Instance.new("BodyVelocity", clone.Torso)
422
vel.Velocity = clone.Torso.CFrame.lookVector * -5
423
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
424
clone.Head.face.Texture = "http://www.roblox.com/asset/?id=74490517"
425
using = false
426
hit = Instance.new("Sound", clone.Torso)
427
hit.SoundId = "rbxassetid://260430060"
428
hit.Volume = 5
429
hit1 = Instance.new("Sound", clone.Torso)
430
hit1.SoundId = "rbxassetid://138087186"
431
hit1.Volume = 5
432
hit2 = Instance.new("Sound", clone.Torso)
433
hit2.SoundId = "rbxassetid://131237241"
434
hit2.Volume = 5
435
hit3 = Instance.new("Sound", clone.Torso)
436
hit3.SoundId = "rbxassetid://278062209"
437
hit3.Volume = 5
438
hit3.TimePosition = 0.33
439
ded = Instance.new("Sound", clone.Torso)
440
ded.SoundId = "rbxassetid://418892870"
441
ded.Volume = 5
442
local leftarm = clone:findFirstChild("Left Arm")
443
local rightrm = clone:findFirstChild("Right Arm")
444
local leftleg = clone:findFirstChild("Left Leg")
445
local rightleg = clone:findFirstChild("Right Leg")
446
local head = clone:findFirstChild("Head")
447
local welding = Instance.new("Weld", clone.Torso)
448
welding.Part0 = clone.Torso
449
welding.Part1 = head
450
welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
451
for i, g in pairs(game.Players.animefreak15439.Character:GetChildren()) do
452
	if g.ClassName == "Part" then
453
		g:destroy()
454
	end
455
end
456
for i, h in pairs(game.Players.animefreak15439.Character:GetChildren()) do
457
	if h.ClassName == "Accesory" then
458
		h:destroy()
459
	end
460
end
461
game.Workspace.CurrentCamera.CameraSubject = head
462
if leftleg ~= nil then
463
local glue = Instance.new("Glue", clone.Torso)
464
glue.Part0 = clone.Torso
465
glue.Part1 = leftleg
466
glue.Name = "Left leg"
467
local collider = Instance.new("Part", leftleg)
468
collider.Position = Vector3.new(0,999,0)
469
collider.Size = Vector3.new(1.7, 1, 1)
470
collider.Shape = "Cylinder"
471
local weld = Instance.new("Weld", collider)
472
weld.Part0 = leftleg
473
weld.Part1 = collider
474
weld.C0 = CFrame.Angles(0, 0, 80)
475
collider.TopSurface = "Smooth"
476
collider.BottomSurface = "Smooth"
477
collider.formFactor = "Symmetric"
478
glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
479
glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
480
collider.Transparency = 1
481-
clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
481+
482
------------
483
if rightleg ~= nil then
484
local glue1 = Instance.new("Glue", clone.Torso)
485
glue1.Part0 = clone.Torso
486
glue1.Part1 = rightleg
487
glue1.Name = "Right leg"
488
local collider1 = Instance.new("Part", rightleg)
489
collider1.Position = Vector3.new(0,999,0)
490
collider1.Size = Vector3.new(1.7, 1, 1)
491
collider1.Shape = "Cylinder"
492
local weld1 = Instance.new("Weld", collider1)
493
weld1.Part0 = rightleg
494
weld1.Part1 = collider1
495
weld1.C0 = CFrame.Angles(0, 0, 80)
496
collider1.TopSurface = "Smooth"
497
collider1.BottomSurface = "Smooth"
498
collider1.formFactor = "Symmetric"
499
glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
500
glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
501
collider1.Transparency = 1
502
end
503
------------
504
if rightrm ~= nil then
505
local glue11 = Instance.new("Glue", clone.Torso)
506
glue11.Part0 = clone.Torso
507
glue11.Part1 = rightrm
508
glue11.Name = "Right shoulder"
509
local collider11 = Instance.new("Part", rightrm)
510
collider11.Position = Vector3.new(0,9999,0)
511
collider11.Size = Vector3.new(1.8,1,1)
512
collider11.Shape = "Cylinder"
513
local weld11 = Instance.new("Weld", collider11)
514-
game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
514+
515
weld11.Part1 = collider11
516
weld11.C0 = CFrame.Angles(0, 0, 80)
517
collider11.TopSurface = "Smooth"
518
collider11.BottomSurface = "Smooth"
519
collider11.formFactor = "Symmetric"
520
glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
521
glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
522
collider11.Transparency = 1
523
end
524
------------
525
if leftarm ~= nil then
526
local glue111 = Instance.new("Glue", clone.Torso)
527
glue111.Part0 = clone.Torso
528
glue111.Part1 = leftarm
529
glue111.Name = "Left shoulder"
530
local collider111 = Instance.new("Part", leftarm)
531
collider111.Position = Vector3.new(0,9999,0)
532
collider111.Size = Vector3.new(1.8,1,1)
533
collider111.Shape = "Cylinder"
534
local weld111 = Instance.new("Weld", collider111)
535
weld111.Part0 = leftarm
536
weld111.Part1 = collider111
537
weld111.C0 = CFrame.Angles(0, 0, 80)
538
collider111.TopSurface = "Smooth"
539
collider111.BottomSurface = "Smooth"
540
collider111.formFactor = "Symmetric"
541
glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
542
glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
543
collider111.Transparency = 1
544
----------------
545
sensoring = Instance.new("Part", clone.Torso)
546
sensoring.Size = Vector3.new(1.2,1.1,0.8)
547
sensoring.CanCollide = false
548
sensoring.Position = clone.Torso.Position
549
local welder = Instance.new("Weld", sensoring)
550
welder.Part0 = clone.Torso
551
welder.Part1 = sensoring
552
welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
553
sensoring.Transparency = 1
554
-----------------
555
sensoring1 = Instance.new("Part", clone.Torso)
556
sensoring1.Size = Vector3.new(1.2,1.1,0.8)
557
sensoring1.CanCollide = false
558
sensoring1.Position = clone.Torso.Position
559
local welder1 = Instance.new("Weld", sensoring)
560
welder1.Part0 = clone.Torso
561
welder1.Part1 = sensoring1
562
welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
563
sensoring1.Transparency = 1
564
end
565
clone.Name = game.Players.animefreak15439.Character.Name.." (DEAD)"
566
ded:Play()
567
vel:destroy()
568
wait(0.5)
569
local function touch()
570
	if not using then
571
		using = true
572
		local Math = math.random(1,4)
573
		if Math == 1 then
574
			hit:Play()
575
		end
576
		if Math == 2 then
577
			hit1:Play()
578
		end
579
		if Math == 3 then
580
			hit2:Play()
581
		end
582
		if Math == 4 then
583
			hit3:Play()
584
		end
585
		wait(0.1)
586
		using = false
587
	end
588
end
589
sensoring.Touched:connect(touch)
590
sensoring1.Touched:connect(touch)
591
wait(4.47)
592
hit1.Volume = 0
593
hit2.Volume = 0
594
hit3.Volume = 0
595
hit.Volume = 0
596
		end
597
598
game.Players.animefreak15439.Character.Humanoid.Died:connect(ragdoll)
599
600
--di ent