SHOW:
|
|
- or go back to the newest paste.
1 | - | me = game.Players.YOURNAMEHERE |
1 | + | me = game.Players.JayTheLionJR |
2 | hoppa = Instance.new("HopperBin") | |
3 | hoppa.Parent = me.Backpack | |
4 | - | hoppa.Name = "Steal" |
4 | + | hoppa.Name = "Thank u" |
5 | script.Parent = hoppa | |
6 | function selected(mouse, key) | |
7 | mouse.Button1Down:connect(function() | |
8 | if mouse.Target then | |
9 | local targ = mouse.Target | |
10 | if targ.Name == "Base" then return end | |
11 | local too = Instance.new("Tool") | |
12 | too.Parent = me.Backpack | |
13 | too.Name = targ.Name | |
14 | too.GripPos = Vector3.new(0,0,0) | |
15 | if targ.Size.Y >= 1 then | |
16 | too.GripPos = Vector3.new(0,-0.5,0) | |
17 | elseif targ.Size.Y >= 2 then | |
18 | too.GripPos = Vector3.new(0,-1,0) | |
19 | elseif targ.Size.Y >= 3 then | |
20 | too.GripPos = Vector3.new(0,-1.5,0) | |
21 | elseif targ.Size.Y >= 4 then | |
22 | too.GripPos = Vector3.new(0,-2,0) | |
23 | end | |
24 | local hand = targ | |
25 | hand.Name = "Handle" | |
26 | hand.Anchored = false | |
27 | hand.Parent = too | |
28 | hand.CanCollide = false | |
29 | local gee = false | |
30 | local function touch(hit) | |
31 | if gee == false then return end | |
32 | local hum = hit.Parent:findFirstChild("Humanoid") | |
33 | if hum ~= nil then | |
34 | hum:TakeDamage(math.random(5,10)) | |
35 | end | |
36 | end | |
37 | hand.Touched:connect(touch) | |
38 | too.Equipped:connect(function() | |
39 | too.Activated:connect(function() | |
40 | gee = true | |
41 | local val = Instance.new("StringValue") | |
42 | val.Parent = too | |
43 | val.Name = "toolanim" | |
44 | val.Value = "Slash" | |
45 | wait(0.5) | |
46 | gee = false | |
47 | end) | |
48 | end) | |
49 | end | |
50 | end) | |
51 | end | |
52 | ||
53 | - | script.Parent.Selected:connect(selected) |
53 | + | script.Parent.Selected:connect(selected) |
54 | mouse.KeyDown:connect(function(key) | |
55 | if key == "e" and plr.Character.Parent == workspace then | |
56 | plr.Character.Parent = workspace.Camera | |
57 | plr.Character.Archivable = true | |
58 | Instance.new("ForceField",plr.Character).Visible = false | |
59 | for y,t in pairs(plr.Character:GetChildren()) do | |
60 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
61 | t.Transparency = 0.5 | |
62 | if t.Name == "Head" and t:FindFirstChild("face") then | |
63 | t.face.Transparency = 0.5 | |
64 | end | |
65 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
66 | t.Handle.Transparency = 0.5 | |
67 | end | |
68 | end | |
69 | elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then | |
70 | plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p) | |
71 | elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then | |
72 | if plr.Character.Torso.Anchored == true then | |
73 | for y,t in pairs(plr.Character:GetChildren()) do | |
74 | if t:IsA("Part") then | |
75 | t.Anchored = false | |
76 | end | |
77 | end | |
78 | else | |
79 | for y,t in pairs(plr.Character:GetChildren()) do | |
80 | if t:IsA("Part") then | |
81 | t.Anchored = true | |
82 | end | |
83 | end | |
84 | end | |
85 | elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then | |
86 | local clone = part:Clone() | |
87 | clone.Parent = workspace | |
88 | clone.Anchored = false | |
89 | clone:ClearAllChildren() | |
90 | clone.CanCollide = true | |
91 | bp.Parent = clone | |
92 | particles.Parent = clone | |
93 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
94 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false | |
95 | end | |
96 | part:Destroy() | |
97 | part = clone | |
98 | elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then | |
99 | plr.Character.Parent = workspace | |
100 | plr.Character.Archivable = false | |
101 | plr.Character:FindFirstChildOfClass("ForceField"):Remove() | |
102 | for y,t in pairs(plr.Character:GetChildren()) do | |
103 | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then | |
104 | t.Transparency = 0 | |
105 | if t.Name == "Head" and t:FindFirstChild("face") then | |
106 | t.face.Transparency = 0 | |
107 | end | |
108 | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
109 | t.Handle.Transparency = 0 | |
110 | end | |
111 | end | |
112 | end | |
113 | end) | |
114 | mouse.Button1Down:connect(function() | |
115 | if plr.Character.Parent == workspace.Camera then | |
116 | if mouse ~= nil then | |
117 | if mouse.Target ~= nil then | |
118 | part = mouse.Target | |
119 | bp = Instance.new("BodyPosition",part) | |
120 | bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
121 | bp.Position = part.Position | |
122 | particles = Instance.new("ParticleEmitter",part) | |
123 | particles.Color = ColorSequence.new(Color3.new(255,255,255)) | |
124 | particles.Size = NumberSequence.new(20) | |
125 | particles.Texture = "rbxassetid://131425039" | |
126 | particles.VelocitySpread = 360 | |
127 | particles.Speed = NumberRange.new(0) | |
128 | particles.RotSpeed = NumberRange.new(0) | |
129 | particles.Rotation = NumberRange.new(0) | |
130 | particles.Rate = 20 | |
131 | particles.Lifetime = NumberRange.new(0.25) | |
132 | particles.Transparency NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0,0,0)}) | |
133 | dwn = true | |
134 | end | |
135 | end | |
136 | while dwn == true do | |
137 | wait() | |
138 | bp.Position = mouse.hit.p | |
139 | if part then | |
140 | if part.Parent:FindFirstChildOfClass("Humanoid") then | |
141 | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
142 | end | |
143 | end | |
144 | end | |
145 | end | |
146 | end) | |
147 | mouse.Button1Up:connect(function() | |
148 | dwn = false | |
149 | if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end | |
150 | if bp then bp:Destroy() end | |
151 | if particles then particles:Destroy() end | |
152 | end) | |
153 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
154 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
155 | bbg.Size = UDim2.new(0,200,0,50) | |
156 | bbg.StudsOffset = Vector3.new(0,3,0) | |
157 | bbgTl = Instance.new("TextLabel",bbg) | |
158 | bbgTl.BackgroundTransparency = 0.7 | |
159 | bbgTl.Size = UDim2.new(10,0,1,0) | |
160 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
161 | bbgTl.Font = "fantasy" | |
162 | bbgTl.Text = " " | |
163 | bbgTl.TextSize = 50 | |
164 | bbgTl.TextStrokeColor3 = Color3.new(1,1,1) | |
165 | bbgTl.TextColor3 = Color3.new(0,0,0) | |
166 | bbgTl.TextStrokeTransparency = 0 | |
167 | bbgTl.TextWrapped = true | |
168 | plr.Chatted:connect(function(msg) | |
169 | bbgTl.Text = msg | |
170 | wait(5) | |
171 | if bbgTl.Text == msg then | |
172 | bbgTl.Text = " " | |
173 | end | |
174 | end) | |
175 | touchCounter = 0 | |
176 | while wait() do | |
177 | if plr.Character.Parent == workspace.Camera then | |
178 | local c = plr.Character:Clone() | |
179 | c:MakeJoints() | |
180 | for y,t in pairs(c:GetChildren()) do | |
181 | if t:IsA("Part") then | |
182 | t.CanCollide = false | |
183 | t.Anchored = true | |
184 | t.Transparency = 0.9 | |
185 | t.TopSurface = "Smooth" | |
186 | t.BottomSurface = "Smooth" | |
187 | t.RightSurface = "Smooth" | |
188 | t.LeftSurface = "Smooth" | |
189 | t.FrontSurface = "Smooth" | |
190 | t.BackSurface = "Smooth" | |
191 | t.BrickColor = BrickColor.new("White") | |
192 | if t.Name == "Head" and t:FindFirstChild("face") then | |
193 | t.face:Remove() | |
194 | elseif t.Name == "Torso" and t:FindFirstChild("roblox") then | |
195 | t.roblox:Remove() | |
196 | elseif t.Name == "HumanoidRootPart" then | |
197 | t:Remove() | |
198 | end | |
199 | else | |
200 | t:Remove() | |
201 | end | |
202 | end | |
203 | c.Parent = workspace | |
204 | game.Debris:AddItem(c,.05) | |
205 | end | |
206 | end |