View difference between Paste ID: agkXwny9 and xsWXrYLd
SHOW: | | - or go back to the newest paste.
1-
local Tool = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
1+
if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
2-
Tool.Name = "Detonater"
2+
print("FE Compatibility: by WaverlyCole & Mokiros")
3-
local Mouse = game.Players.LocalPlayer:GetMouse()
3+
InternalData = {}
4
do
5
    script.Parent = owner.Character
6-
Mouse.Button1Down:connect(function()
6+
    local Event = Instance.new("RemoteEvent")
7-
if Tool.Active == true then
7+
    Event.Name = "UserInput"
8-
local explosion = Instance.new("Explosion")
8+
    local function NewFakeEvent()
9-
explosion.BlastPressure = 1000000
9+
        local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
10-
explosion.BlastRadius = 50
10+
        return Fake
11-
explosion.DestroyJointRadiusPercent = 1
11+
    end
12-
explosion.ExplosionType = "Craters"
12+
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
13-
explosion.Parent = game.Workspace
13+
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
14-
explosion.Position = Mouse.Hit.p
14+
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
15-
explosion.Hit:connect(function(Part, Distance)
15+
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
16-
Part.Anchored = false
16+
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
17-
Part:BreakJoints()
17+
    local function TriggerEvent(self,Event,...)
18
        local Trigger = Mouse[Event]
19
        if Trigger and Trigger.fakeEvent and Trigger.Function then
20
            Trigger.Function(...)
21-
local s = Instance.new("Sound") 
21+
        end
22
    end
23-
s.Name = "Name" 
23+
    Mouse.TrigEvent = TriggerEvent
24-
s.SoundId = "rbxassetid://3295654382" 
24+
    UserInputService.TrigEvent = TriggerEvent
25-
s.Volume = 4 
25+
    Event.OnServerEvent:Connect(function(FiredBy,Input)
26-
s.Looped = true 
26+
        if FiredBy.Name ~= owner.Name then end
27-
s.archivable = false 
27+
        if Input.MouseEvent then
28
            Mouse.Target = Input.Target
29-
s.Parent = game.Workspace 
29+
            Mouse.Hit = Input.Hit
30
        else
31
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
32
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then
33-
s:play()
33+
                return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
34
            end
35
            for _,Action in pairs(ContextActionService.Actions) do
36
                for _,Key in pairs(Action.Keys) do
37
                    if Key==Input.KeyCode then
38
                        Action.Function(Action.Name,Input.UserInputState,Input)
39
                    end
40
                end
41
            end
42
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
43
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
44
        end
45
    end)
46
    InternalData["Mouse"] = Mouse
47
    InternalData["ContextActionService"] = ContextActionService
48
    InternalData["UserInputService"] = UserInputService
49
    Event.Parent = NLS([[
50
        local Player = owner
51
        local Event = script:WaitForChild("UserInput")
52
        local UserInputService = game:GetService("UserInputService")
53
        local Mouse = Player:GetMouse()
54
        local Input = function(Input,gameProcessedEvent)
55
            if gameProcessedEvent then return end
56
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
57
        end
58
        UserInputService.InputBegan:Connect(Input)
59
        UserInputService.InputEnded:Connect(Input)
60
        local Hit,Target
61
        while wait(1/30) do
62
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
63
                Hit,Target = Mouse.Hit,Mouse.Target
64
                Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
65
            end
66
        end
67
    ]],owner.Character)
68
end
69
RealGame = game;game = setmetatable({},{
70
    __index = function (self,Index)
71
        local Sandbox = function (Thing)
72
            if Thing:IsA("Player") then
73
                local RealPlayer = Thing
74
                return setmetatable({},{
75
                    __index = function (self,Index)
76
                        local Type = type(RealPlayer[Index])
77
                        if Type == "function" then
78
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
79
                                return function (self)
80
                                    return InternalData["Mouse"]
81
                                end
82
                            end
83
                            return function (self,...)
84
                                return RealPlayer[Index](RealPlayer,...)
85
                            end
86
                        else
87
                            return RealPlayer[Index]
88
                        end
89
                    end;
90
                    __tostring = function(self)
91
                        return RealPlayer.Name
92
                    end
93
                })
94
            end
95
        end
96
        if RealGame[Index] then
97
            local Type = type(RealGame[Index])
98
            if Type == "function" then
99
                if Index:lower() == "getservice" or Index:lower() == "service" then
100
                    return function (self,Service)
101
                        if Service:lower() == "players" then
102
                            return setmetatable({},{
103
                                __index = function (self2,Index2)
104
                                    local RealService = RealGame:GetService(Service)
105
                                    local Type2 = type(Index2)
106
                                    if Type2 == "function" then
107
                                        return function (self,...)
108
                                            return RealService[Index2](RealService,...)
109
                                        end
110
                                    else
111
                                        if Index2:lower() == "localplayer" then
112
                                            return Sandbox(owner)
113
                                        end
114
                                        return RealService[Index2]
115
                                    end
116
                                end;
117
                                __tostring = function(self)
118
                                    return RealGame:GetService(Service).Name
119
                                end
120
                            })
121
                        elseif Service:lower() == "contextactionservice" then
122
                            return InternalData["ContextActionService"]
123
                        elseif Service:lower() == "contextactionservice" then
124
                            return InternalData["UserInputService"]
125
                        elseif Service:lower() == "runservice" then
126
                            return setmetatable({},{
127
                                __index = function(self2,Index2)
128
                                    local RealService = RealGame:GetService(Service)
129
                                    local Type2 = type(Index2)
130
                                    if Type2 == "function" then
131
                                        return function (self,...)
132
                                            return RealService[Index2](RealService,...)
133
                                        end
134
                                    else
135
                                        if Index2:lower() == "bindtorenderstep" then
136
                                            return function (self,Name,Priority,Function)
137
                                                return RealGame:GetService("RunService").Stepped:Connect(Function)
138
                                            end
139
                                        end
140
                                        if Index2:lower() == "renderstepped" then
141
                                            return RealService["Stepped"]
142
                                        end
143
                                        return RealService[Index2]
144
                                    end
145
                                end
146
                            })
147
                        else
148
                            return RealGame:GetService(Service)
149
                        end
150
                    end
151
                end
152
                return function (self,...)
153
                    return RealGame[Index](RealGame,...)
154
                end
155
            else
156
                if game:GetService(Index) then
157
                    return game:GetService(Index)
158
                end
159
                return RealGame[Index]
160
            end
161
        else
162
            return nil
163
        end
164
    end
165
});Game = game;owner = game:GetService("Players").LocalPlayer
166
print("Complete! Running... ")
167
168
169
170
171
172
creeper = Instance.new("Sound", game.Players.LocalPlayer.Character)
173
creeper.SoundId = "rbxassetid://3295654382"
174
creeper.Looped = true
175
creeper:Play()
176
creeper.Volume = 20
177
178
179
180
181
wait(0.1) 
182
183
184
CV="White"
185
186
	p = game.Players.LocalPlayer
187
	char = p.Character
188
    Torso = char["Torso"]
189
    Head = char["Head"]
190
   RightArm = char["Right Arm"]
191
   LeftArm = char["Left Arm"]
192
   RightLeg = char["Right Leg"]
193
   LeftLeg = char["Left Leg"]
194
	local txt = Instance.new("BillboardGui", char)
195
	txt.Adornee = char .Head
196
	txt.Name = "_status"
197
	txt.Size = UDim2.new(2, 0, 1.2, 0)
198
	txt.StudsOffset = Vector3.new(-9, 8, 0)
199
	local text = Instance.new("TextLabel", txt)
200
	text.Size = UDim2.new(10, 0, 7, 0)
201
	text.FontSize = "Size24"
202
	text.TextScaled = true
203
	text.TextTransparency = 0
204
	text.BackgroundTransparency = 1 
205
	text.TextTransparency = 0
206
	text.TextStrokeTransparency = 1
207
	text.Font = "Arcade"
208
	text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
209
210
	v=Instance.new("Part")
211
	v.Name = "ColorBrick"
212
	v.Parent=p.Character
213
	v.FormFactor="Symmetric"
214
	v.Anchored=true
215
	v.CanCollide=false
216
	v.BottomSurface="Smooth"
217
	v.TopSurface="Smooth"
218
	v.Size=Vector3.new(10,5,3)
219
	v.Transparency=1
220
	v.CFrame=char.Torso.CFrame
221
	v.BrickColor=BrickColor.new(CV)
222
	v.Transparency=1
223
	text.TextColor3 = Color3.fromRGB(31, 128, 29)
224
	v.Shape="Block"
225
	text.Text = "CREEPER"
226
char = game:service'Players'.LocalPlayer.Character
227
m = game:service'Players'.LocalPlayer:GetMouse()
228
229
------------------------------------
230
231
char["Body Colors"].HeadColor = BrickColor.new("Bright green")
232
char["Body Colors"].TorsoColor = BrickColor.new("Bright green")
233
char["Body Colors"].LeftArmColor = BrickColor.new("Bright green")
234
char["Body Colors"].RightArmColor = BrickColor.new("Bright green")
235
char["Body Colors"].LeftLegColor = BrickColor.new("Bright green")
236
char["Body Colors"].RightLegColor = BrickColor.new("Bright green")
237
238
-----------------------------
239
function Aesthetics()
240
241
242
    char.Head.face.Texture = "http://www.roblox.com/asset/?id=62080269"
243
end
244
245
Aesthetics()
246
247
248
m.KeyDown:connect(function(k)
249
if k == "z" then
250
char.Head.face.Texture = "http://www.roblox.com/asset/?id=145405176"
251
end
252
end)
253
game.Players.LocalPlayer.Character["Right Arm"]:Remove()
254
game.Players.LocalPlayer.Character["Left Arm"]:Remove()
255
game.Players.LocalPlayer.Character.Head.Mesh:Remove()
256
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
257
if (v:IsA("Accessory")) then
258
v.Parent = workspace
259
end
260
end