SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
1 | + | Owner = game.Players.eliteslayer816 |
2 | - | |
2 | + | |
3 | - | local Player,game,Owner = owner,game |
3 | + | |
4 | - | |
4 | + | |
5 | - | local RealPlayer = Player |
5 | + | |
6 | - | |
6 | + | |
7 | - | do print("FE Compatibility code V3 by Desered_ROBLOX")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end |
7 | + | |
8 | GodMode.Position = UDim2.new(0, 100, 0, 0) | |
9 | GodMode.Size = UDim2.new(0, 100, 0, 30) | |
10 | - | -- print("game.Players.Demonsnowman") |
10 | + | |
11 | - | Owner = game:GetService("Players").LocalPlayer |
11 | + | |
12 | game.Workspace.Upscalegaming.Humanoid.MaxHealth = math.huge | |
13 | end) | |
14 | UnGodMode = Instance.new("TextButton", SG) | |
15 | UnGodMode.Name = ("UnGod") | |
16 | UnGodMode.Font = "Legacy" | |
17 | UnGodMode.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
18 | UnGodMode.FontSize = "Size11" | |
19 | UnGodMode.Position = UDim2.new(0, 200, 0, 0) | |
20 | UnGodMode.Size = UDim2.new(0, 100, 0, 30) | |
21 | UnGodMode.Text = "UnGod" | |
22 | - | game:GetService("Players").LocalPlayer.Humanoid.MaxHealth = math.huge |
22 | + | |
23 | game.Workspace.Upscalegaming.Humanoid.MaxHealth = 100 | |
24 | end) | |
25 | FF = Instance.new("TextButton", SG) | |
26 | FF.Name = ("ForceField") | |
27 | FF.FontSize = "Size11" | |
28 | FF.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
29 | FF.Position = UDim2.new(0, 300, 0, 0) | |
30 | FF.Size = UDim2.new(0, 100, 0, 30) | |
31 | FF.Text = "FF" | |
32 | FF.MouseButton1Click:connect(function() | |
33 | - | game:GetService("Players").LocalPlayer.Humanoid.MaxHealth = 100 |
33 | + | Instance.new("ForceField",game.Players["Upscalegaming"].Character) |
34 | end) | |
35 | UnFF = Instance.new("TextButton", SG) | |
36 | UnFF.Name = ("UnForceField") | |
37 | UnFF.FontSize = "Size11" | |
38 | UnFF.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
39 | UnFF.Position = UDim2.new(0, 400, 0, 0) | |
40 | UnFF.Size = UDim2.new(0, 100, 0, 30) | |
41 | UnFF.Text = "UnFF" | |
42 | UnFF.MouseButton1Click:connect(function() | |
43 | - | Instance.new("ForceField",game:GetService("Players").LocalPlayer.Character) |
43 | + | game.Workspace.SergeantSmokey.ForceField:Remove() |
44 | end) | |
45 | Ins = Instance.new("TextButton", SG) | |
46 | Ins.Name = ("Insert Guns") | |
47 | Ins.FontSize = "Size11" | |
48 | Ins.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
49 | Ins.Position = UDim2.new(0, 500, 0, 0) | |
50 | Ins.Size = UDim2.new(0, 100, 0, 30) | |
51 | Ins.Text = "Ins Guns" | |
52 | Ins.MouseButton1Click:connect(function() | |
53 | - | game:GetService("Players").LocalPlayer.ForceField:Remove() |
53 | + | |
54 | game:GetObjects("rbxassetid://108149175")[1].Parent = Owner.Backpack | |
55 | game:GetObjects("rbxassetid://98411393")[1].Parent = Owner.Backpack | |
56 | game:GetObjects("rbxassetid://122278149")[1].Parent = Owner.Backpack | |
57 | game:GetObjects("rbxassetid://112612675")[1].Parent = Owner.Backpack | |
58 | game:GetObjects("rbxassetid://110218196")[1].Parent = Owner.Backpack | |
59 | game:GetObjects("rbxassetid://119922179")[1].Parent = Owner.Backpack | |
60 | game:GetObjects("rbxassetid://112612675")[1].Parent = Owner.Backpack | |
61 | game:GetObjects("rbxassetid://111440009")[1].Parent = Owner.Backpack | |
62 | ||
63 | end) | |
64 | MScript = Instance.new("TextButton", SG) | |
65 | MScript.Name = ("Merely's Script") | |
66 | MScript.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
67 | MScript.FontSize = "Size11" | |
68 | MScript.Position = UDim2.new(0, 600, 0, 0) | |
69 | MScript.Size = UDim2.new(0, 100, 0, 30) | |
70 | MScript.Text = "MScript" | |
71 | MScript.MouseButton1Click:connect(function() | |
72 | local Decals={10139567,10139545,10139531,10139513,10139498,10139490,10139479,10139416} | |
73 | local t="http://www.roblox.com/asset/?id="..Decals[math.random(1,#Decals)] | |
74 | local | |
75 | XML={} | |
76 | XML.Hat=Instance.new("Hat") | |
77 | XML.Hat.AttachmentForward=Vector3.new(-1,0,0) | |
78 | XML.Hat.AttachmentPos=Vector3.new(0,4.9,0) | |
79 | XML.Hat.AttachmentRight=Vector3.new(0,0,-1) | |
80 | XML.Handle=Instance.new("Part",XML.Hat) | |
81 | XML.Handle.Transparency=1 -- 113793461 | |
82 | XML.Handle.Name="Handle" | |
83 | XML.Handle.CanCollide=false | |
84 | XML.Handle.FormFactor='Custom' | |
85 | XML.Handle.Shape="Block" | |
86 | XML.Handle.Size=Vector3.new(1,0.2,1) | |
87 | XML.Mesh=Instance.new("SpecialMesh",XML.Handle) | |
88 | XML.Mesh.MeshType="Brick" | |
89 | XML.Mesh.Scale=Vector3.new(12,1,12) | |
90 | XML.Decal=Instance.new("Decal",XML.Handle) | |
91 | XML.Decal.Texture=t | |
92 | XML.Decal.Face="Top" | |
93 | XML.Decal2=Instance.new("Decal",XML.Handle) | |
94 | XML.Decal2.Texture=t | |
95 | XML.Decal2.Face="Bottom" | |
96 | XML.Hat.Parent=game:service'Players'.LocalPlayer.Character | |
97 | XML.scaleMax=12 | |
98 | XML.scaleMin=0 | |
99 | XML.scale= | |
100 | XML.Mesh.Scale.X | |
101 | XML.scaleChange=0.5 | |
102 | XML.expanding=false | |
103 | XML.spin=function() local twopi=2*math.pi local angle=math.pi while true do angle=angle+0.04 wait(.01) | |
104 | XML.Hat.AttachmentRight=Vector3.new(math.sin(angle),0,math.cos(angle)) if(angle>=twopi)then angle=0 end end end | |
105 | XML.expand=function() while XML.scale<XML.scaleMax do if not XML.expanding then break end wait(.03) XML.scale=math.min(XML.scale+XML.scaleChange, XML.scaleMax) XML.Mesh.Scale=Vector3.new(XML.scale,1,XML.scale) end end | |
106 | XML.contract=function() while XML.scale>XML.scaleMin do if XML.expanding then break end wait(.03) XML.scale=math.max(XML.scale-XML.scaleChange, XML.scaleMin) XML.Mesh.Scale=Vector3.new(XML.scale,1,XML.scale) end end | |
107 | XML.Hat.Parent.Humanoid.Running:connect(function(s) if s>1 then XML.expanding=false XML.contract() else XML.expanding=true XML.expand() end end) | |
108 | XML.spin() | |
109 | end) | |
110 | SiScript = Instance.new("TextButton", SG) | |
111 | SiScript.Name = ("SinsScript") | |
112 | SiScript.Font = "Legacy" | |
113 | SiScript.FontSize = "Size11" | |
114 | SiScript.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
115 | SiScript.Position = UDim2.new(0, 700, 0, 0) | |
116 | SiScript.Size = UDim2.new(0, 100, 0, 30) | |
117 | SiScript.Text = "SinScript" | |
118 | SiScript.MouseButton1Click:connect(function() | |
119 | local m=game:service'Players'.LocalPlayer:GetMouse() local Baseplate=Instance.new("Part",game:service'Workspace'.CurrentCamera) Baseplate.Name='Baseplate' Baseplate.Size=Vector3.new(10,1,10) Baseplate.Anchored=true Baseplate.BrickColor=BrickColor.new(1003) Instance.new('BlockMesh',Baseplate) Baseplate.Transparency=.5 local YVal=(game:service'Players'.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,-3.6,0)).y coroutine.wrap(function() while true do Baseplate.CFrame=CFrame.new(game:service'Players'.LocalPlayer.Character.Torso.CFrame.x,YVal,game:service'Players'.LocalPlayer.Character.Torso.CFrame.z) wait() end end)() local GDown=false local TDown=false m.KeyDown:connect(function(k) if(k=='t')and(not GDown)then TDown=true repeat YVal=YVal+.75 wait() until not TDown elseif(k=='g')and(not TDown)then GDown=true repeat YVal=YVal-.75 wait() until not GDown end end) m.KeyUp:connect(function(k) if(k=='t')then TDown=false elseif(k=='g')then GDown=false end end) game:service'Players'.LocalPlayer.Character.Humanoid.Died:connect(function() Baseplate:Destroy() end) | |
120 | end) | |
121 | Reset = Instance.new("TextButton", SG) | |
122 | Reset.Name = ("ResetScript") | |
123 | Reset.Font = "Legacy" | |
124 | Reset.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
125 | Reset.FontSize = "Size11" | |
126 | Reset.Position = UDim2.new(0, 800, 0, 0) | |
127 | Reset.Size = UDim2.new(0, 100, 0, 30) | |
128 | Reset.Text = "Reset" | |
129 | Reset.MouseButton1Click:connect(function() | |
130 | game.Workspace.SergeantSmokey.Head:Remove() | |
131 | end) | |
132 | Btools = Instance.new("TextButton", SG) | |
133 | Btools.Name = ("GetBtools") | |
134 | Btools.Font = "Legacy" | |
135 | Btools.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
136 | Btools.FontSize = "Size11" | |
137 | Btools.Position = UDim2.new(0, 900, 0, 0) | |
138 | Btools.Size = UDim2.new(0, 100, 0, 30) | |
139 | Btools.Text = "Btools" | |
140 | - | game:GetService("Players").LocalPlayer.Head:Remove() |
140 | + | |
141 | i=Instance.new("HopperBin") i.Parent = game.Players.SergeantSmokey.Backpack i.BinType = "Clone" | |
142 | i=Instance.new("HopperBin") i.Parent = game.Players.SergeantSmokey.Backpack i.BinType = "Hammer" | |
143 | i=Instance.new("HopperBin") i.Parent = game.Players.SergeantSmokey.Backpack i.BinType = "Grab" | |
144 | end) | |
145 | Kill = Instance.new("TextLabel", SG) | |
146 | Kill.Name = ("KillScript") | |
147 | Kill.Font = "Legacy" | |
148 | Kill.FontSize = "Size11" | |
149 | Kill.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
150 | Kill.Position = UDim2.new(0, 400, 0, 60) | |
151 | - | i=Instance.new("HopperBin") i.Parent = game:GetService("Players").LocalPlayer.Backpack i.BinType = "Clone" |
151 | + | |
152 | - | i=Instance.new("HopperBin") i.Parent = game:GetService("Players").LocalPlayer.Backpack i.BinType = "Hammer" |
152 | + | |
153 | - | i=Instance.new("HopperBin") i.Parent = game:GetService("Players").LocalPlayer.Backpack i.BinType = "Grab" |
153 | + | |
154 | KillPlyrs.Name = "KillTextbox" | |
155 | KillPlyrs.Text = "Type name here." | |
156 | KillPlyrs.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
157 | KillPlyrs.Size = UDim2.new(0, 100, 0, 30) | |
158 | KillPlyrs.Position = UDim2.new(0, 500, 0, 60) | |
159 | KillPlyrs.FocusLost:connect(function() | |
160 | local length = string.len(KillPlyrs.Text) | |
161 | local peeps = game.Players:GetChildren() | |
162 | for i = 1, #peeps do | |
163 | local storednames = string.sub(peeps[i].Name,0,length) -- this isn't going to work is it? | |
164 | if storednames == KillPlyrs.Text then | |
165 | peeps[i].Character.Humanoid.Health = 0 | |
166 | end | |
167 | end | |
168 | end) | |
169 | Walkspeed = Instance.new("TextButton", SG) | |
170 | Walkspeed.Name = ("Walkspeed100") | |
171 | Walkspeed.Font = "Legacy" | |
172 | Walkspeed.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
173 | Walkspeed.FontSize = "Size11" | |
174 | Walkspeed.Position = UDim2.new(0, 1100, 0, 0) | |
175 | Walkspeed.Size = UDim2.new(0, 100, 0, 30) | |
176 | Walkspeed.Text = "Walkspeed" | |
177 | Walkspeed.MouseButton1Click:connect(function() | |
178 | game.Workspace.SergeantSmokey.Humanoid.WalkSpeed = 100 | |
179 | end) | |
180 | Unspeed = Instance.new("TextButton", SG) | |
181 | Unspeed.Name = ("UnWalkspeed") | |
182 | Unspeed.Font = "Legacy" | |
183 | Unspeed.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
184 | Unspeed.FontSize = "Size11" | |
185 | Unspeed.Position = UDim2.new(0, 1200, 0, 0) | |
186 | Unspeed.Size = UDim2.new(0, 100, 0, 30) | |
187 | Unspeed.Text = "UnWalkspeed" | |
188 | - | game:GetService("Players").LocalPlayer.Humanoid.WalkSpeed = 100 |
188 | + | |
189 | game.Workspace.SergeantSmokey.Humanoid.WalkSpeed = 20 | |
190 | end) | |
191 | Shutdown = Instance.new("TextButton", SG) | |
192 | Shutdown.Size = UDim2.new(0, 100, 0, 30) | |
193 | Shutdown.Name = ("Shutdown") | |
194 | Shutdown.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
195 | Shutdown.Position = UDim2.new(0, 1300, 0, 0) | |
196 | Shutdown.Text = "Shutdown" | |
197 | Shutdown.Font = "Legacy" | |
198 | Shutdown.FontSize = "Size11" | |
199 | - | game:GetService("Players").LocalPlayer.Humanoid.WalkSpeed = 20 |
199 | + | |
200 | G = Instance.new("Message", Workspace) | |
201 | G.Text = "Server Shuting down [By SergeantSmokey's Command]" | |
202 | wait(2) | |
203 | G.Text = "5" | |
204 | wait(2) | |
205 | G.Text = "4" | |
206 | wait(2) | |
207 | G.Text = "3" | |
208 | wait(2) | |
209 | G.Text = "2" | |
210 | wait(2) | |
211 | - | G.Text = "Server Shuting down [By Demonsnowman's Command]" |
211 | + | |
212 | coroutine.resume(coroutine.create(function() | |
213 | while wait() do | |
214 | for _, v in pairs(game.Players:GetPlayers()) do | |
215 | v.Parent = nil | |
216 | end | |
217 | end | |
218 | end)) | |
219 | end) | |
220 | Unlock = Instance.new("TextButton", SG) | |
221 | Unlock.Name = ("Unlockeverything") | |
222 | Unlock.Font = "Legacy" | |
223 | Unlock.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
224 | Unlock.FontSize = "Size11" | |
225 | Unlock.Position = UDim2.new(0, 1200, 0, 30) | |
226 | Unlock.Size = UDim2.new(0, 100, 0, 30) | |
227 | Unlock.Text = "Unlock" | |
228 | Unlock.MouseButton1Click:connect(function() | |
229 | Unl = game.Workspace:GetChildren() | |
230 | for i = 1, #Unl do | |
231 | if Unl[i].ClassName == "Part" or Unl[i].ClassName == "Model" then | |
232 | Unl[i].Locked = false | |
233 | end | |
234 | end | |
235 | end) | |
236 | UnAnchored = Instance.new("TextButton", SG) | |
237 | UnAnchored.Name = ("UnAnchoredeverything") | |
238 | UnAnchored.Font = "Legacy" | |
239 | UnAnchored.FontSize = "Size11" | |
240 | UnAnchored.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
241 | UnAnchored.Position = UDim2.new(0, 1300, 0, 30) | |
242 | UnAnchored.Size = UDim2.new(0, 100, 0, 30) | |
243 | UnAnchored.Text = "UnAchored" | |
244 | UnAnchored.MouseButton1Click:connect(function() | |
245 | Una = game.Workspace:GetChildren() | |
246 | for i = 1, #Una do | |
247 | if Una[i].ClassName == "Part" or Una[i].ClassName == "Model" then | |
248 | Una[i].Anchored = false | |
249 | end | |
250 | end | |
251 | end) | |
252 | Explorer = Instance.new("TextButton", SG) | |
253 | Explorer.Name = ("Explorereverything") | |
254 | Explorer.Font = "Legacy" | |
255 | Explorer.FontSize = "Size11" | |
256 | Explorer.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
257 | Explorer.Position = UDim2.new(0, 1400, 0, 0) | |
258 | Explorer.Size = UDim2.new(0, 100, 0, 30) | |
259 | Explorer.Text = "Explorer" | |
260 | Explorer.MouseButton1Click:connect(function() | |
261 | ||
262 | TextProperties = {"Name", "Value", "Text", "Reflectance", "Transparency", "Heat", "TeamName"} | |
263 | BoolProperties = {"Anchored", "CanCollide", "Disabled"} | |
264 | BrickColorProperties = {"BrickColor", "Color", "TeamColor"} | |
265 | s = Instance.new("ScreenGui", game.CoreGui) | |
266 | pgr = Instance.new("TextButton") | |
267 | pgr.Parent = s --mediafire | |
268 | pgr.Size = UDim2.new(0,100,0,40) | |
269 | pgr.Position = UDim2.new(0,30,0,440) | |
270 | pgr.Text="Workspace" | |
271 | pgr.BackgroundTransparency = 0.3 | |
272 | pgr.TextColor = BrickColor.new("White") | |
273 | pgr.BackgroundColor = BrickColor.new("Really Black") | |
274 | pgr.BorderColor = BrickColor.new("Black") | |
275 | pgr.Font = "ArialBold" | |
276 | pgr.FontSize = "Size14" | |
277 | pgr.TextStrokeColor3 = Color3.new(0/0,0/0,0/0) | |
278 | pgr.TextStrokeTransparency = 0.3 | |
279 | pgr.BorderSizePixel = 1 | |
280 | pgr.BorderColor = BrickColor.new("White") | |
281 | if game.CoreGui:findFirstChild("Explorer") then game.CoreGui:findFirstChild("Explorer"):Remove() end | |
282 | local Cloned | |
283 | local Deleted | |
284 | local DeleteParent | |
285 | local Player | |
286 | local Search | |
287 | local ScriptSearch | |
288 | local Gui | |
289 | local Cloned = nil | |
290 | local Deleted = nil | |
291 | local DeleteParent = nil | |
292 | local Current = 0 | |
293 | local CurrentOption = 0 | |
294 | function Clear() | |
295 | if Gui then Gui:Remove() end | |
296 | Current = 0 | |
297 | CurrentOption = 0 | |
298 | end | |
299 | function AddButton(N, Function, Color, Copy) | |
300 | if not N then error("RenderButton - No Name Specified") end | |
301 | if not Function then error("RenderButton - No Function Specified") end | |
302 | if not Color then Color = Color3.new(1, 1, 1) end | |
303 | if Copy == nil then Copy = true end | |
304 | P = Instance.new("TextButton") | |
305 | if Copy then | |
306 | P.Size = UDim2.new(0, 110, 0, 20) | |
307 | else | |
308 | P.Size = UDim2.new(0, 130, 0, 20) | |
309 | end | |
310 | P.Text = N.Name | |
311 | P.Name = N.Name | |
312 | P.Parent = Gui | |
313 | P.BackgroundColor3 = Color | |
314 | P.TextColor3 = Color3.new(0, 0, 0) | |
315 | P.BackgroundTransparency = 0.5 | |
316 | P.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300, 0, 50+(20*((Current%30)-1))) | |
317 | P.MouseButton1Click:connect(function() Function(P) end) | |
318 | D = Instance.new("TextButton") | |
319 | D.Size = UDim2.new(0, 20, 0, 20) | |
320 | D.Text = "X" | |
321 | D.Name = N.Name | |
322 | D.Parent = Gui | |
323 | D.BackgroundColor3 = Color3.new(1, 0, 0) | |
324 | D.TextColor3 = Color3.new(0, 0, 0) | |
325 | D.BackgroundTransparency = 0.5 | |
326 | D.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+130, 0, 50+(20*((Current%30)-1))) | |
327 | D.MouseButton1Click:connect(function() | |
328 | Deleted = N | |
329 | DeleteParent = N.Parent | |
330 | N.Parent = nil | |
331 | Clear() | |
332 | Search(DeleteParent) | |
333 | end) | |
334 | if Copy then | |
335 | C = Instance.new("TextButton") | |
336 | C.Size = UDim2.new(0, 20, 0, 20) | |
337 | C.Text = "C" | |
338 | C.Name = N.Name | |
339 | C.Parent = Gui | |
340 | C.BackgroundColor3 = Color3.new(0, 1, 0.5) | |
341 | C.TextColor3 = Color3.new(0, 0, 0) | |
342 | C.BackgroundTransparency = 0.5 | |
343 | C.Position = UDim2.new(0, ((math.modf(Current/30))*150)+300+110, 0, 50+(20*((Current%30)-1))) | |
344 | C.MouseButton1Click:connect(function() | |
345 | Cloned = N | |
346 | Clear() | |
347 | Search(N.Parent) | |
348 | end) | |
349 | end | |
350 | Current = Current + 1 | |
351 | return P | |
352 | end | |
353 | function AddOption(N, Function, Color, Text) | |
354 | if not N then error("RenderButton - No Name Specified") end | |
355 | if not Color then Color = Color3.new(1, 1, 1) end | |
356 | if Text == nil then Text = false end | |
357 | if Text then | |
358 | P = Instance.new("TextBox") | |
359 | else | |
360 | P = Instance.new("TextButton") | |
361 | end | |
362 | P.Text = N | |
363 | P.Name = N | |
364 | P.Parent = Gui | |
365 | P.BackgroundColor3 = Color | |
366 | P.TextColor3 = Color3.new(0, 0, 0) | |
367 | P.BackgroundTransparency = 0.5 | |
368 | P.Size = UDim2.new(0, 150, 0, 20) | |
369 | P.Position = UDim2.new(0, ((math.modf(CurrentOption/30))*150)+150, 0, 50+(20*((CurrentOption%30)-1))) | |
370 | if not Text and Function then | |
371 | P.MouseButton1Click:connect(function() Function(P) end) | |
372 | end | |
373 | CurrentOption = CurrentOption + 1 | |
374 | return P | |
375 | end | |
376 | function AddTextOption(Obj, Prop) | |
377 | local Ob = Obj | |
378 | local Pro = Prop | |
379 | if type(Ob[Pro]) == "number" or type(Ob[Pro]) == "string" then | |
380 | CurrentOption = CurrentOption + 1 | |
381 | local T = AddOption(Ob[Pro], nil, Color3.new(0.1, 0.4, 0.1), true) | |
382 | CurrentOption = CurrentOption - 2 | |
383 | local O = AddOption("Change "..Pro..":", function() Ob[Pro] = T.Text end, Color3.new(0.1, 0.8, 0.1), false) | |
384 | CurrentOption = CurrentOption + 1 | |
385 | end | |
386 | end | |
387 | function AddBrickColorOption(Obj, Prop) | |
388 | local Ob = Obj | |
389 | local Pro = Prop | |
390 | if BrickColor.new(tostring(Ob[Pro])) == Ob[Pro] then | |
391 | CurrentOption = CurrentOption + 1 | |
392 | local T = AddOption(tostring(Ob[Pro]), nil, Color3.new(0.1, 0.4, 0.1), true) | |
393 | CurrentOption = CurrentOption - 2 | |
394 | local O = AddOption("Change "..Pro..":", function() Ob[Pro] = BrickColor.new(T.Text) end, Color3.new(0.1, 0.8, 0.1), false) | |
395 | CurrentOption = CurrentOption + 1 | |
396 | end | |
397 | end | |
398 | function AddBoolOption(Obj, Prop) | |
399 | local Ob = Obj | |
400 | local Pro = Prop | |
401 | if type(Ob[Pro]) == "boolean" then | |
402 | local O = AddOption(Pro..": "..tostring(Ob[Pro]), nil, Color3.new(0.1, 0.8, 0.1), false) | |
403 | O.MouseButton1Click:connect(function() | |
404 | if Ob[Pro] then | |
405 | Ob[Pro] = false | |
406 | O.Text = Pro..": false" | |
407 | else | |
408 | Ob[Pro] = true | |
409 | O.Text = Pro..": true" | |
410 | end | |
411 | end) | |
412 | end | |
413 | end | |
414 | function TestProperty(Obj, Property) | |
415 | Success = pcall(function() if Obj[Property] then return end end) | |
416 | return Success | |
417 | end | |
418 | function LoadOptions(Object) | |
419 | for Num, Prop in pairs(TextProperties) do | |
420 | if TestProperty(Object, Prop) then | |
421 | AddTextOption(Object, Prop) | |
422 | end | |
423 | end | |
424 | for Num, Prop in pairs(BoolProperties) do | |
425 | if TestProperty(Object, Prop) then | |
426 | AddBoolOption(Object, Prop) | |
427 | end | |
428 | end | |
429 | for Num, Prop in pairs(BrickColorProperties) do | |
430 | if TestProperty(Object, Prop) then | |
431 | AddBrickColorOption(Object, Prop) | |
432 | end | |
433 | end | |
434 | end | |
435 | function Search(Object) | |
436 | Gui = Instance.new("ScreenGui") | |
437 | Gui.Parent = game:GetService("CoreGui") | |
438 | Gui.Name = "Explorer" | |
439 | if Object ~= game then | |
440 | AddOption("Back", function() Clear(); Search(Object.Parent) end, Color3.new(0.5, 1, 1), false) | |
441 | end | |
442 | AddOption("Reload", function() Clear(); Search(Object); end, Color3.new(0.2, 1, 0.2), false) | |
443 | if Cloned then | |
444 | AddOption("Paste", function() Cloned:Clone().Parent = Object; Clear(); Search(Object); end, Color3.new(0.5, 1, 1), false) | |
445 | end | |
446 | if Deleted then | |
447 | AddOption("Undo", function() Deleted.Parent = DeleteParent; Deleted = nil; DeletedParent = nil; Clear(); Search(Object); end, Color3.new(1, 0.6, 0.1), false) | |
448 | end | |
449 | if Object:IsA("Player") then | |
450 | AddOption("Goto Character", function() Clear(); if Object.Character then Search(Object.Character); end end, Color3.new(1, 1, 1), false) | |
451 | end | |
452 | if Object:IsA("Script") or Object:IsA("LocalScript") then | |
453 | AddOption("EditScript", function() Clear(); ScriptSearch(Object); end, Color3.new(1, 1, 1), false) | |
454 | end | |
455 | LoadOptions(Object) | |
456 | AddOption("Close", Clear, Color3.new(1, 0.2, 0), false) | |
457 | if not Object:IsA("Workspace") or not Object:IsA("Player") then | |
458 | for Num, Obj in pairs(Object:GetChildren()) do | |
459 | --if not Obj:IsA("BasePart") or not Object.Parent == game.Workspace then | |
460 | if true then | |
461 | if Obj:IsA("Script") or Obj:IsA("LocalScript") then | |
462 | AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 0, 0), true) | |
463 | elseif Obj.Parent == game then | |
464 | AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), false) | |
465 | else | |
466 | AddButton(Obj, function() Clear(); Search(Obj); end, Color3.new(1, 1, 1), true) | |
467 | end | |
468 | end | |
469 | end | |
470 | end | |
471 | function MoveUp(Place, Amount) | |
472 | for i,v in pairs(Place:GetChildren()) do | |
473 | if v:IsA("TextLabel") or v:IsA("TextBox") then | |
474 | v.Position = v.Position + UDim2.new(0,0,0,-Amount) | |
475 | end | |
476 | end | |
477 | end | |
478 | function MoveDown(Place, Amount) | |
479 | for i,v in pairs(Place:GetChildren()) do | |
480 | if v:IsA("TextLabel") or v:IsA("TextBox") then | |
481 | v.Position = v.Position + UDim2.new(0,0,0,Amount) | |
482 | end | |
483 | end | |
484 | end | |
485 | i=0 | |
486 | function ScriptSearch(S) | |
487 | Script2 = S | |
488 | Script = Script2.Source | |
489 | Table = {} | |
490 | Enabled = true | |
491 | Gui = Instance.new("ScreenGui") | |
492 | Gui.Parent = game:GetService("CoreGui") | |
493 | Gui.Name = "Explorer" | |
494 | while Enabled do | |
495 | Start, End = string.find(Script, '\n') | |
496 | print(Start, End) | |
497 | if Start and End then | |
498 | table.insert(Table, string.sub(Script, 1, End)) | |
499 | New = string.sub(Script, End+1, string.len(Script)) | |
500 | Script = New | |
501 | else | |
502 | Enabled = false | |
503 | table.insert(Table, string.sub(Script, 1, End)) | |
504 | print("Finished") | |
505 | end | |
506 | end | |
507 | P = Instance.new("TextLabel") | |
508 | P.Size = UDim2.new(0, 500, 0, 20) | |
509 | P.Text = Script2.Name | |
510 | P.Name = "Script Line" | |
511 | P.Parent = Gui | |
512 | P.BackgroundColor3 = Color3.new(1, 1, 1) | |
513 | P.TextColor3 = Color3.new(0, 0, 0) | |
514 | P.BackgroundTransparency = 0.5 | |
515 | P.Position = UDim2.new(0.5, -250, 0, 150+(20*(i-1))) | |
516 | P.TextXAlignment = "Left" | |
517 | i=i+1 | |
518 | New = {} | |
519 | for I,Val in pairs(Table) do | |
520 | print(Val) | |
521 | P = Instance.new("TextBox") | |
522 | P.ClearTextOnFocus = false | |
523 | P.Size = UDim2.new(0, 500, 0, 20) | |
524 | P.Text = Val | |
525 | P.Name = "Script Line" | |
526 | P.Parent = Gui | |
527 | P.BackgroundColor3 = Color3.new(1, 1, 1) | |
528 | P.TextColor3 = Color3.new(0, 0, 0) | |
529 | P.BackgroundTransparency = 0.5 | |
530 | P.Position = UDim2.new(0.5, -250, 0, 150+(20*(i-1))) | |
531 | P.TextXAlignment = "Left" | |
532 | table.insert(New, P) | |
533 | i=i+1 | |
534 | end | |
535 | i=1 | |
536 | P = Instance.new("TextButton") | |
537 | P.Size = UDim2.new(0, 20, 0, 20) | |
538 | P.Text = "^" | |
539 | P.Name = "Scroll" | |
540 | P.Parent = Gui | |
541 | P.BackgroundColor3 = Color3.new(1, 1, 1) | |
542 | P.TextColor3 = Color3.new(0, 0, 0) | |
543 | P.BackgroundTransparency = 0.5 | |
544 | P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1))) | |
545 | P.MouseButton1Click:connect(function() MoveUp(Gui, -20) end) | |
546 | i=i+1 | |
547 | P = Instance.new("TextButton") | |
548 | P.Size = UDim2.new(0, 20, 0, 20) | |
549 | P.Text = "v" | |
550 | P.Name = "Scroll" | |
551 | P.Parent = Gui | |
552 | P.BackgroundColor3 = Color3.new(1, 1, 1) | |
553 | P.TextColor3 = Color3.new(0, 0, 0) | |
554 | P.BackgroundTransparency = 0.5 | |
555 | P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1))) | |
556 | P.MouseButton1Click:connect(function() MoveDown(Gui, -20) end) | |
557 | i=i+1 | |
558 | P = Instance.new("TextButton") | |
559 | P.Size = UDim2.new(0, 20, 0, 20) | |
560 | P.Text = "^^" | |
561 | P.Name = "Scroll" | |
562 | P.Parent = Gui | |
563 | P.BackgroundColor3 = Color3.new(1, 1, 1) | |
564 | P.TextColor3 = Color3.new(0, 0, 0) | |
565 | P.BackgroundTransparency = 0.5 | |
566 | P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1))) | |
567 | P.MouseButton1Click:connect(function() MoveUp(Gui, -200) end) | |
568 | i=i+1 | |
569 | P = Instance.new("TextButton") | |
570 | P.Size = UDim2.new(0, 20, 0, 20) | |
571 | P.Text = "vv" | |
572 | P.Name = "Scroll" | |
573 | P.Parent = Gui | |
574 | P.BackgroundColor3 = Color3.new(1, 1, 1) | |
575 | P.TextColor3 = Color3.new(0, 0, 0) | |
576 | P.BackgroundTransparency = 0.5 | |
577 | P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1))) | |
578 | P.MouseButton1Click:connect(function() MoveDown(Gui, -200) end) | |
579 | i=i+1 | |
580 | P = Instance.new("TextButton") | |
581 | P.Size = UDim2.new(0, 20, 0, 20) | |
582 | P.Text = "S" | |
583 | P.Name = "Save" | |
584 | P.Parent = Gui | |
585 | P.BackgroundColor3 = Color3.new(0, 1, 0) | |
586 | P.TextColor3 = Color3.new(0, 0, 0) | |
587 | P.BackgroundTransparency = 0.5 | |
588 | P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1))) | |
589 | P.MouseButton1Click:connect(function() | |
590 | StringS = "" | |
591 | for Num, Obj in pairs(New) do | |
592 | StringS = StringS..Obj.Text..'\n' | |
593 | end | |
594 | S.Source = StringS | |
595 | S.Disabled = true | |
596 | S.Disabled = false | |
597 | end) | |
598 | i=i+1 | |
599 | P = Instance.new("TextButton") | |
600 | P.Size = UDim2.new(0, 20, 0, 20) | |
601 | P.Text = "x" | |
602 | P.Name = "Back" | |
603 | P.Parent = Gui | |
604 | P.BackgroundColor3 = Color3.new(1, 0.2, 0) | |
605 | P.TextColor3 = Color3.new(0, 0, 0) | |
606 | P.BackgroundTransparency = 0.5 | |
607 | P.Position = UDim2.new(0.5, -270, 0, 150+(20*(i-1))) | |
608 | P.MouseButton1Click:connect(function() | |
609 | Clear() | |
610 | i=0 | |
611 | Search(S) | |
612 | end) | |
613 | i=i+1 | |
614 | end | |
615 | end | |
616 | pgr.MouseButton1Click:connect(function() | |
617 | Clear() | |
618 | Search(game) | |
619 | end) | |
620 | end) | |
621 | Kick = Instance.new("TextLabel", SG) | |
622 | Kick.Name = ("KickScript") | |
623 | Kick.Font = "Legacy" | |
624 | Kick.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
625 | Kick.FontSize = "Size11" | |
626 | Kick.Position = UDim2.new(0, 1400, 0, 30) | |
627 | Kick.Size = UDim2.new(0, 100, 0, 30) | |
628 | Kick.Text = "Kick" | |
629 | KickText = Instance.new("TextBox", SG) | |
630 | KickText.Name = "KickTextbox" | |
631 | KickText.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
632 | KickText.Text = "Type name here." | |
633 | KickText.Size = UDim2.new(0, 100, 0, 30) | |
634 | KickText.Position = UDim2.new(0, 0, 0, 60) | |
635 | KickText.FocusLost:connect(function() | |
636 | plrt = KickText.Text | |
637 | game.Players[plrt]:Remove() | |
638 | end) | |
639 | Freeze = Instance.new("TextLabel", SG) | |
640 | Freeze.Name = ("KickScript") | |
641 | Freeze.Font = "Legacy" | |
642 | Freeze.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
643 | Freeze.FontSize = "Size11" | |
644 | Freeze.Position = UDim2.new(0, 100, 0, 60) | |
645 | Freeze.Size = UDim2.new(0, 100, 0, 30) | |
646 | Freeze.Text = "Freeze" | |
647 | local FreezePlyrs = Instance.new("TextBox", SG) | |
648 | FreezePlyrs.Name = "KickTextbox" | |
649 | FreezePlyrs.Text = "Type name here." | |
650 | FreezePlyrs.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
651 | FreezePlyrs.Size = UDim2.new(0, 100, 0, 30) | |
652 | FreezePlyrs.Position = UDim2.new(0, 200, 0, 60) | |
653 | FreezePlyrs.FocusLost:connect(function() | |
654 | local length = string.len(FreezePlyrs.Text) | |
655 | local peeps = game.Players:GetChildren() | |
656 | for i = 1, #peeps do | |
657 | local storednames = string.sub(peeps[i].Name,0,length) -- this isn't going to work is it? | |
658 | if storednames == FreezePlyrs.Text then | |
659 | peeps[i].Character.Humanoid.Torso.Anchored = true | |
660 | end | |
661 | end | |
662 | end) | |
663 | Big = Instance.new("TextButton", SG) | |
664 | Big.Name = ("Normal") | |
665 | Big.Font = "Legacy" | |
666 | Big.FontSize = "Size11" | |
667 | Big.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
668 | Big.Position = UDim2.new(0, 1100, 0, 30) | |
669 | Big.Size = UDim2.new(0, 100, 0, 30) | |
670 | Big.Text = "Big" | |
671 | Big.MouseButton1Click:connect(function() | |
672 | function find(tab, arg, pos) | |
673 | for i,v in pairs(tab) do | |
674 | if v == arg and i == pos then | |
675 | return true | |
676 | end | |
677 | end | |
678 | return false | |
679 | end | |
680 | ||
681 | function makeGiant(Character, S) | |
682 | local welds, hats = {}, {} | |
683 | local torso = Character:findFirstChild("Torso") | |
684 | local pos = torso.Position | |
685 | local ssss = torso.Size.Y | |
686 | for _,v in pairs(torso:children()) do | |
687 | if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then | |
688 | table.insert(welds, {v, v.Part0, v.Part1}) | |
689 | end | |
690 | end | |
691 | for _, v in pairs(Character:children()) do | |
692 | if v:IsA("Hat") then | |
693 | v.AttachmentPos = v.AttachmentPos*S | |
694 | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale*S | |
695 | v.Parent = nil | |
696 | table.insert(hats, v) | |
697 | elseif v:IsA("BasePart") then | |
698 | v.formFactor = "Custom" | |
699 | v.Size = v.Size*S | |
700 | elseif v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") then | |
701 | v:remove() | |
702 | end | |
703 | end | |
704 | local anim = Character.Animate | |
705 | local animc = anim:clone() | |
706 | anim:remove() | |
707 | for _,v in pairs(welds) do | |
708 | local c1 = v[1].C1 | |
709 | local c0 = v[1].C0 | |
710 | local a1, a2, a3 = c1:toEulerAnglesXYZ() | |
711 | local b1, b2, b3 = c0:toEulerAnglesXYZ() | |
712 | c1 = CFrame.new(c1.p * S) * CFrame.Angles(a1, a2, a3) | |
713 | c0 = CFrame.new(c0.p * S) * CFrame.Angles(b1, b2, b3) | |
714 | local clon = v[1]:clone() | |
715 | v[1]:remove() | |
716 | clon.C1 = c1 | |
717 | clon.C0 = c0 | |
718 | clon.Part1 = v[3] | |
719 | clon.Part0 = v[2] | |
720 | clon.Parent = Character.Torso | |
721 | end | |
722 | animc.Parent = Character | |
723 | Character.Humanoid.WalkSpeed = 6+10*S | |
724 | Character:MoveTo(pos+Vector3.new(0,S*(ssss/2),0)) | |
725 | wait(0.1) | |
726 | for i,v in pairs(hats) do | |
727 | v.Parent = Character | |
728 | end | |
729 | end | |
730 | ||
731 | makeGiant(workspace.SergeantSmokey, 1) | |
732 | ||
733 | end) | |
734 | Normal = Instance.new("TextButton", SG) | |
735 | Normal.Name = ("Normal") | |
736 | Normal.Font = "Legacy" | |
737 | Normal.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
738 | Normal.FontSize = "Size11" | |
739 | Normal.Position = UDim2.new(0, 300, 0, 60) | |
740 | Normal.Size = UDim2.new(0, 100, 0, 30) | |
741 | - | makeGiant(game:GetService("Players").LocalPlayer, 1) |
741 | + | |
742 | Normal.MouseButton1Click:connect(function() | |
743 | function find(tab, arg, pos) | |
744 | for i,v in pairs(tab) do | |
745 | if v == arg and i == pos then | |
746 | return true | |
747 | end | |
748 | end | |
749 | return false | |
750 | end | |
751 | ||
752 | function makeGiant(Character, S) | |
753 | local welds, hats = {}, {} | |
754 | local torso = Character:findFirstChild("Torso") | |
755 | local pos = torso.Position | |
756 | local ssss = torso.Size.Y | |
757 | for _,v in pairs(torso:children()) do | |
758 | if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then | |
759 | table.insert(welds, {v, v.Part0, v.Part1}) | |
760 | end | |
761 | end | |
762 | for _, v in pairs(Character:children()) do | |
763 | if v:IsA("Hat") then | |
764 | v.AttachmentPos = v.AttachmentPos*S | |
765 | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale*S | |
766 | v.Parent = nil | |
767 | table.insert(hats, v) | |
768 | elseif v:IsA("BasePart") then | |
769 | v.formFactor = "Custom" | |
770 | v.Size = v.Size*S | |
771 | elseif v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") then | |
772 | v:remove() | |
773 | end | |
774 | end | |
775 | local anim = Character.Animate | |
776 | local animc = anim:clone() | |
777 | anim:remove() | |
778 | for _,v in pairs(welds) do | |
779 | local c1 = v[1].C1 | |
780 | local c0 = v[1].C0 | |
781 | local a1, a2, a3 = c1:toEulerAnglesXYZ() | |
782 | local b1, b2, b3 = c0:toEulerAnglesXYZ() | |
783 | c1 = CFrame.new(c1.p * S) * CFrame.Angles(a1, a2, a3) | |
784 | c0 = CFrame.new(c0.p * S) * CFrame.Angles(b1, b2, b3) | |
785 | local clon = v[1]:clone() | |
786 | v[1]:remove() | |
787 | clon.C1 = c1 | |
788 | clon.C0 = c0 | |
789 | clon.Part1 = v[3] | |
790 | clon.Part0 = v[2] | |
791 | clon.Parent = Character.Torso | |
792 | end | |
793 | animc.Parent = Character | |
794 | Character.Humanoid.WalkSpeed = 6+10*S | |
795 | Character:MoveTo(pos+Vector3.new(0,S*(ssss/2),0)) | |
796 | wait(0.1) | |
797 | for i,v in pairs(hats) do | |
798 | v.Parent = Character | |
799 | end | |
800 | end | |
801 | ||
802 | makeGiant(workspace.SergeantSmokey, 1.5) | |
803 | ||
804 | end) | |
805 | Dod = Instance.new("TextButton", SG) | |
806 | Dod.Name = ("Dod") | |
807 | Dod.Font = "Legacy" | |
808 | Dod.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
809 | Dod.FontSize = "Size11" | |
810 | Dod.Position = UDim2.new(0, 0, 0, 30) | |
811 | Dod.Size = UDim2.new(0, 100, 0, 30) | |
812 | - | makeGiant(game:GetService("Players").LocalPlayer, 1.5) |
812 | + | |
813 | Dod.MouseButton1Click:connect(function() | |
814 | function getAll(obj) | |
815 | for i, v in pairs(obj:getChildren()) do | |
816 | if v:IsA("BasePart") then | |
817 | v.Anchored = false | |
818 | v.BrickColor = BrickColor.new(0) | |
819 | bv = Instance.new("BodyVelocity") | |
820 | bv.Parent = v | |
821 | bv.maxForce = Vector3.new(100000000,100000000,100000000) | |
822 | end | |
823 | getAll(v) | |
824 | end | |
825 | end | |
826 | getAll(workspace) | |
827 | game.Lighting.TimeOfDay = "07:00:00" | |
828 | game.Lighting.Ambient = Color3.new(0,0,0) | |
829 | sky = Instance.new("Sky") | |
830 | sky.Parent = game.Lighting | |
831 | sky.SkyboxBk = "http://www.roblox.com/asset/?id=8772734" | |
832 | sky.SkyboxDn = "http://www.roblox.com/asset/?id=8772734" | |
833 | sky.SkyboxFt = "http://www.roblox.com/asset/?id=8772734" | |
834 | sky.SkyboxLf = "http://www.roblox.com/asset/?id=8772734" | |
835 | sky.SkyboxRt = "http://www.roblox.com/asset/?id=8772734" | |
836 | sky.SkyboxUp = "http://www.roblox.com/asset/?id=8772734" | |
837 | end) | |
838 | Nuke = Instance.new("TextButton", SG) | |
839 | Nuke.Name = ("Nuke") | |
840 | Nuke.Font = "Legacy" | |
841 | Nuke.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
842 | Nuke.FontSize = "Size11" | |
843 | Nuke.Position = UDim2.new(0, 100, 0, 30) | |
844 | Nuke.Size = UDim2.new(0, 100, 0, 30) | |
845 | Nuke.Text = "Nuke" | |
846 | Nuke.MouseButton1Click:connect(function() | |
847 | local nuke = Instance.new("Part", workspace) | |
848 | nuke.Anchored = true | |
849 | nuke.TopSurface = "Smooth" | |
850 | nuke.BottomSurface = "Smooth" | |
851 | nuke.Shape = "Ball" | |
852 | nuke.Transparency = 0.7 | |
853 | nuke.BrickColor = BrickColor.new("Really black") | |
854 | nuke.CanCollide = true | |
855 | for i = 1, 600 do | |
856 | wait() | |
857 | if nuke ~= nil then | |
858 | nuke.Touched:connect(function(hit) | |
859 | hit.Parent:BreakJoints() | |
860 | end) | |
861 | nuke.Size = nuke.Size + Vector3.new(1, 1, 1) | |
862 | nuke.CFrame = CFrame.new(0, 0, 0) | |
863 | end | |
864 | end | |
865 | if nuke ~= nil then | |
866 | nuke:remove() | |
867 | end | |
868 | end) | |
869 | Base = Instance.new("TextButton", SG) | |
870 | Base.Name = ("Base") | |
871 | Base.Font = "Legacy" | |
872 | Base.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
873 | Base.FontSize = "Size11" | |
874 | Base.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
875 | Base.Position = UDim2.new(0, 200, 0, 30) | |
876 | Base.Size = UDim2.new(0, 100, 0, 30) | |
877 | Base.Text = "Base" | |
878 | Base.MouseButton1Click:connect(function() | |
879 | local b = Instance.new("Part", workspace) | |
880 | b.Size = Vector3.new(1000000, 1, 1000000) | |
881 | b.CFrame = CFrame.new(0, 0, 0) | |
882 | b.Name = "Base" | |
883 | b.BrickColor = BrickColor.new("Earth green") | |
884 | b.TopSurface = "Smooth" | |
885 | b.BottomSurface = "Smooth" | |
886 | b.LeftSurface = "Smooth" | |
887 | b.RightSurface = "Smooth" | |
888 | b.FrontSurface = "Smooth" | |
889 | b.BackSurface = "Smooth" | |
890 | b.Anchored = true | |
891 | b.Locked = true | |
892 | local sl = Instance.new("SpawnLocation", workspace) | |
893 | sl.Anchored = true | |
894 | sl.Locked = true | |
895 | sl.formFactor = "Plate" | |
896 | sl.Size = Vector3.new(6, 0.4, 6) | |
897 | sl.CFrame = CFrame.new(0, 0.6, 0) | |
898 | sl.BrickColor = BrickColor.new("Really black") | |
899 | sl.TopSurface = "Smooth" | |
900 | sl.BottomSurface = "Smooth" | |
901 | sl.LeftSurface = "Smooth" | |
902 | sl.RightSurface = "Smooth" | |
903 | sl.FrontSurface = "Smooth" | |
904 | sl.BackSurface = "Smooth" | |
905 | end) | |
906 | clean = Instance.new("TextButton", SG) | |
907 | clean.Name = ("clean") | |
908 | clean.Font = "Legacy" | |
909 | clean.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
910 | clean.FontSize = "Size11" | |
911 | clean.Position = UDim2.new(0, 300, 0, 30) | |
912 | clean.Size = UDim2.new(0, 100, 0, 30) | |
913 | clean.Text = "Clean" | |
914 | clean.MouseButton1Click:connect(function() | |
915 | x=game.Workspace:GetChildren() | |
916 | for i=1,#x do | |
917 | if x[i].className == "Part" or x[i].className == "Model" then | |
918 | if x[i].Locked== false then | |
919 | x[i]:remove() | |
920 | end | |
921 | end | |
922 | end | |
923 | end) | |
924 | GStyle = Instance.new("TextButton", SG) | |
925 | GStyle.Name = ("GStyle") | |
926 | GStyle.Font = "Legacy" | |
927 | GStyle.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
928 | GStyle.FontSize = "Size11" | |
929 | GStyle.Position = UDim2.new(0, 400, 0, 30) | |
930 | GStyle.Size = UDim2.new(0, 100, 0, 30) | |
931 | GStyle.Text = "GStyle" | |
932 | GStyle.MouseButton1Click:connect(function() | |
933 | local player=game.Players.LocalPlayer | |
934 | local char=player.Character | |
935 | repeat wait() until player and char | |
936 | local torso=char.Torso | |
937 | local head=char.Head | |
938 | local human=char.Humanoid | |
939 | local arm={Left=char["Left Arm"], Right=char["Right Arm"]} | |
940 | local leg={Left=char["Left Leg"], Right=char["Right Leg"]} | |
941 | local c=function(f) coroutine.resume(coroutine.create(f)) end | |
942 | local p=function(f) pcall(f) end | |
943 | local add={ | |
944 | Part=function(par, a, c, col, t, s, cf) | |
945 | local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end) | |
946 | return p | |
947 | end, | |
948 | Wedge=function(par, a, c, col, t, s, cf) | |
949 | local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end) | |
950 | return p | |
951 | end, | |
952 | Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos) | |
953 | local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end) | |
954 | return g | |
955 | end, | |
956 | Weld=function(par, p1, cf) | |
957 | local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end) | |
958 | return w | |
959 | end, | |
960 | Mesh=function(ins, par, s, of, t) | |
961 | local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end) | |
962 | return m | |
963 | end | |
964 | } | |
965 | local scriptname="GANGNAM STYLE" --Name here | |
966 | pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end) | |
967 | local model=Instance.new("Model", char) model.Name="Objects" | |
968 | local modelB=Instance.new("Model", char) modelB.Name=scriptname | |
969 | local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname | |
970 | local skincolor="Really black" | |
971 | local body={} | |
972 | local animate={} | |
973 | local obj={} | |
974 | function createParts() | |
975 | --==PARTS==-- | |
976 | body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil) | |
977 | body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil) | |
978 | body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil) | |
979 | body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil) | |
980 | --==WELDS==-- | |
981 | body.HeadW=add.Weld(body.Head, torso, CFrame.new(0, 1.5, 0)) | |
982 | body.TorsoW=add.Weld(body.Torso, torso, nil) | |
983 | body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0)) | |
984 | body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0)) | |
985 | --==WELDS==-- | |
986 | add.Weld(body.Head, head, nil) | |
987 | add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0)) | |
988 | add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0)) | |
989 | add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0)) | |
990 | add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0)) | |
991 | --------------------------------------------------------------------------------------- | |
992 | animate={ | |
993 | ["Head"]=function(cf) | |
994 | body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf | |
995 | end; | |
996 | ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1 | |
997 | body.TorsoW.C1=cf | |
998 | end; | |
999 | ["ArmLeft"]=function(cf) | |
1000 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf | |
1001 | end; | |
1002 | ["ArmRight"]=function(cf) | |
1003 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf | |
1004 | end; | |
1005 | ["LegLeft"]=function(cf) | |
1006 | body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf | |
1007 | end; | |
1008 | ["LegRight"]=function(cf) | |
1009 | body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf | |
1010 | end; | |
1011 | } | |
1012 | --==Objects==-- | |
1013 | end | |
1014 | local lyrics=0 | |
1015 | local dance=0 | |
1016 | local dancing=false | |
1017 | local onDancing=false | |
1018 | local startpos=false | |
1019 | createParts() | |
1020 | onDancing=true | |
1021 | for i=0, 1, .1 do wait() | |
1022 | animate.Head(CFrame.Angles(math.rad(45), 0, 0)) | |
1023 | animate.ArmLeft(CFrame.new(1*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i)) | |
1024 | animate.ArmRight(CFrame.new(-1*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i)) | |
1025 | animate.LegLeft(CFrame.Angles(0, 0, -math.rad(15)*i)) | |
1026 | animate.LegRight(CFrame.Angles(0, 0, math.rad(15)*i)) | |
1027 | end | |
1028 | while onDancing do wait() lyrics=lyrics+1 dance=dance+1 | |
1029 | if lyrics==1 then game:GetService("Chat"):Chat(head, "Op", "Blue") end | |
1030 | if lyrics==2 then game:GetService("Chat"):Chat(head, "Op", "Blue") end | |
1031 | if lyrics==4 then game:GetService("Chat"):Chat(head, "Oppa GANGNAM STYLE!", "Blue") end | |
1032 | if dance<=2 and dancing==false then print(dance) | |
1033 | dancing=true | |
1034 | startpos=false | |
1035 | for i=0, 1, .1 do wait() | |
1036 | animate.Head(CFrame.Angles(math.rad(45*i), 0, 0)) | |
1037 | animate.Torso(CFrame.Angles(0, 0, math.rad(-5+10*i))) | |
1038 | animate.ArmLeft(CFrame.new(1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, math.rad(45))) | |
1039 | animate.ArmRight(CFrame.new(-1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, -math.rad(45))) | |
1040 | animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15))) | |
1041 | animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15))) | |
1042 | end | |
1043 | for i=0, 1, .1 do wait() | |
1044 | animate.Head(CFrame.Angles(math.rad(45-45*i), 0, 0)) | |
1045 | animate.Torso(CFrame.Angles(0, 0, math.rad(5-10*i))) | |
1046 | animate.ArmLeft(CFrame.new(1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45))) | |
1047 | animate.ArmRight(CFrame.new(-1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, -math.rad(45))) | |
1048 | animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15))) | |
1049 | animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15))) | |
1050 | end | |
1051 | dancing=false | |
1052 | elseif dance>=2 and dance<5 and dancing==false then print(dance) | |
1053 | dancing=true | |
1054 | startpos=false | |
1055 | for i=0, 1, .1 do wait() | |
1056 | animate.Head(CFrame.Angles(math.rad(45*i), 0, 0)) | |
1057 | animate.Torso(CFrame.Angles(0, 0, math.rad(-5+10*i))) | |
1058 | animate.ArmLeft(CFrame.new(1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, math.rad(45))) | |
1059 | animate.ArmRight(CFrame.Angles(math.rad(180+math.random(-45, 45)*i), 0, -math.rad(math.random(-45, 45)*i))) | |
1060 | animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15))) | |
1061 | animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15))) | |
1062 | end | |
1063 | for i=0, 1, .1 do wait() | |
1064 | animate.Head(CFrame.Angles(math.rad(45-45*i), 0, 0)) | |
1065 | animate.Torso(CFrame.Angles(0, 0, math.rad(5-10*i))) | |
1066 | animate.ArmLeft(CFrame.new(1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45))) | |
1067 | animate.ArmRight(CFrame.Angles(math.rad(180+math.random(-45, 45)*i), 0, -math.rad(math.random(-45, 45)*i))) | |
1068 | animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15))) | |
1069 | animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15))) | |
1070 | end | |
1071 | dancing=false | |
1072 | elseif dance>=5 and dance<10 and dancing==false then print(dance) | |
1073 | dancing=true | |
1074 | if startpos==false then | |
1075 | startpos=true | |
1076 | game:GetService("Chat"):Chat(head, "EH SEXY LADY!", "Blue") | |
1077 | for i=0, 1, .1 do wait() | |
1078 | animate.Head(CFrame.Angles(math.rad(15), 0, 0)) | |
1079 | animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0)) | |
1080 | animate.ArmLeft(CFrame.new(.2*i, 0, 0)*CFrame.Angles(0, 0, math.rad(15)*i)) | |
1081 | animate.ArmRight(CFrame.new(-.2*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(15)*i)) | |
1082 | end | |
1083 | end | |
1084 | for i=0, 1, .2 do wait() | |
1085 | torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2 | |
1086 | animate.Head(CFrame.Angles(math.rad(15), 0, 0)) | |
1087 | animate.Torso(CFrame.Angles(0, -math.rad(90), math.rad(-5+10*i))) | |
1088 | animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15))) | |
1089 | animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15))) | |
1090 | end | |
1091 | for i=0, 1, .2 do wait() | |
1092 | torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2 | |
1093 | animate.Head(CFrame.Angles(math.rad(15), 0, 0)) | |
1094 | animate.Torso(CFrame.Angles(0, -math.rad(90), math.rad(5-10*i))) | |
1095 | animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15))) | |
1096 | animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15))) | |
1097 | end | |
1098 | dancing=false | |
1099 | elseif dance<=10 then | |
1100 | dance=0 | |
1101 | lyrics=0 | |
1102 | end | |
1103 | end--mediafire | |
1104 | end) | |
1105 | StealButton = Instance.new("TextButton", SG) | |
1106 | StealButton.Name = ("StealButton") | |
1107 | StealButton.FontSize = "Size12" | |
1108 | StealButton.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1109 | StealButton.Font = "Legacy" | |
1110 | StealButton.Text = "Steal" | |
1111 | StealButton.Position = UDim2.new(0, 500, 0, 30) | |
1112 | StealButton.Size = UDim2.new(0, 100, 0, 30) | |
1113 | StealButton.MouseButton1Click:connect(function() | |
1114 | pcall(function() | |
1115 | game:service("Visit"):SetUploadUrl("http://www.roblox.com/Data/Upload.ashx?assetid=122182455"); | |
1116 | end)game.CoreGui.SG.ControlFrame.SaveDialogShield.Visible = true | |
1117 | end) | |
1118 | Dragon = Instance.new("TextButton", SG) | |
1119 | Dragon.Name = ("Dragon") | |
1120 | Dragon.Font = "Legacy" | |
1121 | Dragon.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1122 | Dragon.FontSize = "Size11" | |
1123 | Dragon.Position = UDim2.new(0, 600, 0, 30) | |
1124 | Dragon.Size = UDim2.new(0, 100, 0, 30) | |
1125 | Dragon.Text = "Dragon" | |
1126 | Dragon.MouseButton1Click:connect(function() | |
1127 | I = "SergeantSmokey" | |
1128 | game.Players[I].Character.Head.Transparency = 1 | |
1129 | local p = Instance.new("Part") | |
1130 | p.Parent = game.Players[I].Character.Torso | |
1131 | p.Position = Vector3.new(0, 50, 0) | |
1132 | p.BrickColor = BrickColor.new("Bright red") | |
1133 | p.TopSurface = 0 | |
1134 | p.BottomSurface = 0 | |
1135 | p.Size = Vector3.new(1, 1, 2) | |
1136 | p.CanCollide = False | |
1137 | - | I = game:GetService("Players").LocalPlayer |
1137 | + | |
1138 | w.Parent = game.Players[I].Character | |
1139 | w.Part1 = game.Players[I].Character.Head | |
1140 | w.Part0 = p | |
1141 | w.C0 = CFrame.new(0,0,1.5) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1142 | local A = Instance.new("SpecialMesh") | |
1143 | A.MeshType = "Brick" | |
1144 | A.Parent = p | |
1145 | A.Scale = Vector3.new(1.5, 0.8, 1) | |
1146 | local p = Instance.new("Part") | |
1147 | p.Parent = game.Players[I].Character.Torso | |
1148 | p.Position = Vector3.new(0, 50, 0) | |
1149 | p.BrickColor = BrickColor.new("Bright red") | |
1150 | p.TopSurface = 0 | |
1151 | p.BottomSurface = 0 | |
1152 | p.Size = Vector3.new(1, 1, 1.5) | |
1153 | p.CanCollide = False | |
1154 | local w = Instance.new("Weld") | |
1155 | w.Parent = game.Players[I].Character | |
1156 | w.Part1 = game.Players[I].Character.Head | |
1157 | w.Part0 = p | |
1158 | w.C0 = CFrame.new(0,-1.1,0) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0,0) | |
1159 | local A = Instance.new("SpecialMesh") | |
1160 | A.MeshType = "Brick" | |
1161 | A.Parent = p | |
1162 | A.Scale = Vector3.new(1.5, 1, 1) | |
1163 | local p = Instance.new("Part") | |
1164 | p.Parent = game.Players[I].Character.Torso | |
1165 | p.Position = Vector3.new(0, 50, 0) | |
1166 | p.BrickColor = BrickColor.new("Bright red") | |
1167 | p.TopSurface = 0 | |
1168 | p.BottomSurface = 0 | |
1169 | p.Size = Vector3.new(1, 1, 1.5) | |
1170 | p.CanCollide = False | |
1171 | local w = Instance.new("Weld") | |
1172 | w.Parent = game.Players[I].Character | |
1173 | w.Part1 = game.Players[I].Character.Head | |
1174 | w.Part0 = p | |
1175 | w.C0 = CFrame.new(0.4,-1.4,-1.3) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0,0) | |
1176 | local A = Instance.new("SpecialMesh") | |
1177 | A.MeshType = "Brick" | |
1178 | A.Parent = p | |
1179 | A.Scale = Vector3.new(0.5, 0.5, 0.5) | |
1180 | local p = Instance.new("Part") | |
1181 | p.Parent = game.Players[I].Character.Torso | |
1182 | p.Position = Vector3.new(0, 50, 0) | |
1183 | p.BrickColor = BrickColor.new("Bright red") | |
1184 | p.TopSurface = 0 | |
1185 | p.BottomSurface = 0 | |
1186 | p.Size = Vector3.new(1, 1, 1.5) | |
1187 | p.CanCollide = False | |
1188 | local w = Instance.new("Weld") | |
1189 | w.Parent = game.Players[I].Character | |
1190 | w.Part1 = game.Players[I].Character.Head | |
1191 | w.Part0 = p | |
1192 | w.C0 = CFrame.new(-0.4,-1.4,-1.3) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0,0) | |
1193 | local A = Instance.new("SpecialMesh") | |
1194 | A.MeshType = "Brick" | |
1195 | A.Parent = p | |
1196 | A.Scale = Vector3.new(0.5, 0.5, 0.5) | |
1197 | local p = Instance.new("Part") | |
1198 | p.Parent = game.Players[I].Character.Torso | |
1199 | p.Position = Vector3.new(0, 50, 0) | |
1200 | p.BrickColor = BrickColor.new("Bright red") | |
1201 | p.TopSurface = 0 | |
1202 | p.BottomSurface = 0 | |
1203 | p.Size = Vector3.new(1, 1, 1.5) | |
1204 | p.CanCollide = False | |
1205 | local w = Instance.new("Weld") | |
1206 | w.Parent = game.Players[I].Character | |
1207 | w.Part1 = game.Players[I].Character.Head | |
1208 | w.Part0 = p | |
1209 | w.C0 = CFrame.new(0,0.2,-0.1) * CFrame.fromEulerAnglesXYZ(math.pi/-3,0,0) | |
1210 | local A = Instance.new("SpecialMesh") | |
1211 | A.MeshType = "Brick" | |
1212 | A.Parent = p | |
1213 | A.Scale = Vector3.new(1.5, 1.5, 1.5) | |
1214 | for c = 1, #game.Players[I].Character:GetChildren()do | |
1215 | char = game.Players[I].Character:GetChildren() | |
1216 | if char[c]:IsA("Part") then | |
1217 | char[c].Transparency = 1 | |
1218 | elseif char[c]:IsA("Hat") then | |
1219 | char[c].Handle:Remove() | |
1220 | end | |
1221 | end | |
1222 | if game.Players[I].Character.Head:FindFirstChild("face") then | |
1223 | game.Players[I].Character.Head.face:Remove() | |
1224 | end | |
1225 | --[[------------------------------------------------------------------------]] | |
1226 | Player = game.Players[I] | |
1227 | local h = Instance.new("HopperBin") | |
1228 | h.Name = "Fly" | |
1229 | h.Parent = Player.Backpack | |
1230 | local s = Instance.new("Script") | |
1231 | s.Parent = h | |
1232 | s.Name = "Script" | |
1233 | local bin = s.Parent | |
1234 | length = 3 | |
1235 | away = 2 | |
1236 | gap = 0 | |
1237 | segs = 40 | |
1238 | distance = length/3 | |
1239 | speed = 1 | |
1240 | Wave = 0 | |
1241 | local Tail = {} | |
1242 | local part0 = Instance.new("Part") | |
1243 | part0.BrickColor = BrickColor.new("Bright red") | |
1244 | part0.TopSurface = 0 | |
1245 | part0.BottomSurface = 0 | |
1246 | part0.Locked = true | |
1247 | part0.FormFactor = "Symmetric" | |
1248 | part0.Size = Vector3.new(2,2,2) | |
1249 | part0.Anchored = true | |
1250 | part0.Shape = 1 | |
1251 | part0.CanCollide = true | |
1252 | part0.Parent = nil | |
1253 | part0.Name = "Part0" | |
1254 | local A = Instance.new("SpecialMesh") | |
1255 | A.MeshType = "Brick" | |
1256 | A.Parent = part0 | |
1257 | A.Name = "Mesh" | |
1258 | A.Scale = Vector3.new(1.1, 1.1, 1.1) | |
1259 | for p = 1,segs do | |
1260 | Tail[p] = part0:Clone() | |
1261 | Tail[p].Parent = nil | |
1262 | Tail[p].Name = "Part"..p | |
1263 | Tail[p].CFrame = CFrame.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100)) | |
1264 | Tail[p].Mesh.Scale = Vector3.new(1.1 - (p/1000), 1.1 - (p/1000), 1.1 - (p/1000)) | |
1265 | end | |
1266 | function onButton1Down(mouse) | |
1267 | local player = game.Players.LocalPlayer | |
1268 | if player == nil then return end | |
1269 | me1 = bin.Parent.Parent | |
1270 | me = bin.Parent.Parent.Character | |
1271 | for p = 1,segs do | |
1272 | Tail[p].Parent = me | |
1273 | end | |
1274 | main = part0 | |
1275 | part1 = Tail[1] | |
1276 | follow = true | |
1277 | while follow do | |
1278 | Wave = Wave + 0.02 | |
1279 | distance = length/3 | |
1280 | mousehit = mouse.Hit.p | |
1281 | if (main.Position - mousehit).magnitude >speed then | |
1282 | main_mousehit = (main.Position - mousehit).unit*speed | |
1283 | else | |
1284 | main_mousehit = (main.Position - mousehit).unit*1 | |
1285 | end | |
1286 | start1 = main.Position-main_mousehit | |
1287 | main.CFrame = CFrame.new(start1.x, start1.y, start1.z) | |
1288 | p1pos = part1.Position | |
1289 | start1_p1pos = (start1 - p1pos).unit | |
1290 | spreadp1 = start1_p1pos*(distance+away) | |
1291 | part1.CFrame = CFrame.new(start1-spreadp1, start1) | |
1292 | me.Torso.CFrame=Tail[1].CFrame*CFrame.new(0,-0.5,-4)*CFrame.fromEulerAnglesXYZ(-math.pi/5,0,0) | |
1293 | me.Torso.Anchored = true | |
1294 | Wave = Wave + 0.02 | |
1295 | pc = me.Torso.CFrame | |
1296 | starti = me.Torso.Position-(pc.lookVector*distance) | |
1297 | pipos = Tail[1].Position | |
1298 | starti_pipos = (starti - pipos).unit | |
1299 | spreadpi = starti_pipos*(distance+gap) | |
1300 | Tail[1].CFrame = CFrame.new(starti-spreadpi, starti) + (part0.CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6)/4 | |
1301 | --[[ | |
1302 | for i = 1,39 do | |
1303 | wait() | |
1304 | print("p2c = Tail["..i.."].CFrame\ | |
1305 | start3 = Tail["..i.."].Position-(p2c.lookVector*distance)\ | |
1306 | p3pos = Tail["..(i+1).."].Position\ | |
1307 | start3_p3pos = (start3 - p3pos).unit\ | |
1308 | spreadp3 = start3_p3pos*(distance+gap)\ | |
1309 | Tail["..(i+1).."].CFrame = CFrame.new(start3-spreadp3, start3 - Vector3.new(0,math.sin(Wave*6+"..((i-1)/100)..")/4,0) ) + Vector3.new(0,math.sin(Wave*6+"..((i)/100)..")/4,0)\ | |
1310 | " ) | |
1311 | end | |
1312 | ]] | |
1313 | p2c = Tail[1].CFrame start3 = Tail[1].Position-(p2c.lookVector*distance) p3pos = Tail[2].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[2].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[1].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0)/4 ) + (Tail[2].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.01)/4 | |
1314 | p2c = Tail[2].CFrame start3 = Tail[2].Position-(p2c.lookVector*distance) p3pos = Tail[3].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[3].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[2].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.01)/4 ) + (Tail[3].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.02)/4 | |
1315 | p2c = Tail[3].CFrame start3 = Tail[3].Position-(p2c.lookVector*distance) p3pos = Tail[4].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[4].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[3].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.02)/4 ) + (Tail[4].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.03)/4 | |
1316 | p2c = Tail[4].CFrame start3 = Tail[4].Position-(p2c.lookVector*distance) p3pos = Tail[5].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[5].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[4].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.03)/4 ) + (Tail[5].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.04)/4 | |
1317 | p2c = Tail[5].CFrame start3 = Tail[5].Position-(p2c.lookVector*distance) p3pos = Tail[6].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[6].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[5].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.04)/4 ) + (Tail[6].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.05)/4 | |
1318 | p2c = Tail[6].CFrame start3 = Tail[6].Position-(p2c.lookVector*distance) p3pos = Tail[7].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[7].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[6].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.05)/4 ) + (Tail[7].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.06)/4 | |
1319 | p2c = Tail[7].CFrame start3 = Tail[7].Position-(p2c.lookVector*distance) p3pos = Tail[8].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[8].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[7].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.06)/4 ) + (Tail[8].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.07)/4 | |
1320 | p2c = Tail[8].CFrame start3 = Tail[8].Position-(p2c.lookVector*distance) p3pos = Tail[9].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[9].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[8].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.07)/4 ) + (Tail[9].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.08)/4 | |
1321 | p2c = Tail[9].CFrame start3 = Tail[9].Position-(p2c.lookVector*distance) p3pos = Tail[10].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[10].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[9].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.08)/4 ) + (Tail[10].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.09)/4 | |
1322 | p2c = Tail[10].CFrame start3 = Tail[10].Position-(p2c.lookVector*distance) p3pos = Tail[11].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[11].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[10].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.09)/4 ) + (Tail[11].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.1)/4 | |
1323 | p2c = Tail[11].CFrame start3 = Tail[11].Position-(p2c.lookVector*distance) p3pos = Tail[12].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[12].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[11].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.1)/4 ) + (Tail[12].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.11)/4 | |
1324 | p2c = Tail[12].CFrame start3 = Tail[12].Position-(p2c.lookVector*distance) p3pos = Tail[13].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[13].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[12].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.11)/4 ) + (Tail[13].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.12)/4 | |
1325 | p2c = Tail[13].CFrame start3 = Tail[13].Position-(p2c.lookVector*distance) p3pos = Tail[14].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[14].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[13].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.12)/4 ) + (Tail[14].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.13)/4 | |
1326 | p2c = Tail[14].CFrame start3 = Tail[14].Position-(p2c.lookVector*distance) p3pos = Tail[15].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[15].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[14].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.13)/4 ) + (Tail[15].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.14)/4 | |
1327 | p2c = Tail[15].CFrame start3 = Tail[15].Position-(p2c.lookVector*distance) p3pos = Tail[16].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[16].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[15].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.14)/4 ) + (Tail[16].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.15)/4 | |
1328 | p2c = Tail[16].CFrame start3 = Tail[16].Position-(p2c.lookVector*distance) p3pos = Tail[17].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[17].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[16].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.15)/4 ) + (Tail[17].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.16)/4 | |
1329 | p2c = Tail[17].CFrame start3 = Tail[17].Position-(p2c.lookVector*distance) p3pos = Tail[18].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[18].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[17].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.16)/4 ) + (Tail[18].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.17)/4 | |
1330 | p2c = Tail[18].CFrame start3 = Tail[18].Position-(p2c.lookVector*distance) p3pos = Tail[19].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[19].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[18].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.17)/4 ) + (Tail[19].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.18)/4 | |
1331 | p2c = Tail[19].CFrame start3 = Tail[19].Position-(p2c.lookVector*distance) p3pos = Tail[20].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[20].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[19].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.18)/4 ) + (Tail[20].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.19)/4 | |
1332 | p2c = Tail[20].CFrame start3 = Tail[20].Position-(p2c.lookVector*distance) p3pos = Tail[21].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[21].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[20].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.19)/4 ) + (Tail[21].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.2)/4 | |
1333 | p2c = Tail[21].CFrame start3 = Tail[21].Position-(p2c.lookVector*distance) p3pos = Tail[22].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[22].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[21].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.2)/4 ) + (Tail[22].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.21)/4 | |
1334 | p2c = Tail[22].CFrame start3 = Tail[22].Position-(p2c.lookVector*distance) p3pos = Tail[23].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[23].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[22].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.21)/4 ) + (Tail[23].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.22)/4 | |
1335 | p2c = Tail[23].CFrame start3 = Tail[23].Position-(p2c.lookVector*distance) p3pos = Tail[24].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[24].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[23].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.22)/4 ) + (Tail[24].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.23)/4 | |
1336 | p2c = Tail[24].CFrame start3 = Tail[24].Position-(p2c.lookVector*distance) p3pos = Tail[25].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[25].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[24].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.23)/4 ) + (Tail[25].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.24)/4 | |
1337 | p2c = Tail[25].CFrame start3 = Tail[25].Position-(p2c.lookVector*distance) p3pos = Tail[26].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[26].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[25].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.24)/4 ) + (Tail[26].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.25)/4 | |
1338 | p2c = Tail[26].CFrame start3 = Tail[26].Position-(p2c.lookVector*distance) p3pos = Tail[27].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[27].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[26].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.25)/4 ) + (Tail[27].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.26)/4 | |
1339 | p2c = Tail[27].CFrame start3 = Tail[27].Position-(p2c.lookVector*distance) p3pos = Tail[28].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[28].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[27].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.26)/4 ) + (Tail[28].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.27)/4 | |
1340 | p2c = Tail[28].CFrame start3 = Tail[28].Position-(p2c.lookVector*distance) p3pos = Tail[29].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[29].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[28].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.27)/4 ) + (Tail[29].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.28)/4 | |
1341 | p2c = Tail[29].CFrame start3 = Tail[29].Position-(p2c.lookVector*distance) p3pos = Tail[30].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[30].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[29].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.28)/4 ) + (Tail[30].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.29)/4 | |
1342 | p2c = Tail[30].CFrame start3 = Tail[30].Position-(p2c.lookVector*distance) p3pos = Tail[31].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[31].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[30].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.29)/4 ) + (Tail[31].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.3)/4 | |
1343 | p2c = Tail[31].CFrame start3 = Tail[31].Position-(p2c.lookVector*distance) p3pos = Tail[32].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[32].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[31].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.3)/4 ) + (Tail[32].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.31)/4 | |
1344 | p2c = Tail[32].CFrame start3 = Tail[32].Position-(p2c.lookVector*distance) p3pos = Tail[33].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[33].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[32].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.31)/4 ) + (Tail[33].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.32)/4 | |
1345 | p2c = Tail[33].CFrame start3 = Tail[33].Position-(p2c.lookVector*distance) p3pos = Tail[34].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[34].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[33].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.32)/4 ) + (Tail[34].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.33)/4 | |
1346 | p2c = Tail[34].CFrame start3 = Tail[34].Position-(p2c.lookVector*distance) p3pos = Tail[35].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[35].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[34].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.33)/4 ) + (Tail[35].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.34)/4 | |
1347 | p2c = Tail[35].CFrame start3 = Tail[35].Position-(p2c.lookVector*distance) p3pos = Tail[36].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[36].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[35].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.34)/4 ) + (Tail[36].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.35)/4 | |
1348 | p2c = Tail[36].CFrame start3 = Tail[36].Position-(p2c.lookVector*distance) p3pos = Tail[37].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[37].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[36].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.35)/4 ) + (Tail[37].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.36)/4 | |
1349 | p2c = Tail[37].CFrame start3 = Tail[37].Position-(p2c.lookVector*distance) p3pos = Tail[38].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[38].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[37].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.36)/4 ) + (Tail[38].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.37)/4 | |
1350 | p2c = Tail[38].CFrame start3 = Tail[38].Position-(p2c.lookVector*distance) p3pos = Tail[39].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[39].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[38].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.37)/4 ) + (Tail[39].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.38)/4 | |
1351 | p2c = Tail[39].CFrame start3 = Tail[39].Position-(p2c.lookVector*distance) p3pos = Tail[40].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[40].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[39].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.38)/4 ) + (Tail[40].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.39)/4 | |
1352 | wait() | |
1353 | end | |
1354 | end | |
1355 | function onButton1Up(mouse) | |
1356 | follow = false | |
1357 | end | |
1358 | function onSelected(mouse) | |
1359 | mouse.Icon = "rbxasset://textures\\GunCursor.png" | |
1360 | mouse.Button1Down:connect(function() onButton1Down(mouse) end) | |
1361 | mouse.Button1Up:connect(function() onButton1Up(mouse) end) | |
1362 | mouse.KeyDown:connect(onKeyDown) | |
1363 | end | |
1364 | bin.Selected:connect(onSelected) | |
1365 | end) | |
1366 | Lag = Instance.new("TextLabel", SG) | |
1367 | Lag.Name = ("LagScript") | |
1368 | Lag.Font = "Legacy" | |
1369 | Lag.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1370 | Lag.FontSize = "Size11" | |
1371 | Lag.Position = UDim2.new(0, 700, 0, 30) | |
1372 | Lag.Size = UDim2.new(0, 100, 0, 30) | |
1373 | Lag.Text = "Lag" | |
1374 | local LagPlyrs = Instance.new("TextBox", SG) | |
1375 | LagPlyrs.Name = "LagTextbox" | |
1376 | LagPlyrs.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1377 | LagPlyrs.Text = "Type name here." | |
1378 | LagPlyrs.Size = UDim2.new(0, 100, 0, 30) | |
1379 | LagPlyrs.Position = UDim2.new(0, 800, 0, 30) | |
1380 | LagPlyrs.FocusLost:connect(function() | |
1381 | local length = string.len(LagPlyrs.Text) | |
1382 | local peeps = game.Players:GetChildren() | |
1383 | for i = 1, #peeps do | |
1384 | local storednames = string.sub(peeps[i].Name,0,length) -- this isn't going to work is it? | |
1385 | if storednames == LagPlyrs.Text then | |
1386 | peeps[i].Humanoid.Walkspeed = math.huge | |
1387 | end | |
1388 | end | |
1389 | end) | |
1390 | NyanCat = Instance.new("TextButton", SG) | |
1391 | NyanCat.Name = ("NyanCat") | |
1392 | NyanCat.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1393 | NyanCat.Font = "Legacy" | |
1394 | NyanCat.FontSize = "Size11" | |
1395 | NyanCat.Position = UDim2.new(0, 900, 0, 30) | |
1396 | NyanCat.Size = UDim2.new(0, 100, 0, 30) | |
1397 | NyanCat.Text = "NyanCatSky" | |
1398 | NyanCat.MouseButton1Click:connect(function() | |
1399 | while true do | |
1400 | wait() | |
1401 | s = Instance.new("Sky") | |
1402 | s.Parent = game.Lighting | |
1403 | s.Name = "NyanCat" | |
1404 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767914" | |
1405 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767914" | |
1406 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767914" | |
1407 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767914" | |
1408 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767914" | |
1409 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767914" | |
1410 | wait(0.1) | |
1411 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767923" | |
1412 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767923" | |
1413 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767923" | |
1414 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767923" | |
1415 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767923" | |
1416 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767923" | |
1417 | wait(0.1) | |
1418 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767933" | |
1419 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767933" | |
1420 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767933" | |
1421 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767933" | |
1422 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767933" | |
1423 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767933" | |
1424 | wait(0.1) | |
1425 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767945" | |
1426 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767945" | |
1427 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767945" | |
1428 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767945" | |
1429 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767945" | |
1430 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767945" | |
1431 | wait(0.1) | |
1432 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767959" | |
1433 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767959" | |
1434 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767959" | |
1435 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767959" | |
1436 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767959" | |
1437 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767959" | |
1438 | wait(0.1) | |
1439 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767974" | |
1440 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767974" | |
1441 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767974" | |
1442 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767974" | |
1443 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767974" | |
1444 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767974" | |
1445 | wait(0.1) | |
1446 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767980" | |
1447 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767980" | |
1448 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767980" | |
1449 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767980" | |
1450 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767980" | |
1451 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767980" | |
1452 | wait(0.1) | |
1453 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50767996" | |
1454 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50767996" | |
1455 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50767996" | |
1456 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50767996" | |
1457 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50767996" | |
1458 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50767996" | |
1459 | wait(0.1) | |
1460 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50768017" | |
1461 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50768017" | |
1462 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50768017" | |
1463 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50768017" | |
1464 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50768017" | |
1465 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50768017" | |
1466 | wait(0.1) | |
1467 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50768029" | |
1468 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50768029" | |
1469 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50768029" | |
1470 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50768029" | |
1471 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50768029" | |
1472 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50768029" | |
1473 | wait(0.1) | |
1474 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50768034" | |
1475 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50768034" | |
1476 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50768034" | |
1477 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50768034" | |
1478 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50768034" | |
1479 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50768034" | |
1480 | wait(0.1) | |
1481 | s.SkyboxBk = "http://www.roblox.com/asset/?id=50768048" | |
1482 | s.SkyboxDn = "http://www.roblox.com/asset/?id=50768048" | |
1483 | s.SkyboxFt = "http://www.roblox.com/asset/?id=50768048" | |
1484 | s.SkyboxLf = "http://www.roblox.com/asset/?id=50768048" | |
1485 | s.SkyboxRt = "http://www.roblox.com/asset/?id=50768048" | |
1486 | s.SkyboxUp = "http://www.roblox.com/asset/?id=50768048" | |
1487 | end | |
1488 | end) | |
1489 | Fap = Instance.new("TextButton", SG) | |
1490 | Fap.Name = ("Fap") | |
1491 | Fap.Font = "Legacy" | |
1492 | Fap.FontSize = "Size11" | |
1493 | Fap.Position = UDim2.new(0, 1000, 0, 30) | |
1494 | Fap.Size = UDim2.new(0, 100, 0, 30) | |
1495 | Fap.Text = "Fap" | |
1496 | Fap.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1497 | Fap.MouseButton1Click:connect(function() | |
1498 | local Me = game.Players.LocalPlayer | |
1499 | bin = Instance.new("HopperBin") | |
1500 | bin.Name = "Fap (Q and E)" | |
1501 | bin.Parent = Me.Backpack | |
1502 | ||
1503 | local SIZE = 2 | |
1504 | local DISTANCE = 1 | |
1505 | local RAISE = 0.5 | |
1506 | local INCLINE = 0.001 | |
1507 | local ChaneOfEnjoyment = 10 | |
1508 | local Auto = false | |
1509 | local AutoAmout = 50 | |
1510 | ||
1511 | local char = Me.Character | |
1512 | local Torsoz = char:findFirstChild("Torso") | |
1513 | local RA = char:findFirstChild("Right Arm") | |
1514 | local LA = char:findFirstChild("Left Arm") | |
1515 | local H = char:findFirstChild("Head") | |
1516 | local RS = Torsoz:findFirstChild("Right Shoulder") | |
1517 | local LS = Torsoz:findFirstChild("Left Shoulder") | |
1518 | local N = Torsoz:findFirstChild("Neck") | |
1519 | local Joint1 | |
1520 | local Joint2 | |
1521 | local Fap = 1 | |
1522 | local FapCount = Instance.new("Part") | |
1523 | local FapCountM = Instance.new("Model") | |
1524 | local Points = 0 | |
1525 | local Dks = {} | |
1526 | local InTenPoints = 0 | |
1527 | local RaiseOrg = RAISE | |
1528 | local Tickup = false | |
1529 | ||
1530 | Me:ClearCharacterAppearance() | |
1531 | wait(0.1) | |
1532 | Me.Character.Head.BrickColor = BrickColor.new("Cool yellow") | |
1533 | Me.Character.Torso.BrickColor = BrickColor.new("Cool yellow") | |
1534 | Me.Character["Right Arm"].BrickColor = BrickColor.new("Cool yellow") | |
1535 | Me.Character["Right Leg"].BrickColor = BrickColor.new("Cool yellow") | |
1536 | Me.Character["Left Leg"].BrickColor = BrickColor.new("Cool yellow") | |
1537 | Me.Character["Left Arm"].BrickColor = BrickColor.new("Cool yellow") | |
1538 | pcall(function() Me.Character.Torso.roblox:Destroy() end) | |
1539 | ||
1540 | local P = Instance.new("Part") | |
1541 | P.Anchored = false | |
1542 | P.CanCollide = false | |
1543 | P.Name = "Part" | |
1544 | P.formFactor = "Custom" | |
1545 | P.Size = Vector3.new(0.5,0.5,0.5) | |
1546 | P.Locked = true | |
1547 | P.TopSurface = 0 | |
1548 | P.BottomSurface = 0 | |
1549 | ||
1550 | local Model = Instance.new("Model", char) | |
1551 | Model.Name = "Troll" | |
1552 | ||
1553 | local B1 = Instance.new("Part", Model) | |
1554 | B1.Name = "Di-ck" | |
1555 | B1.Size = Vector3.new(1,1,1) | |
1556 | B1.TopSurface = "Smooth" | |
1557 | B1.BottomSurface = "Smooth" | |
1558 | B1.Position = Vector3.new(0,10,0) | |
1559 | B1.BrickColor = BrickColor.new("Cool yellow") | |
1560 | B1.CanCollide = true | |
1561 | B1.Locked = true | |
1562 | local Mesh1 = Instance.new("SpecialMesh", B1) | |
1563 | Mesh1.MeshType = "Sphere" | |
1564 | Mesh1.Scale = Vector3.new(SIZE+0.3,SIZE+0.3,SIZE+0.3) | |
1565 | local Weld1 = Instance.new("Weld", B1) | |
1566 | Weld1.Part0 = Torsoz | |
1567 | Weld1.Part1 = B1 | |
1568 | Weld1.C0 = CFrame.new(-0.2,-1,-0.6) | |
1569 | ||
1570 | local B2 = Instance.new("Part", Model) | |
1571 | B2.Name = "Di-ck" | |
1572 | B2.Size = Vector3.new(1,1,1) | |
1573 | B2.TopSurface = "Smooth" | |
1574 | B2.BottomSurface = "Smooth" | |
1575 | B2.Position = Vector3.new(0,10,0) | |
1576 | B2.BrickColor = BrickColor.new("Cool yellow") | |
1577 | B2.CanCollide = true | |
1578 | B2.Locked = true | |
1579 | local Mesh2 = Instance.new("SpecialMesh", B2) | |
1580 | Mesh2.MeshType = "Sphere" | |
1581 | Mesh2.Scale = Vector3.new(SIZE+0.3,SIZE+0.3,SIZE+0.3) | |
1582 | local Weld2 = Instance.new("Weld", B2) | |
1583 | Weld2.Part0 = Torsoz | |
1584 | Weld2.Part1 = B2 | |
1585 | Weld2.C0 = CFrame.new(0.2,-1,-0.6) | |
1586 | ||
1587 | function FapPos() | |
1588 | Joint1.C0 = CFrame.new(0.8,-0.1,-0.3) * CFrame.Angles(0.3,0,-math.pi/4.4) | |
1589 | Joint2.C0 = CFrame.new(-0.8,-0.1,-0.3) * CFrame.Angles(0.3,0,math.pi/4.4) | |
1590 | end | |
1591 | function DoTheFap(Motherload) | |
1592 | FapPos() | |
1593 | Points = Points + 1 | |
1594 | local Dk = Instance.new("Part", Model) | |
1595 | Dk.Name = "Di-ck" | |
1596 | Dk.Size = Vector3.new(1,1,1) | |
1597 | Dk.TopSurface = "Smooth" | |
1598 | Dk.BottomSurface = "Smooth" | |
1599 | Dk.Position = Vector3.new(0,10,0) | |
1600 | Dk.BrickColor = BrickColor.new("Pink") | |
1601 | Dk.CanCollide = true | |
1602 | Dk.Locked = true | |
1603 | local Mesh = Instance.new("SpecialMesh", Dk) | |
1604 | Mesh.MeshType = "Sphere" | |
1605 | Mesh.Scale = Vector3.new(SIZE,SIZE,SIZE) | |
1606 | local Weld = Instance.new("Weld", Dk) | |
1607 | Weld.Part0 = Torsoz | |
1608 | Weld.Part1 = Dk | |
1609 | Weld.C0 = CFrame.new(0,-0.9 * (((#Dks+1)*(RAISE * -1))+1),-0.7 * ((#Dks+1)*(DISTANCE))) | |
1610 | if RAISE < 0.25 and TickUp == false then | |
1611 | RAISE = RAISE + INCLINE | |
1612 | else | |
1613 | TickUp = true | |
1614 | RAISE = (RAISE + INCLINE)-0.0005 | |
1615 | end | |
1616 | table.insert(Dks, Dk) | |
1617 | if math.random(1,ChaneOfEnjoyment) == 1 or Motherload == true then | |
1618 | local Sound = Instance.new("Sound", H) | |
1619 | Sound.Name = "Uhhhh yah" | |
1620 | Sound.Volume = 5 | |
1621 | Sound.Pitch = math.random(85,105)/100 | |
1622 | Sound.SoundId = "rbxasset://sounds/uuhhh.wav" | |
1623 | local Num = 1 | |
1624 | if Motherload == false then | |
1625 | Num = math.random(3,15) | |
1626 | else | |
1627 | Num = math.random(15,70) | |
1628 | end | |
1629 | for i = 0,Num do | |
1630 | coroutine.wrap(function() | |
1631 | ||
1632 | local Mesh = Instance.new("SpecialMesh", Cm) | |
1633 | Mesh.MeshType = "Sphere" | |
1634 | Mesh.Scale = Vector3.new(0.45,0.45,0.45) | |
1635 | wait(math.random(10,60)) | |
1636 | Cm:Destroy() | |
1637 | end)() | |
1638 | end | |
1639 | wait() | |
1640 | Sound:Play() | |
1641 | wait() | |
1642 | Sound:remove() | |
1643 | wait() | |
1644 | end | |
1645 | end | |
1646 | ||
1647 | function UnFap() | |
1648 | Joint1.C0 = CFrame.new(0.8,-0.1,-0.5) * CFrame.Angles(0.7,0,-math.pi/4.4) | |
1649 | Joint2.C0 = CFrame.new(-0.8,-0.1,-0.5) * CFrame.Angles(0.7,0,math.pi/4.4) | |
1650 | end | |
1651 | ||
1652 | function onKeyDown(key, mouse) | |
1653 | if key ~= nil then | |
1654 | key:lower() | |
1655 | if Auto == false then | |
1656 | if key == "e" then | |
1657 | if Fap == 1 then | |
1658 | UnFap() | |
1659 | Fap = 0 | |
1660 | end | |
1661 | elseif key == "q" then | |
1662 | if Fap == 0 then | |
1663 | Fap = 1 | |
1664 | if Points == 100 then | |
1665 | DoTheFap(true) | |
1666 | else | |
1667 | DoTheFap(false) | |
1668 | end | |
1669 | end | |
1670 | elseif key == "m" then | |
1671 | if Fap == 1 then | |
1672 | UnFap() | |
1673 | Fap = 0 | |
1674 | end | |
1675 | elseif key == "n" then | |
1676 | if Fap == 0 then | |
1677 | if #Dks > 1 then | |
1678 | Fap = 1 | |
1679 | FapPos() | |
1680 | Points = Points - 1 | |
1681 | for Num,Dk in pairs(Dks) do | |
1682 | if Num == #Dks then | |
1683 | table.remove(Dks, Num) | |
1684 | Dk:Destroy() | |
1685 | end | |
1686 | end | |
1687 | end | |
1688 | end | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | end | |
1693 | ||
1694 | function Equip() | |
1695 | local joint = Instance.new("Motor", Torsoz) | |
1696 | joint.Part0 = Torsoz | |
1697 | joint.Part1 = RA | |
1698 | joint.C0 = CFrame.new(0.8,-0.1,-0.3) * CFrame.Angles(0.3,0,-math.pi/4.4) | |
1699 | Joint1 = joint | |
1700 | local joint = Instance.new("Motor", Torsoz) | |
1701 | joint.Part0 = Torsoz | |
1702 | joint.Part1 = LA | |
1703 | joint.C0 = CFrame.new(-0.8,-0.1,-0.3) * CFrame.Angles(0.3,0,math.pi/4.4) | |
1704 | Joint2 = joint | |
1705 | ||
1706 | local m = Instance.new("Model", char) | |
1707 | m.Name = "Fap Points: "..Points | |
1708 | FapCountM = m | |
1709 | local p = P:Clone() | |
1710 | p.Parent = m | |
1711 | p.Name = "Head" | |
1712 | p.Anchored = true | |
1713 | p.CFrame = H.CFrame + Vector3.new(0,2,0) | |
1714 | FapCount = p | |
1715 | local h = Instance.new("Humanoid", m) | |
1716 | h.MaxHealth = 0 | |
1717 | h.Name = "Durr" | |
1718 | end | |
1719 | ||
1720 | function Unequip() | |
1721 | for i, v in pairs(Torsoz:children()) do | |
1722 | if v.className == "Motor" then | |
1723 | v:remove() | |
1724 | end | |
1725 | end | |
1726 | RS.Parent = Torsoz | |
1727 | RS.Part0 = Torsoz | |
1728 | RS.Part1 = RA | |
1729 | LS.Parent = Torsoz | |
1730 | LS.Part0 = Torsoz | |
1731 | LS.Part1 = LA | |
1732 | for i, v in pairs(char:children()) do | |
1733 | if v.className == "Model" and string.find(v.Name, "Fap") then | |
1734 | v:remove() | |
1735 | end | |
1736 | end | |
1737 | end | |
1738 | ||
1739 | bin.Selected:connect(function(mouse) | |
1740 | mouse.Icon = "rbxasset://textures\\GunCursor.png" | |
1741 | mouse.Button1Down:connect(function() onButton1Down(mouse) end) | |
1742 | mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end) | |
1743 | Equip() | |
1744 | end) | |
1745 | ||
1746 | bin.Deselected:connect(function() | |
1747 | Unequip() | |
1748 | end) | |
1749 | ||
1750 | if Auto == true then | |
1751 | coroutine.wrap(function() | |
1752 | Equip() | |
1753 | wait(0.1) | |
1754 | while true do | |
1755 | if Points == 100 then | |
1756 | DoTheFap(true) | |
1757 | else | |
1758 | DoTheFap(false) | |
1759 | end | |
1760 | wait() | |
1761 | UnFap() | |
1762 | wait() | |
1763 | end | |
1764 | end)() | |
1765 | end | |
1766 | ||
1767 | if AutoAmout ~= 0 then | |
1768 | coroutine.wrap(function() | |
1769 | Equip() | |
1770 | wait(0.1) | |
1771 | for i = 1,AutoAmout do | |
1772 | if Points == 100 then | |
1773 | DoTheFap(true) | |
1774 | else | |
1775 | DoTheFap(false) | |
1776 | end | |
1777 | wait() | |
1778 | UnFap() | |
1779 | wait() | |
1780 | end | |
1781 | end)() | |
1782 | end | |
1783 | ||
1784 | ||
1785 | coroutine.wrap(function() | |
1786 | while true do | |
1787 | FapCount.CFrame = H.CFrame + Vector3.new(0,2,0) | |
1788 | FapCountM.Name = "Fap Points: "..Points | |
1789 | if #Dks ~= 0 then | |
1790 | for Num,Get in pairs(Dks) do | |
1791 | pcall(function() | |
1792 | if Num == #Dks then | |
1793 | Get.BrickColor = BrickColor.new("Pink") | |
1794 | else | |
1795 | Get.BrickColor = BrickColor.new("Cool yellow") | |
1796 | end | |
1797 | end) | |
1798 | end | |
1799 | end | |
1800 | wait(0.03) | |
1801 | end | |
1802 | end)() | |
1803 | ||
1804 | end) | |
1805 | Invisible = Instance.new("TextButton", SG) | |
1806 | Invisible.Name = ("Invisible") | |
1807 | Invisible.Font = "Legacy" | |
1808 | Invisible.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1809 | Invisible.FontSize = "Size11" | |
1810 | Invisible.Position = UDim2.new(0, 0, 0, 0) | |
1811 | Invisible.Size = UDim2.new(0, 100, 0, 30) | |
1812 | Invisible.Text = "Invisible" | |
1813 | Invisible.MouseButton1Click:connect(function() | |
1814 | game.Workspace.Upscalegaming.Humanoid.MaxHealth = math.huge | |
1815 | end) | |
1816 | RBXLocked = Instance.new("TextButton", SG) | |
1817 | RBXLocked.Name = ("RBXLocked") | |
1818 | RBXLocked.BackgroundColor3 = BrickColor.new('Bright blue').Color | |
1819 | RBXLocked.Font = "Legacy" | |
1820 | RBXLocked.FontSize = "Size11" | |
1821 | RBXLocked.Position = UDim2.new(0, 1000, 0, 0) | |
1822 | RBXLocked.Size = UDim2.new(0, 100, 0, 30) | |
1823 | RBXLocked.Text = "RBXLocked" | |
1824 | - | game:GetService("Players").LocalPlayer.Humanoid.MaxHealth = math.huge |
1824 | + | |
1825 | game.Players.Upscalegaming.Character.RobloxLocked = true | |
1826 | game.Players.Upscalegaming.PlayerGui.RobloxLocked = true | |
1827 | game.Players.Upscalegaming.Backpack.RobloxLocked = true | |
1828 | game.Players.Upscalegaming.RobloxLocked = true | |
1829 | end) |