View difference between Paste ID: TGGFvNsn and akfLvyMS
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
	local h,t
87
	--Give the server mouse data every second frame, but only if the values changed
88
	--If player is not moving their mouse, client won't fire events
89
	local HB = game:GetService("RunService").Heartbeat
90
	while true do
91
		if h~=Mouse.Hit or t~=Mouse.Target then
92
			h,t=Mouse.Hit,Mouse.Target
93
			Event:FireServer({isMouse=true,Target=t,Hit=h})
94
		end
95
		--Wait 2 frames
96
		for i=1,2 do
97
			HB:Wait()
98
		end
99
	end]==],script)
100
101
	----Sandboxed game object that allows the usage of client-side methods and services
102
	--Real game object
103
	local RealGame = game
104
105
	--Metatable for fake service
106
	local FakeService_Metatable = {
107
		__index = function(self,k)
108
			local s = rawget(self,"_RealService")
109
			if s then
110
				return typeof(s[k])=="function"
111
				and function(_,...)return s[k](s,...)end or s[k]
112
			end
113
		end,
114
		__newindex = function(self,k,v)
115
			local s = rawget(self,"_RealService")
116
			if s then s[k]=v end
117
		end
118
	}
119
	local function FakeService(t,RealService)
120
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
121
		return setmetatable(t,FakeService_Metatable)
122
	end
123
124
	--Fake game object
125
	local FakeGame = {
126
		GetService = function(self,s)
127
			return rawget(self,s) or RealGame:GetService(s)
128
		end,
129
		Players = FakeService({
130
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
131
		},"Players"),
132
		UserInputService = FakeService(UIS,"UserInputService"),
133
		ContextActionService = FakeService(CAS,"ContextActionService"),
134
		RunService = FakeService({
135
			_btrs = {},
136
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
137
			BindToRenderStep = function(self,name,_,fun)
138
				self._btrs[name] = self.Heartbeat:Connect(fun)
139
			end,
140
			UnbindFromRenderStep = function(self,name)
141
				self._btrs[name]:Disconnect()
142
			end,
143
		},"RunService")
144
	}
145
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
146
	FakeGame.service = FakeGame.GetService
147
	FakeService(FakeGame,game)
148
	--Changing owner to fake player object to support owner:GetMouse()
149
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
150
end
151
--By Rufus14
152
--ears: 391268255
153
--bamalam: 720451528
154
--columb: 1202637744
155
music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
156
music.Volume = 0
157
music.SoundId = "rbxassetid://0"
158
music.Looped = true
159
music:Play()
160
mouse = game.Players.LocalPlayer:GetMouse()
161
gun = Instance.new("Part", game.Players.LocalPlayer.Character)
162
gun:BreakJoints()
163
gun.CanCollide = false
164
gun.Name = "Shotgun"
165
mesh = Instance.new("SpecialMesh", gun)
166
mesh.MeshId = "rbxassetid://477037714"
167
mesh.TextureId = "rbxassetid://477037796"
168
mesh.Scale = Vector3.new(0.03,0.03,0.03)
169
weld = Instance.new("Weld", gun)
170
weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
171
weld.Part1 = gun
172
weld.C0 = weld.C0 * CFrame.Angles(-1.5,0,0) * CFrame.new(0,0,-2.5)
173
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
174
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
175
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
176
rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
177
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
178
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
179
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
180
lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
181
shot = Instance.new("Sound", gun)
182
shot.Volume = 10
183
shot.SoundId = "rbxassetid://185044507"
184
pump = Instance.new("Sound", gun)
185
pump.Volume = 10
186
pump.SoundId = "rbxassetid://255061173"
187
pump.PlaybackSpeed = 0.7
188
function owtheedge()
189
	workspace.CurrentCamera.FieldOfView = 70 + music.PlaybackLoudness / 80
190
end
191
game:GetService("RunService").RenderStepped:connect(owtheedge)
192
for i = 0,0.7 , 0.01 do
193
	weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
194
	rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
195
	lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
196
	game:GetService("RunService").RenderStepped:wait()
197
end
198
using = false
199
ammo = 5
200
function shoot()
201
	if not using then
202
		using = true
203
		shot:Play()
204
		for i = 1,5 do
205
			local missle = Instance.new("Part", workspace)
206
			missle:BreakJoints()
207
			missle.Name = "bullet"
208
			missle.CanCollide = false
209
			missle.Material = "Neon"
210
			missle.Size = Vector3.new(0.1,0.1,0.1)
211
			missle.CFrame = gun.CFrame * CFrame.new(0,0,2)
212
			missle.Transparency = 1
213
			local vel = Instance.new("BodyVelocity", missle)
214
			vel.Velocity = mouse.Hit.lookVector * math.random(500,500) + Vector3.new(math.random(-50,50),math.random(-50,50),0)
215
			vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
216
			local function hit(part)
217
				local hitval = math.random(25,40)
218
				local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
219
				if humanoid then
220
					if humanoid.Health == math.huge or humanoid.Health >= 600 then
221
						humanoid.Health = 100
222
					end
223
					if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
224
						humanoid.MaxHealth = 100
225
					end
226
					if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
227
						
228
					else
229
						if humanoid.Health < hitval then
230
							humanoid.JumpPower = 0
231
	                        humanoid.PlatformStand = true
232
	                        humanoid.WalkSpeed = 0
233
	                        local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
234
	                        if findlefthip then
235
	                            findlefthip:Remove()
236
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
237
	                            glue.Part0 = humanoid.Parent.Torso
238
	                            glue.Part1 = humanoid.Parent["Left Leg"]
239
	                            glue.Name = "Left leg"
240
	                            local collider = Instance.new("Part",  humanoid.Parent["Left Leg"])
241
	                            collider.Position = Vector3.new(0,999,0)
242
	                            collider.Size = Vector3.new(1.5, 1, 1)
243
	                            collider.Shape = "Cylinder"
244
	                            local weld = Instance.new("Weld", collider)
245
	                            weld.Part0 =  humanoid.Parent["Left Leg"]
246
	                            weld.Part1 = collider
247
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
248
	                            collider.TopSurface = "Smooth"
249
	                            collider.BottomSurface = "Smooth"
250
	                            collider.formFactor = "Symmetric"
251
	                            glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
252
	                            glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
253
	                            collider.Transparency = 1
254
	                        end
255
	                        --
256
	                        local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
257
	                        if findrighthip then
258
	                            findrighthip:Remove()
259
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
260
	                            glue.Part0 = humanoid.Parent.Torso
261
	                            glue.Part1 = humanoid.Parent["Right Leg"]
262
	                            glue.Name = "Right leg"
263
	                            local collider = Instance.new("Part",  humanoid.Parent["Right Leg"])
264
	                            collider.Position = Vector3.new(0,999,0)
265
	                            collider.Size = Vector3.new(1.5, 1, 1)
266
	                            collider.Shape = "Cylinder"
267
	                            local weld = Instance.new("Weld", collider)
268
	                            weld.Part0 =  humanoid.Parent["Right Leg"]
269
	                            weld.Part1 = collider
270
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
271
	                            collider.TopSurface = "Smooth"
272
	                            collider.BottomSurface = "Smooth"
273
	                            collider.formFactor = "Symmetric"
274
	                            glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
275
	                            glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
276
	                            collider.Transparency = 1
277
	                        end
278
	                        --
279
	                        local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
280
	                        if findrightshoulder then
281
	                            findrightshoulder:Remove()
282
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
283
	                            glue.Part0 = humanoid.Parent.Torso
284
	                            glue.Part1 = humanoid.Parent["Right Arm"]
285
	                            glue.Name = "Right arm"
286
	                            local collider = Instance.new("Part",  humanoid.Parent["Right Arm"])
287
	                            collider.Position = Vector3.new(0,999,0)
288
	                            collider.Size = Vector3.new(1.5, 1, 1)
289
	                            collider.Shape = "Cylinder"
290
	                            local weld = Instance.new("Weld", collider)
291
	                            weld.Part0 =  humanoid.Parent["Right Arm"]
292
	                            weld.Part1 = collider
293
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
294
	                            collider.TopSurface = "Smooth"
295
	                            collider.BottomSurface = "Smooth"
296
	                            collider.formFactor = "Symmetric"
297
	                            glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
298
	                            glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
299
	                            collider.Transparency = 1
300
	                        end
301
	                        --
302
	                        local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
303
	                        if findleftshoulder then
304
	                            findleftshoulder:Remove()
305
	                            local glue = Instance.new("Glue",  humanoid.Parent.Torso)
306
	                            glue.Part0 = humanoid.Parent.Torso
307
	                            glue.Part1 = humanoid.Parent["Left Arm"]
308
	                            glue.Name = "Left arm"
309
	                            local collider = Instance.new("Part",  humanoid.Parent["Left Arm"])
310
	                            collider.Position = Vector3.new(0,999,0)
311
	                            collider.Size = Vector3.new(1.5, 1, 1)
312
	                            collider.Shape = "Cylinder"
313
	                            local weld = Instance.new("Weld", collider)
314
	                            weld.Part0 =  humanoid.Parent["Left Arm"]
315
	                            weld.Part1 = collider
316
	                            weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
317
	                            collider.TopSurface = "Smooth"
318
	                            collider.BottomSurface = "Smooth"
319
	                            collider.formFactor = "Symmetric"
320
	                            glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
321
	                            glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
322
	                            collider.Transparency = 1
323
	                        end
324
							local findhead = humanoid.Parent:findFirstChild("Head")
325
	                        if findhead then
326
								local attachment = Instance.new("Attachment", humanoid.Parent.Head)
327
					            attachment.Position = Vector3.new(0, -0.5, 0)
328
					            attachment.Name = "lol"
329
					            attachment.Visible = false
330
					            humanoid.Parent.Torso.NeckAttachment.Visible = false
331
					            humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
332
					            local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
333
					            ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
334
					            ball.Attachment1 = attachment
335
								ball.LimitsEnabled = true
336
								ball.TwistLimitsEnabled = true
337
								ball.UpperAngle = 90
338
								ball.Restitution = 0.5
339
								ball.TwistUpperAngle = 90
340
								ball.TwistLowerAngle = -90
341
					            local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
342
					            collidepartofleftleg.Name = "Bone"
343
					            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
344
					            collidepartofleftleg.Transparency = 1
345
					            collidepartofleftleg:BreakJoints()
346
					            local weeld = Instance.new("Weld", collidepartofleftleg)
347
					            weeld.Part0 = collidepartofleftleg
348
					            weeld.Part1 = humanoid.Parent["Head"]
349
								if humanoid.Parent.Torso:findFirstChild("Neck") then
350
									humanoid.Parent.Torso.Neck:destroy()
351
								end
352
							end
353
	                        wait(10)
354
	                        humanoid.Health = 0
355
					else
356
						humanoid.Health = humanoid.Health - hitval
357
					end
358
					end
359
				else
360
					if part.Name == "Shotgun" or "bullet" then
361
						
362
					else
363
						missle:destroy()
364
					end
365
				end
366
			end
367
			missle.Touched:connect(hit)
368
		end
369
		for i = 0,1 , 0.07 do
370
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
371
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
372
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.748803854, -1.02752113, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
373
			game:GetService("RunService").RenderStepped:wait()
374
		end
375
		for i = 0,1 , 0.05 do
376
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
377
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
378
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
379
			game:GetService("RunService").RenderStepped:wait()
380
		end
381
		pump:Play()
382
		for i = 0,1 , 0.05 do
383
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
384
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
385
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.44393158, 0.765078783, -1.10408783, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
386
			game:GetService("RunService").RenderStepped:wait()
387
		end
388
		for i = 0,1 , 0.05 do
389
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
390
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
391
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
392
			game:GetService("RunService").RenderStepped:wait()
393
		end
394
		for i = 0,0.7 , 0.04 do
395
			weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
396
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
397
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
398
			game:GetService("RunService").RenderStepped:wait()
399
		end
400
		using = false
401
	end
402
end
403
mouse.Button1Down:connect(shoot)