SHOW:
|
|
- or go back to the newest paste.
1 | - | --By Rufus14 |
1 | + | tool = Instance.new("Tool") |
2 | - | --Converted with ttyyuu12345's model to script plugin v4 |
2 | + | |
3 | - | function sandbox(var,func) |
3 | + | |
4 | - | local env = getfenv(func) |
4 | + | Part7 = Instance.new("Part") |
5 | - | local newenv = setmetatable({},{ |
5 | + | tool.Name = "Cube" |
6 | - | __index = function(self,k) |
6 | + | tool.Parent = owner.Backpack |
7 | - | if k=="script" then |
7 | + | tool.ToolTip = "Dont Touch" |
8 | - | return var |
8 | + | |
9 | - | else |
9 | + | Part1.Parent = tool |
10 | - | return env[k] |
10 | + | Part1.Size = Vector3.new(1, 1, 1) |
11 | - | end |
11 | + | Part1.Color = Color3.fromRGB(255, 0, 0) |
12 | - | end, |
12 | + | Part1.Material = "Neon" |
13 | - | }) |
13 | + | |
14 | - | setfenv(func,newenv) |
14 | + | Part6.Parent = tool |
15 | - | return func |
15 | + | |
16 | Part6.Size = Vector3.new(3, 3, 3) | |
17 | - | cors = {} |
17 | + | Part6.BrickColor = BrickColor.new("Institutional White") |
18 | - | mas = Instance.new("Model",game:GetService("Lighting")) |
18 | + | |
19 | - | Tool0 = Instance.new("Tool") |
19 | + | Part6.Material = "SmoothPlastic" |
20 | Part7.Name = "Visible" | |
21 | - | SpecialMesh2 = Instance.new("SpecialMesh") |
21 | + | Part7.Parent = tool |
22 | - | ParticleEmitter3 = Instance.new("ParticleEmitter") |
22 | + | Part7.Color = Color3.fromRGB(79, 79, 79) |
23 | - | Weld4 = Instance.new("Weld") |
23 | + | Part7.Transparency = 0.5 |
24 | - | Script5 = Instance.new("Script") |
24 | + | Part7.Size = Vector3.new(1.5, 1.5, 1.5) |
25 | Part7.Material = "SmoothPlastic" | |
26 | - | Tool0.Name = "Soap" |
26 | + | Weld4 = Instance.new("Weld",Part1) |
27 | - | Tool0.Parent = mas |
27 | + | Weld8 = Instance.new("Weld",Part1) |
28 | - | Tool0.ToolTip = "the soap does 100 million damage now because it's funny." |
28 | + | |
29 | Weld4.Part1 = Part6 | |
30 | - | Part1.Parent = Tool0 |
30 | + | Weld8.Part0 = Part1 |
31 | - | Part1.CFrame = CFrame.new(0.500000358, 1.5, -2.50001812, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
31 | + | Weld8.Part1 = Part7 |
32 | - | Part1.Position = Vector3.new(0.500000358, 1.5, -2.50001812) |
32 | + | local music = Instance.new("Sound", owner.character.Head) |
33 | - | Part1.Color = Color3.new(1, 0.596078, 0.894118) |
33 | + | music.Looped = true |
34 | - | Part1.Size = Vector3.new(0.999999344, 0.200000003, 0.599999964) |
34 | + | music.Volume = 1 |
35 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
35 | + | |
36 | - | Part1.BrickColor = BrickColor.new("Carnation pink") |
36 | + | |
37 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
37 | + | |
38 | - | Part1.brickColor = BrickColor.new("Carnation pink") |
38 | + | |
39 | - | SpecialMesh2.Parent = Part1 |
39 | + | |
40 | - | SpecialMesh2.MeshId = "rbxasset://fonts//torso.mesh" |
40 | + | tool.Activated:Connect(function() |
41 | - | SpecialMesh2.Scale = Vector3.new(0.5, 0.100000001, 0.600000024) |
41 | + | if not candamage then |
42 | - | SpecialMesh2.MeshType = Enum.MeshType.FileMesh |
42 | + | candamage = true |
43 | - | ParticleEmitter3.Parent = Part1 |
43 | + | Part1.Color = Color3.fromRGB(255, 0, 0) |
44 | - | ParticleEmitter3.Speed = NumberRange.new(0.5, 0.5) |
44 | + | elseif candamage then |
45 | - | ParticleEmitter3.LightEmission = 1 |
45 | + | |
46 | - | ParticleEmitter3.LightInfluence = 1 |
46 | + | Part1.Color = Color3.fromRGB(82, 82, 82) |
47 | - | ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=838062436" |
47 | + | |
48 | - | ParticleEmitter3.Transparency = NumberSequence.new(0,1) |
48 | + | |
49 | - | ParticleEmitter3.Size = NumberSequence.new(0.20000000298023,0.20000000298023) |
49 | + | |
50 | - | ParticleEmitter3.Drag = 1 |
50 | + | |
51 | - | ParticleEmitter3.Lifetime = NumberRange.new(3, 3) |
51 | + | music:Pause() |
52 | - | ParticleEmitter3.Rate = 1.5 |
52 | + | owner.Character.Humanoid.WalkSpeed = 16 |
53 | - | ParticleEmitter3.SpreadAngle = Vector2.new(0, 360) |
53 | + | |
54 | - | Weld4.Parent = Part1 |
54 | + | |
55 | tool.Equipped:connect(function() | |
56 | owner = players:GetPlayerFromCharacter(tool.Parent) | |
57 | - | Weld4.part1 = Part6 |
57 | + | owner.Character.Humanoid.WalkSpeed = 50 |
58 | - | Script5.Parent = Tool0 |
58 | + | |
59 | - | table.insert(cors,sandbox(Script5,function() |
59 | + | music:Resume() |
60 | - | --By Rufus14 |
60 | + | local playerhum = owner.Character.Humanoid |
61 | - | damage = 1e+09 |
61 | + | local rightgrip |
62 | - | -- |
62 | + | if playerhum.RigType == Enum.HumanoidRigType.R6 then |
63 | - | tool = script.Parent |
63 | + | rightgrip = owner.Character["Right Arm"]:WaitForChild("RightGrip") |
64 | - | handle = tool.Handle |
64 | + | elseif playerhum.RigType == Enum.HumanoidRigType.R15 then |
65 | - | hitbox = tool.hitbox |
65 | + | rightgrip = owner.Character["RightHand"]:WaitForChild("RightGrip") |
66 | end | |
67 | coroutine.wrap(function() | |
68 | while equipped and runservice.Stepped:wait() do | |
69 | if playerhum.RigType == Enum.HumanoidRigType.R15 then | |
70 | - | character = nil |
70 | + | rightgrip.C0 = CFrame.new(0,-0.4,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0) |
71 | - | playerhum = nil |
71 | + | elseif playerhum.RigType == Enum.HumanoidRigType.R6 then |
72 | rightgrip.C0 = CFrame.new(0,-1.5,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*1.5)/6,math.cos(tick()*1.5),0) | |
73 | end | |
74 | end | |
75 | end)() | |
76 | - | function swait(HOWMANY) |
76 | + | |
77 | - | for i = 1,HOWMANY do |
77 | + | local SoundIds = {"4821414299", "6394547745", "2953054310", "2502051246"} |
78 | - | runservice.Stepped:wait() |
78 | + | |
79 | - | end |
79 | + | music.SoundId = "rbxassetid://" .. SoundIds[math.random(1, #SoundIds)] |
80 | ||
81 | music.Ended:Connect(function(SoundId) | |
82 | - | function gibbie(where, howlong) |
82 | + | local newSoundId |
83 | - | local gibbieeeee = Instance.new("SpawnLocation", workspace) |
83 | + | |
84 | - | gibbieeeee.Neutral = false |
84 | + | do repeat |
85 | - | gibbieeeee:BreakJoints() |
85 | + | newSoundId = "rbxassetid://" .. SoundIds[math.random(1, #SoundIds)] |
86 | - | gibbieeeee.Size = Vector3.new(1.4, 1.6, 3.2) |
86 | + | wait() |
87 | - | gibbieeeee.CFrame = where |
87 | + | until |
88 | - | local gibyyyyyy = Instance.new("SpecialMesh", gibbieeeee) |
88 | + | newSoundId ~= SoundId |
89 | - | gibyyyyyy.Scale = Vector3.new(0.75+math.random(-10,10)/30, 0.75+math.random(-10,10)/30, 1.5+math.random(-10,10)/30) |
89 | + | end |
90 | - | gibyyyyyy.MeshId = "http://www.roblox.com/asset/?id=1290033" |
90 | + | |
91 | - | gibyyyyyy.TextureId = "http://www.roblox.com/asset/?id=1290030" |
91 | + | music:Stop() |
92 | - | gibyyyyyy.VertexColor = Vector3.new(1,0,0) |
92 | + | music.SoundId = newSoundId |
93 | - | game.Debris:AddItem(gibbieeeee, howlong) |
93 | + | music.TimePosition = 0 |
94 | task.wait() | |
95 | music:Resume() | |
96 | end) | |
97 | ||
98 | function killfunction(part) | |
99 | if part.Name ~= "Base" and candamage then | |
100 | part:Destroy() | |
101 | end | |
102 | end | |
103 | - | character = owner.Character |
103 | + | |
104 | - | playerhum = character:findFirstChildOfClass("Humanoid") |
104 | + | Part6.Touched:connect(killfunction) |