View difference between Paste ID: MNpW7NhT and PxatsDKe
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("How to fuck ipexter or whatever his name is")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
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
		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
	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
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
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
--HOW TO SAVE PEPE GUI ON VOIDACITY SCRIPT BUILDER
88
--step 1 : say createhttp/pepegui/http://pastebin.com/raw/PxatsDKe
89
--step 2 : say save/pepegui
90
--!FOR RUN PEPE GUI SAY rl/pepegui
91
sc = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui) --:D its WORKS!
92
q = Instance.new("Frame", game.Players.LocalPlayer.PlayerGui.ScreenGui)
93
q.Name = "qe"
94
q.Position = UDim2.new(0, -10, 0, 0)
95
q.Size = UDim2.new(0, 260, 0, 90)
96
q.BackgroundColor3 = Color3.new(0,255,0)
97
q.Active = true
98
n = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.qe)
99
n.Position = UDim2.new(0, 0, 0, 0)
100
n.Size = UDim2.new(0, 260, 0, 30)
101
n.Style = "RobloxRoundDefaultButton"
102
n.Text = "Pepe Path"
103
n.Active = true
104
a = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.qe)
105
a.Name = "eq"
106
a.Position = UDim2.new(0, 0, 0, 30)
107
a.Size = UDim2.new(0, 260, 0, 30)
108
a.Style = "RobloxRoundDefaultButton"
109
a.Text = "Pepe Decal SPAM"
110
a.Active = true
111
no = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.qe)
112
no.Name = "nope"
113
no.Position = UDim2.new(0, 0, 0, 60)
114
no.Size = UDim2.new(0, 260, 0, 30)
115
no.Style = "RobloxRoundDefaultButton"
116
no.Text = "Pepe Music"
117
no.Active = true
118
--table.getn
119
game.Players.LocalPlayer.PlayerGui.ScreenGui.qe.TextButton.MouseButton1Down:connect(function()
120
Player = game.Players.LocalPlayer
121
 
122
bin = Instance.new("HopperBin",Player.Backpack)
123
bin.Name = "Pepe Path"
124
 
125
function onKeyDown(Key)
126
    if Key:lower() == "r" then
127
        for _,v in pairs(game.Workspace:GetChildren()) do
128
            if v.Name == "NewPart" then
129
                if v:findFirstChild("creator") and v.creator.Value == game.Players.LocalPlayer then
130
                    v:Remove()
131
                end
132
            end
133
        end
134
    end
135
end
136
 
137
function press(mouse)
138
    if sel == true then
139
        local hit = mouse.Target
140
        local point = mouse.Hit.p
141
        local s = Instance.new("Part")
142
        s.CanCollide = true
143
        s.Size=Vector3.new(6,6,6)
144
        s.Anchored = true
145
        s.BrickColor = BrickColor.Green()
146
        s.Transparency = 0
147
        s.Velocity = mouse.Hit.lookVector * 100
148
        s.Name = "NewPart"
149
        s.Material = "Neon"
150
        s.TopSurface = "Smooth"
151
        s.BottomSurface = "Smooth"
152
        s.Parent = game.Workspace
153
        local t = Instance.new("SelectionBox",s)
154
        t.Adornee = s
155
        t.Color3 = s.BrickColor.Color
156
        for i=0, 5 do
157
            local D = Instance.new("Decal")
158
            D.Name = "PEPE"
159
            D.Face = i
160
            D.Parent = s
161
            D.Texture = "http://www.roblox.com/asset/?id=244905904"
162
        end
163
        game:GetService("Debris"):AddItem(s,120)
164
        s.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.Position)
165
        s.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position.x,game.Players.LocalPlayer.Character.Torso.Position.y-6,game.Players.LocalPlayer.Character.Torso.Position.z)
166
        s.CFrame = CFrame.new(s.Position,point)
167
        local r = Instance.new("ObjectValue")
168
        r.Value = game.Players.LocalPlayer
169
        r.Parent = s
170
        r.Name = "creator"
171
        wait()
172
        press(mouse)
173
    end
174
end
175
 
176
 
177
function onButton1Down(mouse)
178
    sel = true
179
    if sel == true then
180
        press(mouse)
181
    end
182
end
183
 
184
function onButton1Up(mouse)
185
    sel = false
186
end
187
 
188
function onEquippedLocal(mouse)
189
    if mouse == nil then
190
        print("Mouse not found")
191
        return
192
    end
193
    mouse.Icon = "rbxasset://textures\\GunCursor.png"
194
    mouse.Button1Down:connect(function()
195
        onButton1Down(mouse)
196
    end)
197
    mouse.Button1Up:connect(function()
198
        onButton1Up(mouse)
199
    end)
200
    mouse.KeyDown:connect(onKeyDown)
201
end
202
 
203
 
204
bin.Selected:connect(onEquippedLocal)
205
end)
206
--PEPE SPAM
207
game.Players.LocalPlayer.PlayerGui.ScreenGui.qe.nope.MouseButton1Down:connect(function()
208
	 local s = Instance.new("Sound")
209
s.Name = "Sound"
210
s.SoundId = "http://www.roblox.com/asset/?id=264246827"
211
s.Volume = 1
212
s.Looped = true
213
s.archivable = false
214
s.Parent = game.Workspace
215
s:play()
216
end)
217
--PEPE SUIT ME
218
wait(1)
219
game.Players.LocalPlayer.PlayerGui.ScreenGui.qe.eq.MouseButton1Down:connect(function()
220
	local ID =244905904
221
function spamDecal(v)
222
    if v:IsA("Part") then
223
        for i=0, 5 do
224
            D = Instance.new("Decal")
225
            D.Name = "pepedecalxd"
226
            D.Face = i
227
            D.Parent = v
228
            D.Texture = ("http://www.roblox.com/asset/?id="..Id)
229
        end
230
    else
231
        if v:IsA("Model") then
232
            for a,b in pairs(v:GetChildren()) do
233
                spamDecal(b)
234
            end
235
        end
236
    end
237
end
238
function decalspam(id)
239
    Id = id
240
    for i,v in pairs(game.Workspace:GetChildren()) do
241
        if v:IsA("Part") then
242
        for i=0, 5 do
243
            D = Instance.new("Decal")
244
            D.Name = "pepedecalxd"
245
            D.Face = i
246
            D.Parent = v
247
            D.Texture = ("http://www.roblox.com/asset/?id="..id)
248
        end
249
    else
250
        if v:IsA("Model") then
251
            for a,b in pairs(v:GetChildren()) do
252
                spamDecal(b)
253
            end
254
        end
255
    end
256
end
257
end
258
 
259
decalspam(ID)
260
end)