SHOW:
|
|
- or go back to the newest paste.
1 | - | tool = Instance.new("Tool") |
1 | + | --By Haker man |
2 | --Made with some rufus14 code | |
3 | function sandbox(var,func) | |
4 | local env = getfenv(func) | |
5 | - | tool.Name = "Cube" |
5 | + | local newenv = setmetatable({},{ |
6 | - | tool.Parent = owner.Backpack |
6 | + | __index = function(self,k) |
7 | - | tool.ToolTip = "Dont Touch" |
7 | + | if k=="script" then |
8 | return var | |
9 | - | Part1.Parent = tool |
9 | + | else |
10 | - | Part1.Size = Vector3.new(1, 1, 1) |
10 | + | return env[k] |
11 | - | Part1.Color = Color3.fromRGB(255, 0, 0) |
11 | + | end |
12 | - | Part1.Material = "Neon" |
12 | + | end, |
13 | }) | |
14 | - | Part6.Parent = tool |
14 | + | setfenv(func,newenv) |
15 | return func | |
16 | end | |
17 | owner.Character:WaitForChild("Head") | |
18 | cors = {} | |
19 | - | Part6.Material = "SmoothPlastic" |
19 | + | local ChatService = game:GetService("Chat") |
20 | mas = Instance.new("Model",game:GetService("Lighting")) | |
21 | - | Part7.Parent = tool |
21 | + | local ChatService = game:GetService("Chat") |
22 | - | Part7.Color = Color3.fromRGB(79, 79, 79) |
22 | + | Tool0 = Instance.new("Tool") |
23 | - | Part7.Transparency = 0.5 |
23 | + | |
24 | - | Part7.Size = Vector3.new(1.5, 1.5, 1.5) |
24 | + | ParticleEmitter3 = Instance.new("ParticleEmitter") |
25 | - | Part7.Material = "SmoothPlastic" |
25 | + | Weld4 = Instance.new("Weld") |
26 | - | Weld4 = Instance.new("Weld",Part1) |
26 | + | Weld8 = Instance.new("Weld") |
27 | - | Weld8 = Instance.new("Weld",Part1) |
27 | + | Script5 = Instance.new("Script") |
28 | Part6 = Instance.new("Part") | |
29 | Part7 = Instance.new("Part") | |
30 | Tool0.Name = "cheeky boi" | |
31 | Tool0.Parent = mas | |
32 | - | local music = Instance.new("Sound", owner.character.Head) |
32 | + | Tool0.ToolTip = "he ball" |
33 | - | music.Looped = true |
33 | + | |
34 | - | music.Volume = 1 |
34 | + | Part1.Parent = Tool0 |
35 | Part1.Shape = Enum.PartType.Ball | |
36 | Part1.Color = Color3.new(1, 0.596078, 0.894118) | |
37 | Part1.Size = Vector3.new(2, 2, 2) | |
38 | Part1.Position = Vector3.new(0, 0, 1.75) | |
39 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
40 | - | tool.Activated:Connect(function() |
40 | + | Part1.BrickColor = BrickColor.new("Really black") |
41 | - | if not candamage then |
41 | + | Part1.TopSurface = Enum.SurfaceType.Smooth |
42 | - | candamage = true |
42 | + | Part1.brickColor = BrickColor.new("Really black") |
43 | - | Part1.Color = Color3.fromRGB(255, 0, 0) |
43 | + | Part1.Material = "SmoothPlastic" |
44 | - | elseif candamage then |
44 | + | ParticleEmitter3.Parent = Part1 |
45 | ParticleEmitter3.Speed = NumberRange.new(0.5, 0.5) | |
46 | - | Part1.Color = Color3.fromRGB(82, 82, 82) |
46 | + | ParticleEmitter3.LightEmission = 1 |
47 | ParticleEmitter3.LightInfluence = 1 | |
48 | ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=304437537" | |
49 | ParticleEmitter3.Color = ColorSequence.new(Color3.new(100, 0, 100),Color3.new(100, 0, 100)) | |
50 | ParticleEmitter3.Transparency = NumberSequence.new(0,0.75) | |
51 | - | music:Pause() |
51 | + | ParticleEmitter3.Size = NumberSequence.new(0.10000000149012,0) |
52 | - | owner.Character.Humanoid.WalkSpeed = 16 |
52 | + | ParticleEmitter3.Drag = 1 |
53 | ParticleEmitter3.Lifetime = NumberRange.new(3, 3) | |
54 | ParticleEmitter3.Rate = 150 | |
55 | ParticleEmitter3.SpreadAngle = Vector2.new(0, 360) | |
56 | local decal = Instance.new("Decal", Part1) | |
57 | - | owner.Character.Humanoid.WalkSpeed = 50 |
57 | + | decal.Face = Enum.NormalId.Bottom |
58 | local happyFace = "http://www.roblox.com/asset/?id=7055097186" | |
59 | - | music:Resume() |
59 | + | decal.Texture = happyFace |
60 | - | local playerhum = owner.Character.Humanoid |
60 | + | Part1.Material = "Slate" |
61 | wait(0.10) | |
62 | Part1.BrickColor = BrickColor.new(0.345,0.56,0.93) | |
63 | - | rightgrip = owner.Character["Right Arm"]:WaitForChild("RightGrip") |
63 | + | Part1.Transparency = 0 |
64 | ParticleEmitter3:destroy() | |
65 | - | rightgrip = owner.Character["RightHand"]:WaitForChild("RightGrip") |
65 | + | Part7.CFrame = CFrame.Angles(math.rad(90), 0, 0) |
66 | wait(0.1) | |
67 | Weld4.Parent = Part1 | |
68 | Weld4.Part0 = Part1 | |
69 | Weld4.Part1 = Part6 | |
70 | - | rightgrip.C0 = CFrame.new(0,-0.4,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0) |
70 | + | Weld4.part1 = Part6 |
71 | Weld8.Parent = Part1 | |
72 | - | rightgrip.C0 = CFrame.new(0,-1.5,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0) |
72 | + | |
73 | Weld8.Part1 = Part7 | |
74 | Weld8.part1 = Part7 | |
75 | Script5.Parent = Tool0 | |
76 | table.insert(cors,sandbox(Script5,function() | |
77 | - | local SoundIds = {"4821414299", "6394547745", "2953054310", "2502051246"} |
77 | + | --By Haker man |
78 | damage = 1e+09 | |
79 | - | music.SoundId = "rbxassetid://" .. SoundIds[math.random(1, #SoundIds)] |
79 | + | --Made with some rufus14 code |
80 | ||
81 | - | music.Ended:Connect(function(SoundId) |
81 | + | tool = script.Parent |
82 | - | local newSoundId |
82 | + | handle = tool.Handle |
83 | hitbox = tool.hitbox | |
84 | - | do repeat |
84 | + | |
85 | - | newSoundId = "rbxassetid://" .. SoundIds[math.random(1, #SoundIds)] |
85 | + | |
86 | - | wait() |
86 | + | |
87 | - | until |
87 | + | character = nil |
88 | - | newSoundId ~= SoundId |
88 | + | playerhum = nil |
89 | equipped = false | |
90 | tool.Unequipped:connect(function() | |
91 | - | music:Stop() |
91 | + | |
92 | - | music.SoundId = newSoundId |
92 | + | |
93 | - | music.TimePosition = 0 |
93 | + | |
94 | - | task.wait() |
94 | + | |
95 | - | music:Resume() |
95 | + | Part1.Anchored = false |
96 | equipped = true | |
97 | owner = players:GetPlayerFromCharacter(tool.Parent) | |
98 | - | function killfunction(part) |
98 | + | character = owner.Character |
99 | - | if part.Name ~= "Base" and candamage then |
99 | + | playerhum = character:findFirstChildOfClass("Humanoid") |
100 | - | part:Destroy() |
100 | + | |
101 | if playerhum.RigType == Enum.HumanoidRigType.R6 then | |
102 | rightgrip = character["Right Arm"]:WaitForChild("RightGrip") | |
103 | elseif playerhum.RigType == Enum.HumanoidRigType.R15 then | |
104 | - | Part6.Touched:connect(killfunction) |
104 | + | rightgrip = character["RightHand"]:WaitForChild("RightGrip") |
105 | end | |
106 | coroutine.wrap(function() | |
107 | while equipped and runservice.Stepped:wait() do | |
108 | if playerhum.RigType == Enum.HumanoidRigType.R15 then | |
109 | rightgrip.C0 = CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),6) | |
110 | elseif playerhum.RigType == Enum.HumanoidRigType.R6 then | |
111 | rightgrip.C0 = CFrame.new(0,-1.5,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),6) | |
112 | end | |
113 | end | |
114 | end)() | |
115 | end) | |
116 | ||
117 | candamage = false | |
118 | ||
119 | tool.Activated:connect(function() | |
120 | tool.Parent = workspace | |
121 | handle.CFrame = character.Head.CFrame * CFrame.new(0,0,-7.5) | |
122 | candamage = false | |
123 | local velocity = Instance.new("BodyVelocity", handle) | |
124 | velocity.Velocity = character.Head.CFrame.lookVector * 35 | |
125 | velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
126 | coroutine.wrap(function() | |
127 | Part1.Size = Vector3.new(7.5, 7.5, 7.5) | |
128 | wait(0.1) | |
129 | velocity:destroy() | |
130 | Part6.Size = Vector3.new(10, 10, 10) | |
131 | candamage = true | |
132 | wait(2.5) | |
133 | Part1.Size = Vector3.new(2, 2, 2) | |
134 | Part6.Size = Vector3.new(3, 3, 3) | |
135 | wait(1) | |
136 | candamage = false | |
137 | Part1.Anchored = true | |
138 | end)() | |
139 | end) | |
140 | ||
141 | function killfunction(WHAT) | |
142 | if WHAT.Parent == nil then return end | |
143 | local humanoid = WHAT.Parent:findFirstChildOfClass("Humanoid") | |
144 | if humanoid and candamage then | |
145 | if humanoid.MaxHealth == math.huge then | |
146 | humanoid.MaxHealth = damage | |
147 | end | |
148 | humanoid.Health = humanoid.Health - damage | |
149 | if humanoid.Health <= 0 then | |
150 | local mainpart = Instance.new("UnionOperation", workspace) | |
151 | mainpart.Anchored = true | |
152 | mainpart.Transparency = 1 | |
153 | mainpart.CFrame = WHAT.CFrame | |
154 | mainpart.Size = Vector3.new(0.1,0.1,0.1) | |
155 | if humanoid.Parent:findFirstChild(tool) then | |
156 | humanoid.Parent:findFirstChild(tool).Parent = workspace | |
157 | end | |
158 | for i,v in pairs(humanoid.Parent:GetDescendants()) do | |
159 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
160 | bonk.PlaybackSpeed = math.random(80, 125)/100 | |
161 | bonk:play() | |
162 | end | |
163 | end | |
164 | end | |
165 | end | |
166 | end | |
167 | coroutine.wrap(function() | |
168 | while true do | |
169 | wait(0.1) | |
170 | local cheekyspeak = math.random(1,7) | |
171 | if cheekyspeak == 1 then | |
172 | ChatService:Chat(Part1, "I have a mac now where is the cheese", "White") | |
173 | wait(2.5) | |
174 | elseif cheekyspeak == 2 then | |
175 | ChatService:Chat(Part1, "Let me go", "White") | |
176 | wait(2.5) | |
177 | elseif cheekyspeak == 3 then | |
178 | ChatService:Chat(Part1, "engineer gaming", "White") | |
179 | wait(2.5) | |
180 | elseif cheekyspeak == 4 then | |
181 | ChatService:Chat(Part1, "Give the irish potatoes", "White") | |
182 | wait(2.5) | |
183 | elseif cheekyspeak == 5 then | |
184 | ChatService:Chat(Part1, "Why am I a marketable plushy?", "White") | |
185 | wait(2.5) | |
186 | elseif cheekyspeak == 6 then | |
187 | ChatService:Chat(Part1, "What", "White") | |
188 | wait(2.5) | |
189 | elseif cheekyspeak == 7 then | |
190 | ChatService:Chat(Part1, "I am roc", "White") | |
191 | wait(2.5) | |
192 | end | |
193 | end | |
194 | end)() | |
195 | hitbox.Touched:connect(killfunction) | |
196 | end)) | |
197 | Part6.Name = "hitbox" | |
198 | Part6.Parent = Tool0 | |
199 | Part6.Color = Color3.new(1, 0.596078, 0.894118) | |
200 | Part6.Transparency = 1 | |
201 | Part6.Size = Vector3.new(3, 3, 3) | |
202 | Part6.Position = Vector3.new(0, 0, 1.75) | |
203 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
204 | Part6.BrickColor = BrickColor.new("Institutional White") | |
205 | Part6.CanCollide = false | |
206 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
207 | Part6.brickColor = BrickColor.new("Institutional White") | |
208 | Part7.Name = "Visible" | |
209 | Part7.Parent = Part1 | |
210 | Part7.Color = Color3.new(1, 0.596078, 0.894118) | |
211 | Part7.Transparency = 1 | |
212 | Part7.Size = Vector3.new(1, 1, 1) | |
213 | Part7.Shape = Enum.PartType.Ball | |
214 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
215 | Part7.BrickColor = BrickColor.new("Magenta") | |
216 | Part7.CanCollide = false | |
217 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
218 | Part7.brickColor = BrickColor.new("Magenta") | |
219 | for i,v in pairs(mas:GetChildren()) do | |
220 | v.Parent = owner.Character | |
221 | pcall(function() v:MakeJoints() end) | |
222 | end | |
223 | mas:Destroy() | |
224 | for i,v in pairs(cors) do | |
225 | spawn(function() | |
226 | pcall(v) | |
227 | end) | |
228 | end |