View difference between Paste ID: 627La9V2 and icmUJez9
SHOW: | | - or go back to the newest paste.
1
  if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
2
do
3
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34
    end
35
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59
        while wait(1/30) do
60
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
            end
63
        end
64
    ]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
    __index = function (self,Index)
68
        local Sandbox = function (Thing)
69
            if Thing:IsA("Player") then
70
                local RealPlayer = Thing
71
                return setmetatable({},{
72
                    __index = function (self,Index)
73
                        local Type = type(RealPlayer[Index])
74
                        if Type == "function" then
75
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
                                return function (self)return InternalData["Mouse"] end
77
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
141
142
local Player = game:GetService("Players").LocalPlayer
143
repeat
144
	wait()
145
until Player.Character
146
local Character = Player.Character
147
TrailSettings = {
148
	Lifetime = 1,
149
	Texture = "http://www.roblox.com/asset/?id=25356538",
150-
	Color1 = ColorSequence.new(BrickColor.new("Really black").Color),
150+
	Color1 = ColorSequence.new(BrickColor.new("Purple").Color),
151-
	Color2 = ColorSequence.new(BrickColor.new("Really black").Color),
151+
	Color2 = ColorSequence.new(BrickColor.new("Purple").Color),
152
	AllBody = true,
153
	UpperBodyOnly = false,
154
	LowerBodyOnly = false,
155
	Accessories = false,
156
	Extras = true,
157
	R15 = false,
158
	R15Parts = {"UpperTorso", "LowerTorso"}
159
}
160
local Trail
161
function UpperBody()
162
	if TrailSettings.R15 == false then
163
		A0 = Instance.new("Attachment", Character.Torso)
164
		A1 = Instance.new("Attachment", Character.Head)
165
		A2 = Instance.new("Attachment", Character["Right Arm"])
166
		A3 = Instance.new("Attachment", Character["Left Arm"])
167
		Trail = Instance.new("Trail", Character)
168
		Trail.Attachment0 = A0
169
		Trail.Attachment1 = A1
170
		Trail.Texture = TrailSettings.Texture
171
		Trail.Color = TrailSettings.Color1
172
		Trail.Lifetime = TrailSettings.Lifetime
173
		local Trail2 = Trail:Clone()
174
		Trail2.Parent = Character
175
		Trail2.Attachment1 = A2
176
		local Trail3 = Trail:Clone()
177
		Trail3.Parent = Character
178
		Trail3.Attachment1 = A3
179
		local Trail6 = Trail:Clone()
180
		Trail6.Parent = Character
181
		Trail6.Attachment0 = A1
182
		Trail6.Attachment1 = A2
183
		local Trail7 = Trail:Clone()
184
		Trail7.Parent = Character
185
		Trail7.Attachment0 = A1
186
		Trail7.Attachment1 = A3
187
	else
188
		A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]])
189
		A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]])
190
		A1 = Instance.new("Attachment", Character.Head)
191
		A2 = Instance.new("Attachment", Character.RightUpperArm)
192
		A2R = Instance.new("Attachment", Character.RightLowerArm)
193
		A3 = Instance.new("Attachment", Character.LeftUpperArm)
194
		A3R = Instance.new("Attachment", Character.LeftLowerArm)
195
		Trail = Instance.new("Trail", Character)
196
		Trail.Attachment0 = A0
197
		Trail.Attachment1 = A1
198
		Trail.Texture = TrailSettings.Texture
199
		Trail.Color = TrailSettings.Color1
200
		Trail.Lifetime = TrailSettings.Lifetime
201
		local Trail2 = Trail:Clone()
202
		Trail2.Parent = Character
203
		Trail2.Attachment1 = A2
204
		local Trail3 = Trail:Clone()
205
		Trail3.Parent = Character
206
		Trail3.Attachment1 = A3
207
		local Trail6 = Trail:Clone()
208
		Trail6.Parent = Character
209
		Trail6.Attachment0 = A1
210
		Trail6.Attachment1 = A2
211
		local Trail7 = Trail:Clone()
212
		Trail7.Parent = Character
213
		Trail7.Attachment0 = A1
214
		Trail7.Attachment1 = A3
215
		local Trail1R = Trail:Clone()
216
		Trail1R.Parent = Character
217
		Trail1R.Attachment1 = A2R
218
		local Trail2R = Trail:Clone()
219
		Trail2R.Parent = Character
220
		Trail2R.Attachment1 = A3R
221
		local Trail6R = Trail:Clone()
222
		Trail6.Parent = Character
223
		Trail6.Attachment0 = A1
224
		Trail6.Attachment1 = A2R
225
		local Trail7R = Trail:Clone()
226
		Trail7.Parent = Character
227
		Trail7.Attachment0 = A1
228
		Trail7.Attachment1 = A3R
229
	end
230
end
231
function LowerBody()
232
	if TrailSettings.R15 == false then
233
		A4 = Instance.new("Attachment", Character["Right Leg"])
234
		A5 = Instance.new("Attachment", Character["Left Leg"])
235
		local Trail4 = Trail:Clone()
236
		Trail4.Parent = Character
237
		Trail4.Attachment1 = A4
238
		local Trail5 = Trail:Clone()
239
		Trail5.Parent = Character
240
		Trail5.Attachment1 = A5
241
		local Trail8 = Trail:Clone()
242
		Trail8.Parent = Character
243
		Trail8.Attachment0 = A2
244
		Trail8.Attachment1 = A4
245
		Trail8.Color = TrailSettings.Color2
246
		local Trail9 = Trail:Clone()
247
		Trail9.Parent = Character
248
		Trail9.Attachment0 = A3
249
		Trail9.Attachment1 = A5
250
		Trail9.Color = TrailSettings.Color2
251
		local FT = Trail:Clone()
252
		FT.Parent = Character
253
		FT.Attachment0 = A4
254
		FT.Attachment1 = A5
255
		FT.Color = TrailSettings.Color2
256
	else
257
		A4 = Instance.new("Attachment", Character.RightLowerLeg)
258
		A4R = Instance.new("Attachment", Character.RightUpperLeg)
259
		A5 = Instance.new("Attachment", Character.LeftLowerLeg)
260
		A5R = Instance.new("Attachment", Character.LeftUpperLeg)
261
		local Trail4 = Trail:Clone()
262
		Trail4.Parent = Character
263
		Trail4.Attachment1 = A4
264
		local Trail5 = Trail:Clone()
265
		Trail5.Parent = Character
266
		Trail5.Attachment1 = A5
267
		local Trail8 = Trail:Clone()
268
		Trail8.Parent = Character
269
		Trail8.Attachment0 = A2
270
		Trail8.Attachment1 = A4
271
		Trail8.Color = TrailSettings.Color2
272
		local Trail9 = Trail:Clone()
273
		Trail9.Parent = Character
274
		Trail9.Attachment0 = A3
275
		Trail9.Attachment1 = A5
276
		Trail9.Color = TrailSettings.Color2
277
		local FT = Trail:Clone()
278
		FT.Parent = Character
279
		FT.Attachment0 = A4
280
		FT.Attachment1 = A5
281
		FT.Color = TrailSettings.Color2
282
		local Trail3R = Trail:Clone()
283
		Trail3R.Parent = Character
284
		Trail3R.Attachment1 = A4R
285
		local Trail4R = Trail:Clone()
286
		Trail4R.Parent = Character
287
		Trail4R.Attachment1 = A5R
288
		local Trail8 = Trail:Clone()
289
		Trail8.Parent = Character
290
		Trail8.Attachment0 = A2R
291
		Trail8.Attachment1 = A4R
292
		Trail8.Color = TrailSettings.Color2
293
		local Trail9 = Trail:Clone()
294
		Trail9.Parent = Character
295
		Trail9.Attachment0 = A3R
296
		Trail9.Attachment1 = A5R
297
		Trail9.Color = TrailSettings.Color2
298
		local FT2R = Trail:Clone()
299
		FT2R.Parent = Character
300
		FT2R.Attachment0 = A4R
301
		FT2R.Attachment1 = A5R
302
		FT2R.Color = TrailSettings.Color2
303
	end
304
end
305
function AllBody()
306
	UpperBody()
307
	LowerBody()
308
end
309
if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
310
	TrailSettings.UpperBodyOnly = false
311
	TrailSettings.LowerBodyOnly = false
312
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
313
	TrailSettings.UpperBodyOnly = false
314
	TrailSettings.LowerBodyOnly = false
315
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
316
	TrailSettings.UpperBodyOnly = false
317
	TrailSettings.LowerBodyOnly = false
318
elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
319
	TrailSettings.AllBody = true
320
	TrailSettings.UpperBodyOnly = false
321
	TrailSettings.LowerBodyOnly = false
322
end
323
if TrailSettings.UpperBodyOnly == true then
324
	UpperBody()
325
	print("Called Upper Body Trail")
326
elseif TrailSettings.LowerBodyOnly == true then
327
	LowerBody()
328
	print("Called Lower Body Trail")
329
elseif TrailSettings.AllBody == true then
330
	AllBody()
331
	print("Called Full Body Trail")
332
end
333
if TrailSettings.Accessories == true then
334
	for Index, Item in pairs(Character:GetChildren()) do
335
		if Item:IsA("Accessory") then
336
			local AA = Instance.new("Attachment", Item.Handle)
337
			local ATrail = Trail:Clone()
338
			ATrail.Parent = Character
339
			ATrail.Attachment1 = AA
340
		end
341
	end
342
end
343
if TrailSettings.Extras == true then
344
	spawn(function()
345
		repeat
346
			wait()
347
		until Trail
348
		local AB = Instance.new("Attachment", a)
349
		local ABT = Trail:Clone()
350
		ABT.Parent = Character
351
		ABT.Attachment0 = A4
352
		ABT.Attachment1 = AB
353
		ABT.Color = TrailSettings.Color2
354
		local ABT2 = Trail:Clone()
355
		ABT2.Parent = Character
356
		ABT2.Attachment0 = A5
357
		ABT2.Attachment1 = AB
358
		ABT2.Color = TrailSettings.Color2
359
	end)
360
end