View difference between Paste ID: cQ1Nr3iQ and kYs8QpCr
SHOW: | | - or go back to the newest paste.
1
local UserName  = game:GetService('Players').LocalPlayer.Name
2
local Autoride = true
3
4
local Animations = {Shoot = 95383980}
5
local Icon, Mesh, Texture = 4534548682, 430356779,430356811
6
local Name, ToolTip = "BOOMER", "glock"
7
8
local CE = {}
9
local Variables = {
10
	workspace = game:GetService("Workspace"),
11
	players = game:GetService("Players")
12
}
13
14
local MainUserP, MainUserW = Variables.players.LocalPlayer, Variables.workspace:FindFirstChild(UserName)
15
16
function CE:FireEvent(ItemName, Object, Property, Value)
17
	MainUserW:FindFirstChild(ItemName)["ServerControl"]:InvokeServer("SetProperty",{["Value"]=Value,["Property"]=Property,["Object"]=Object})
18
end
19
20
Variables.workspace.Buy:FireServer(0, "PompousTheCloud")
21
MainUserP["Backpack"]:WaitForChild("PompousTheCloud").Parent = MainUserW
22
23
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"TextureId","rbxassetid://"..Icon)
24
25
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"MeshId","rbxassetid://"..Mesh)
26
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"TextureId","rbxassetid://"..Texture)
27
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Scale",Vector3.new(.5,.5,.5))
28
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Orientation",Vector3.new(-0.23,12.94,1.05))
29
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["Handle"]["Mesh"],"Position",Vector3.new(-111.387,3.568,-35.084))
30
31
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripForward",Vector3.new(-0.545, -0.089, -0.834))
32
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripPos",Vector3.new(0.2, -0.2, 0.2))
33
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripRight",Vector3.new(1, -0.026, 0))
34
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"GripUp",Vector3.new(-0.027, 1.996, -0.089))
35
36
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"ToolTip",ToolTip)
37
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"CanBeDropped",true)
38
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"]["LocalScript"],"Disabled",true)
39
CE:FireEvent("PompousTheCloud",MainUserW["PompousTheCloud"],"Name",Name)
40
wait()
41
42
local Luger = MainUserW["BOOMER"]
43
44
MainUserP:GetMouse().Button1Down:Connect(function()
45
	if MainUserW:FindFirstChild("BOOMER") then
46
		if MainUserP:GetMouse().Target.Parent:FindFirstChild("HumanoidRootPart") or MainUserP:GetMouse().Target.Parent.Parent:FindFirstChild("HumanoidRootPart") then
47
			CE:FireEvent("BOOMER",BOOMER,"GripRight",Vector3.new(0.838, -0.026, -0.545))
48
			local Animation = Instance.new("Animation")
49
			Animation.AnimationId = "rbxassetid://95383980"
50
			local AnimationLoader = MainUserP.Character.Humanoid:LoadAnimation(Animation)
51
			AnimationLoader:Play()
52
			AnimationLoader:AdjustSpeed(1)
53
			wait()
54
			Variables.workspace.GuiEvent:FireServer(".")
55
			wait(0.5)
56
			CE:FireEvent("BOOMER",MainUserW["."]:WaitForChild("Head"),"Parent",MainUserP:GetMouse().Target.Parent)
57
			CE:FireEvent("BOOMER",BOOMER,"GripRight",Vector3.new(1, -0.026, 0))
58
		end
59
	end
60
end)