SHOW:
|
|
- or go back to the newest paste.
1 | - | local module = {} |
1 | + | local time = tick() |
2 | ||
3 | - | --[[ |
3 | + | local plr = game:GetService("Players").LocalPlayer |
4 | - | MELTDOWN R4 ADMINISTRATION |
4 | + | local mouse,char = plr:GetMouse(),plr.Character |
5 | - | --]] |
5 | + | |
6 | local amountGhosts = 5 | |
7 | ||
8 | - | local p = game:service"Players".Your name here |
8 | + | for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end |
9 | - | local work = workspace; |
9 | + | |
10 | - | local char = p.Character |
10 | + | local toggle,cd,mcd = false,false,false |
11 | - | local cam = work.CurrentCamera |
11 | + | local ghosts = {} |
12 | - | local Rotation = 0 |
12 | + | local temptab = {} |
13 | - | local Speed = 0.0001 |
13 | + | |
14 | - | local FC = require(607033461) |
14 | + | char:WaitForChild("Animate"):Destroy() |
15 | char.Humanoid:WaitForChild("Animator"):Destroy() | |
16 | - | local Services = { |
16 | + | |
17 | - | Workspace = game:service'Workspace'; |
17 | + | local state = "idle" |
18 | - | Lighting = game:service'Lighting'; |
18 | + | |
19 | - | Players = game:service'Players'; |
19 | + | local gt = false |
20 | - | ReplicatedFirst = game:service'ReplicatedFirst'; |
20 | + | |
21 | - | ReplicatedStorage = game:service'ReplicatedStorage'; |
21 | + | local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit |
22 | - | ServerScriptService = game:service'ServerScriptService'; |
22 | + | gyro.MaxTorque = Vector3.new(0,0,0) |
23 | - | ServerStorage = game:service'ServerStorage'; |
23 | + | gyro.D = 0 |
24 | - | StarterGui = game:service'StarterGui'; |
24 | + | gyro.P = 100000000 |
25 | - | StarterPack = game:service'StarterPack'; |
25 | + | |
26 | - | StarterPlayer = game:service'StarterPlayer'; |
26 | + | |
27 | - | SoundService = game:service'SoundService'; |
27 | + | local wCol = BrickColor.new("Really red") |
28 | - | Chat = game:service'Chat'; |
28 | + | local wCol2 = BrickColor.new("Really black") |
29 | - | HttpService = game:service'HttpService'; |
29 | + | local gCol = BrickColor.new("Toothpaste") |
30 | - | InsertService = game:service'InsertService' |
30 | + | local gCol2 = BrickColor.new("Institutional white") |
31 | - | } |
31 | + | |
32 | function searchAll(m,clear) | |
33 | - | local Settings = { |
33 | + | if clear then |
34 | - | Axis_Y = "Straight" |
34 | + | if clear == true then |
35 | - | } |
35 | + | for i,v in pairs(temptab) do |
36 | - | --- |
36 | + | table.remove(temptab,1) |
37 | - | function nwPrt(prnt,siz,cf,col) |
37 | + | end |
38 | - | local prt=Instance.new("Part") |
38 | + | end |
39 | - | prt.Parent=prnt |
39 | + | |
40 | - | prt.FormFactor=3 |
40 | + | for i,v in pairs(m:GetChildren()) do |
41 | - | prt.Name="Part" |
41 | + | if v then |
42 | - | prt.Size=Vector3.new(2.3,2.3,2.3) |
42 | + | local s = v:Clone() |
43 | - | prt.CanCollide=false |
43 | + | for _,b in pairs(s:GetChildren()) do |
44 | - | prt.Anchored=true |
44 | + | b:Destroy() |
45 | - | prt.Locked=true |
45 | + | end |
46 | - | prt.Transparency = 0.3 |
46 | + | if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then |
47 | - | prt.TopSurface=0 |
47 | + | if s.Name ~= "HumanoidRootPart" then |
48 | - | prt.BottomSurface=0 |
48 | + | s.Anchored = true |
49 | - | prt:BreakJoints() |
49 | + | s.CanCollide = false |
50 | - | prt.CFrame=cf or CFrame.new(30,10,30) |
50 | + | s.Transparency = 0.95 |
51 | - | prt.Material="Neon" |
51 | + | s.TopSurface = "Smooth" |
52 | - | prt.BrickColor=col |
52 | + | s.BottomSurface = "Smooth" |
53 | - | return prt |
53 | + | s.FrontSurface = "Smooth" |
54 | - | end |
54 | + | s.RightSurface = "Smooth" |
55 | - | -- |
55 | + | s.BackSurface = "Smooth" |
56 | - | function Lerp(c1,c2,tim) |
56 | + | s.LeftSurface = "Smooth" |
57 | - | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} |
57 | + | if s.Material ~= Enum.Material.Neon then |
58 | - | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} |
58 | + | if gt == true then |
59 | - | for i,v in pairs(com1) do |
59 | + | s.BrickColor = wCol2 |
60 | - | if i<4 then |
60 | + | else |
61 | - | com1[i] = v+(com2[i]-v)*tim |
61 | + | s.BrickColor = gCol2 |
62 | - | else |
62 | + | end |
63 | - | com1[i] = com2[i] |
63 | + | else |
64 | - | end |
64 | + | if gt == true then |
65 | - | end |
65 | + | s.BrickColor = wCol |
66 | - | return CFrame.new(com1[1],com1[2],com1[3])*CFrame.Angles(com1[4],com1[5],com1[6]) |
66 | + | else |
67 | - | end |
67 | + | s.BrickColor = gCol |
68 | - | --- |
68 | + | end |
69 | - | function Rndv(tbl) |
69 | + | end |
70 | - | local chs=math.random(1,#tbl) |
70 | + | for _,c in pairs(v:GetChildren()) do |
71 | - | for i,v in pairs(tbl) do |
71 | + | if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then |
72 | - | if i==chs then |
72 | + | c:Clone().Parent = s |
73 | - | return v |
73 | + | end |
74 | - | end |
74 | + | end |
75 | - | end |
75 | + | local objValue = Instance.new("ObjectValue",s) |
76 | - | end |
76 | + | objValue.Name = "Target" |
77 | - | --- |
77 | + | objValue.Value = v |
78 | - | Tabs={} |
78 | + | table.insert(temptab,s) |
79 | - | Cmds={} |
79 | + | end |
80 | - | bet1 = ">" |
80 | + | --elseif s:IsA("CharacterMesh") then |
81 | - | Splitkey = ">" |
81 | + | --table.insert(temptab,s) |
82 | - | Colours={ |
82 | + | end |
83 | - | BrickColor.Red(); |
83 | + | --searchAll(v) |
84 | - | BrickColor.Green(); |
84 | + | end |
85 | - | BrickColor.Blue(); |
85 | + | |
86 | - | BrickColor.Yellow(); |
86 | + | return temptab |
87 | - | }; |
87 | + | |
88 | - | -- |
88 | + | |
89 | - | -- |
89 | + | function CreateGhost() |
90 | local ghost = Instance.new("Model",game.Workspace) | |
91 | - | function getPlayers(msg) |
91 | + | searchAll(char,true) |
92 | - | local plrs = {} |
92 | + | ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name |
93 | - | if msg == "me" then |
93 | + | --Instance.new("Humanoid",ghost) |
94 | - | table.insert(plrs, p) |
94 | + | for i,v in pairs(temptab) do |
95 | - | elseif msg == "all" then |
95 | + | v:Clone().Parent = ghost |
96 | - | plrs = game:GetService("Players"):GetChildren() |
96 | + | |
97 | - | elseif msg == "noobs" then |
97 | + | table.insert(ghosts,ghost) |
98 | - | for _,plr in pairs(game:GetService("Players"):GetChildren()) do |
98 | + | |
99 | - | if plr.AccountAge > 364 then |
99 | + | |
100 | - | table.insert(plrs, plr) |
100 | + | function ClearGhosts() |
101 | - | end |
101 | + | for i,v in pairs(ghosts) do |
102 | - | end |
102 | + | v:Destroy() |
103 | - | elseif msg == "veterans" then |
103 | + | |
104 | - | for _,plr in pairs(game:GetService("Players"):GetChildren()) do |
104 | + | for i,v in pairs(ghosts) do |
105 | - | if plr.AccountAge > 364 then |
105 | + | table.remove(ghosts,1) |
106 | - | table.insert(plrs, plr) |
106 | + | |
107 | - | end |
107 | + | for i,v in pairs(game:GetService("Workspace"):GetChildren()) do |
108 | - | end |
108 | + | if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then |
109 | - | elseif msg == "others" then |
109 | + | v:Destroy() |
110 | - | for i,v in pairs(game:GetService("Players"):GetChildren()) do |
110 | + | end |
111 | - | if v ~= p then |
111 | + | |
112 | - | table.insert(plrs, v) |
112 | + | |
113 | - | end |
113 | + | |
114 | - | end |
114 | + | Instance.new("ForceField",char).Visible = false |
115 | - | else |
115 | + | |
116 | - | for i,v in pairs(game:GetService("Players"):GetChildren()) do |
116 | + | local e1 = Instance.new("Part",char) |
117 | - | if v.Name:lower():sub(1,#msg) == msg:lower() then |
117 | + | e1.Size = Vector3.new(0.2,0.2,0.2) |
118 | - | table.insert(plrs, v) |
118 | + | e1.TopSurface = "Smooth" |
119 | - | end |
119 | + | e1.BottomSurface = "Smooth" |
120 | - | end |
120 | + | e1.Material = "Neon" |
121 | - | end |
121 | + | e1.Transparency = 1 |
122 | - | return plrs |
122 | + | e1.Anchored = true |
123 | - | end |
123 | + | e1.CanCollide = false |
124 | - | |
124 | + | e1.BrickColor = gCol |
125 | - | for _,plr in pairs(game:GetService("Players"):GetChildren()) do |
125 | + | e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6) |
126 | - | end |
126 | + | local em1 = Instance.new("SpecialMesh",e1) |
127 | em1.MeshType = "Sphere" | |
128 | local e2 = Instance.new("Part",char) | |
129 | e2.Size = Vector3.new(0.2,0.2,0.2) | |
130 | - | function Output(Text,Color,Func) |
130 | + | e2.TopSurface = "Smooth" |
131 | - | Color=tostring(Color); |
131 | + | e2.BottomSurface = "Smooth" |
132 | - | local tb=nwPrt(workspace,Vector3.new(2.3,2.3,2.3),nil,BrickColor.new(Color)) |
132 | + | e2.Transparency = 1 |
133 | - | tb.CanCollide = false |
133 | + | e2.Material = "Neon" |
134 | - | local sb = Instance.new('SelectionBox',tb) |
134 | + | e2.Anchored = true |
135 | - | sb.LineThickness = 0.02 |
135 | + | e2.CanCollide = false |
136 | - | sb.Adornee = tb |
136 | + | e2.BrickColor = gCol |
137 | - | sb.Color = BrickColor.new('White') |
137 | + | e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6) |
138 | - | sb.Transparency = 0 |
138 | + | local em2 = Instance.new("SpecialMesh",e2) |
139 | - | local bm = Instance.new('BlockMesh',tb) |
139 | + | em2.MeshType = "Sphere" |
140 | - | bm.Scale = Vector3.new(.9,.9,.9) |
140 | + | |
141 | - | local BG=Instance.new('BillboardGui',tb); |
141 | + | toggle = true |
142 | - | BG.Adornee=tb; |
142 | + | for i=1,amountGhosts do |
143 | - | BG.StudsOffset=Vector3.new(0,4); |
143 | + | CreateGhost() |
144 | - | BG.Size=UDim2.new(10,0,10); |
144 | + | |
145 | - | local TL=Instance.new('TextLabel',BG); |
145 | + | char.Parent = game:GetService("Workspace").CurrentCamera |
146 | - | TL.BackgroundTransparency=1; |
146 | + | char:FindFirstChild("Head").Transparency = 1 |
147 | - | TL.Font='Arial'; |
147 | + | char:FindFirstChild("Torso").Transparency = 1 |
148 | - | TL.FontSize='Size24'; |
148 | + | char:FindFirstChild("Right Arm").Transparency = 1 |
149 | - | TL.Size=UDim2.new(1,0,1); |
149 | + | char:FindFirstChild("Left Arm").Transparency = 1 |
150 | - | TL.TextColor3=BrickColor.new(Color).Color; |
150 | + | char:FindFirstChild("Right Leg").Transparency = 1 |
151 | - | TL.Text=tostring(Text); |
151 | + | char:FindFirstChild("Left Leg").Transparency = 1 |
152 | - | local PL = Instance.new("PointLight", tb) |
152 | + | for i,v in pairs(char:GetChildren()) do |
153 | - | PL.Color = tb.Color |
153 | + | if v:IsA("Accessory") then |
154 | - | PL.Range = 10 |
154 | + | v:FindFirstChild("Handle").Transparency = 1 |
155 | - | local CD = Instance.new("ClickDetector", tb) |
155 | + | |
156 | - | CD.MaxActivationDistance = 1/0 |
156 | + | |
157 | - | CD.MouseClick:connect(function(pe) |
157 | + | char:FindFirstChild("Head"):FindFirstChild("face"):Destroy() |
158 | - | if pe.Name == p.Name or pe.userId == p.userId then |
158 | + | |
159 | - | if Func == nil then |
159 | + | local p1 = Instance.new("Part",workspace) |
160 | - | tb:Destroy() |
160 | + | local m1 = Instance.new("SpecialMesh",p1) |
161 | - | else |
161 | + | m1.MeshType = "Sphere" |
162 | - | tb:Destroy() |
162 | + | m1.Scale = Vector3.new(5,5,5) |
163 | - | Func = Func |
163 | + | p1.Size = Vector3.new(1,1,1) |
164 | - | Func() |
164 | + | p1.Anchored = true |
165 | - | end |
165 | + | p1.CanCollide = false |
166 | - | end |
166 | + | p1.TopSurface = "Smooth" |
167 | - | end) |
167 | + | p1.BottomSurface = "Smooth" |
168 | - | CD.MouseHoverEnter:connect(function(plr) |
168 | + | p1.BrickColor = gCol |
169 | - | if plr.Name == p.Name or plr.userId == p.userId then |
169 | + | p1.Material = "Neon" |
170 | - | tb.BrickColor = BrickColor.new('Really red') |
170 | + | local p2 = Instance.new("Part",workspace) |
171 | - | tb.Transparency = 0.5 |
171 | + | local m2 = Instance.new("SpecialMesh",p2) |
172 | - | tb.Size = Vector3.new(2.4,2.4,2.4) |
172 | + | m2.MeshType = "Sphere" |
173 | - | TL.TextColor3 = Color3.new(255,0,0) |
173 | + | m2.Scale = Vector3.new(8,8,8) |
174 | - | end |
174 | + | p2.Size = Vector3.new(1,1,1) |
175 | - | end) |
175 | + | p2.Anchored = true |
176 | - | CD.MouseHoverLeave:connect(function(plr) |
176 | + | p2.CanCollide = false |
177 | - | if plr.Name == p.Name or plr.userId == p.userId then |
177 | + | p2.TopSurface = "Smooth" |
178 | - | tb.BrickColor = BrickColor.new(tostring(Color)) |
178 | + | p2.BottomSurface = "Smooth" |
179 | - | tb.Transparency = 0.3 |
179 | + | p2.BrickColor = gCol2 |
180 | - | tb.Size = Vector3.new(2.3,2.3,2.3) |
180 | + | p2.Material = "Neon" |
181 | - | TL.TextColor3=BrickColor.new(Color).Color |
181 | + | local p3 = Instance.new("Part",workspace) |
182 | - | end |
182 | + | local m3 = Instance.new("BlockMesh",p3) |
183 | - | end) |
183 | + | m3.Scale = Vector3.new(7,7,7) |
184 | p3.Size = Vector3.new(1,1,1) | |
185 | - | pcall(function() |
185 | + | p3.Transparency = 0.4 |
186 | - | tb.CFrame = p.Character.Torso.CFrame |
186 | + | p3.Anchored = true |
187 | - | end) |
187 | + | p3.CanCollide = false |
188 | - | table.insert(Tabs,tb); |
188 | + | p3.TopSurface = "Smooth" |
189 | - | end |
189 | + | p3.BottomSurface = "Smooth" |
190 | - | -- |
190 | + | p3.BrickColor = gCol |
191 | - | Dismiss=function() |
191 | + | p3.Material = "Neon" |
192 | - | pcall(function() |
192 | + | local p4 = Instance.new("Part",workspace) |
193 | - | for _,Tab in next,Tabs do |
193 | + | local m4 = Instance.new("BlockMesh",p4) |
194 | - | coroutine.wrap(function() |
194 | + | m4.Scale = Vector3.new(10,10,10) |
195 | - | for i = 0,1,.2 do |
195 | + | p4.Size = Vector3.new(1,1,1) |
196 | - | pcall(function() |
196 | + | p4.Transparency = 0.4 |
197 | - | wait'' |
197 | + | p4.Anchored = true |
198 | - | Tab.Transparency=i |
198 | + | p4.CanCollide = false |
199 | - | Tab.Size = Vector3.new(i,i,i) |
199 | + | p4.TopSurface = "Smooth" |
200 | - | end) |
200 | + | p4.BottomSurface = "Smooth" |
201 | - | end |
201 | + | p4.BrickColor = gCol2 |
202 | - | Tab:destroy'' |
202 | + | p4.Material = "Neon" |
203 | - | end)() |
203 | + | local currentframe = 0 |
204 | - | Tabs[_]=nil |
204 | + | local frmR |
205 | - | end |
205 | + | |
206 | - | end) |
206 | + | frmR = game:GetService("RunService").RenderStepped:connect(function() |
207 | - | end |
207 | + | currentframe = currentframe + 1 |
208 | if currentframe < 1*60 then | |
209 | - | local y = 0 |
209 | + | p1.CFrame = char:WaitForChild("Torso").CFrame |
210 | - | game:GetService("RunService").Stepped:connect(function() |
210 | + | p2.CFrame = char:WaitForChild("Torso").CFrame |
211 | - | if p then |
211 | + | p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) |
212 | - | if p.Character then |
212 | + | p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) |
213 | m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25) | |
214 | m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25) | |
215 | m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25) | |
216 | m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25) | |
217 | - | if p.Character:FindFirstChild('Torso') ~= nil then |
217 | + | p1.Transparency = p1.Transparency + (1/(1*60)) |
218 | p2.Transparency = p2.Transparency + (1/(1*60)) | |
219 | p3.Transparency = p3.Transparency + (1/(1*60)) | |
220 | p4.Transparency = p4.Transparency + (1/(1*60)) | |
221 | else | |
222 | - | Rotation = Rotation + Speed |
222 | + | p1:Destroy() |
223 | p2:Destroy() | |
224 | p3:Destroy() | |
225 | p4:Destroy() | |
226 | frmR:disconnect() | |
227 | - | for i,v in pairs(Tabs) do |
227 | + | |
228 | end) | |
229 | ||
230 | char.Humanoid.MaxHealth = math.huge | |
231 | wait() | |
232 | - | ypcall(function() |
232 | + | char.Humanoid.Health = math.huge |
233 | ||
234 | --[[mouse.KeyDown:connect(function(key) | |
235 | if key == "r" then | |
236 | print("R!") | |
237 | - | if p and p.Character and p.Character:FindFirstChild('Torso') ~= nil then |
237 | + | if cd == false then |
238 | print("No cooldown!") | |
239 | cd = true | |
240 | if toggle == false then | |
241 | print("Entering godmode") | |
242 | - | pos = p.Character:WaitForChild("Torso").CFrame |
242 | + | toggle = true |
243 | Instance.new("ForceField",char) | |
244 | for i=1,amountGhosts do | |
245 | CreateGhost() | |
246 | end | |
247 | - | else |
247 | + | char.Parent = game:GetService("Workspace").CurrentCamera |
248 | char:FindFirstChild("Head").Transparency = 1 | |
249 | char:FindFirstChild("Torso").Transparency = 1 | |
250 | char:FindFirstChild("Right Arm").Transparency = 1 | |
251 | char:FindFirstChild("Left Arm").Transparency = 1 | |
252 | - | pos = CFrame.new(0,0,0) |
252 | + | char:FindFirstChild("Right Leg").Transparency = 1 |
253 | char:FindFirstChild("Left Leg").Transparency = 1 | |
254 | for i,v in pairs(char:GetChildren()) do | |
255 | if v:IsA("Accessory") then | |
256 | v:FindFirstChild("Handle").Transparency = 1 | |
257 | - | end |
257 | + | end |
258 | end | |
259 | else | |
260 | print("Exiting godmode") | |
261 | toggle = false | |
262 | - | local radius = 6 + (#Tabs * 0.5) |
262 | + | for i,v in pairs(ghosts) do |
263 | v:Destroy() | |
264 | end | |
265 | char.Parent = game:GetService("Workspace") | |
266 | char:FindFirstChild("ForceField"):Destroy() | |
267 | - | local x = math.sin((i / #Tabs - (0.5 / #Tabs) + Rotation * 3) * math.pi * 2) * radius |
267 | + | char:FindFirstChild("Head").Transparency = 0 |
268 | char:FindFirstChild("Torso").Transparency = 0 | |
269 | char:FindFirstChild("Right Arm").Transparency = 0 | |
270 | char:FindFirstChild("Left Arm").Transparency = 0 | |
271 | char:FindFirstChild("Right Leg").Transparency = 0 | |
272 | - | local y2 = tostring(y) |
272 | + | char:FindFirstChild("Left Leg").Transparency = 0 |
273 | for i,v in pairs(char:GetChildren()) do | |
274 | if v:IsA("Accessory") then | |
275 | v:FindFirstChild("Handle").Transparency = 0 | |
276 | - | local z = math.cos((i / #Tabs - (0.5 / #Tabs) + Rotation * 3) * math.pi * 2) * radius |
276 | + | end |
277 | end | |
278 | end | |
279 | cd = false | |
280 | end | |
281 | - | local arot = Vector3.new(x, y, z) + pos.p |
281 | + | |
282 | end)]] | |
283 | ||
284 | mouse.KeyDown:connect(function(key) | |
285 | spawn(function() | |
286 | - | local brot = v.CFrame.p |
286 | + | if key == "f" and toggle == true and mcd == false then |
287 | if #ghosts < amountGhosts then | |
288 | print(#ghosts.."<") | |
289 | mcd = true | |
290 | ||
291 | - | local crot = (arot * .1 + brot * .9) |
291 | + | ClearGhosts() |
292 | ||
293 | for i=1,amountGhosts do | |
294 | CreateGhost() | |
295 | end | |
296 | - | local d = math.rad((math.pi*777)*Rotation) |
296 | + | local p1 = Instance.new("Part",workspace) |
297 | local m1 = Instance.new("SpecialMesh",p1) | |
298 | m1.MeshType = "Sphere" | |
299 | m1.Scale = Vector3.new(7,7,7) | |
300 | p1.Size = Vector3.new(1,1,1) | |
301 | - | v.CFrame = CFrame.new(crot, pos.p)*CFrame.Angles(d,d,d) |
301 | + | p1.Anchored = true |
302 | p1.CanCollide = false | |
303 | - | if Settings.Axis_Y == "Off" then |
303 | + | p1.TopSurface = "Smooth" |
304 | - | y = 0 |
304 | + | p1.BottomSurface = "Smooth" |
305 | - | elseif Settings.Axis_Y == "On" then |
305 | + | if gt == false then |
306 | - | y = math.sin(i + tick()*2.3) |
306 | + | p1.BrickColor = gCol |
307 | - | elseif Settings.Axis_Y == "Straight" then |
307 | + | else |
308 | - | y = math.sin(tick()) |
308 | + | p1.BrickColor = wCol |
309 | - | end |
309 | + | end |
310 | p1.Material = "Neon" | |
311 | local p2 = Instance.new("Part",workspace) | |
312 | local m2 = Instance.new("SpecialMesh",p2) | |
313 | m2.MeshType = "Sphere" | |
314 | - | end) |
314 | + | m2.Scale = Vector3.new(9,9,9) |
315 | p2.Size = Vector3.new(1,1,1) | |
316 | p2.Anchored = true | |
317 | p2.CanCollide = false | |
318 | p2.TopSurface = "Smooth" | |
319 | - | end |
319 | + | p2.BottomSurface = "Smooth" |
320 | if gt == false then | |
321 | p2.BrickColor = gCol2 | |
322 | else | |
323 | p2.BrickColor = wCol2 | |
324 | - | elseif p.Character:FindFirstChild('Torso') == nil then |
324 | + | end |
325 | p2.Material = "Neon" | |
326 | local currentframe = 0 | |
327 | local frmR | |
328 | ||
329 | - | repeat wait() until p.Character:FindFirstChild('Torso') ~= nil |
329 | + | frmR = game:GetService("RunService").RenderStepped:connect(function() |
330 | currentframe = currentframe + 1 | |
331 | if currentframe < 0.25*60 then | |
332 | p1.CFrame = char:WaitForChild("Torso").CFrame | |
333 | p2.CFrame = char:WaitForChild("Torso").CFrame | |
334 | - | end |
334 | + | p1.Transparency = p1.Transparency + (1/(0.25*60)) |
335 | p2.Transparency = p2.Transparency + (1/(0.25*60)) | |
336 | else | |
337 | p1:Destroy() | |
338 | p2:Destroy() | |
339 | - | end |
339 | + | mcd = false |
340 | frmR:disconnect() | |
341 | end | |
342 | end) | |
343 | else | |
344 | - | end |
344 | + | mcd = true |
345 | ||
346 | ClearGhosts() | |
347 | ||
348 | local p1 = Instance.new("Part",workspace) | |
349 | - | end) |
349 | + | local m1 = Instance.new("SpecialMesh",p1) |
350 | m1.MeshType = "Sphere" | |
351 | - | -- |
351 | + | m1.Scale = Vector3.new(7,7,7) |
352 | - | function ShowCommands() |
352 | + | p1.Size = Vector3.new(1,1,1) |
353 | - | Dismiss() |
353 | + | p1.Anchored = true |
354 | - | for i,v in next,Cmds do |
354 | + | p1.CanCollide = false |
355 | - | Output(v['Name'],'Institutional white',function() |
355 | + | p1.TopSurface = "Smooth" |
356 | - | Dismiss() |
356 | + | p1.BottomSurface = "Smooth" |
357 | - | Output('Name: '..v['Name'],'Lime green') |
357 | + | if gt == false then |
358 | - | Output('Usage: '..v['Say'],'Cyan') |
358 | + | p1.BrickColor = gCol |
359 | - | Output('Description: '..v['Description'],'Deep orange') |
359 | + | else |
360 | - | Output('Back','Navy blue',function() ShowCommands() end) |
360 | + | p1.BrickColor = wCol |
361 | - | Output('Dismiss','Really red',function() Dismiss() end) |
361 | + | end |
362 | - | end) |
362 | + | p1.Material = "Neon" |
363 | - | end |
363 | + | local p2 = Instance.new("Part",workspace) |
364 | - | end |
364 | + | local m2 = Instance.new("SpecialMesh",p2) |
365 | - | function AddCmd(name,whatToSay,desc,func) |
365 | + | m2.MeshType = "Sphere" |
366 | - | table.insert(Cmds,{['Name'] = name,['Say'] = whatToSay,['Description'] = desc,['Function']=func}) |
366 | + | m2.Scale = Vector3.new(9,9,9) |
367 | - | end |
367 | + | p2.Size = Vector3.new(1,1,1) |
368 | p2.Anchored = true | |
369 | - | AddCmd("Ping","ping","Ping a message",function(msg) |
369 | + | p2.CanCollide = false |
370 | - | for _,m in pairs(msg) do |
370 | + | p2.TopSurface = "Smooth" |
371 | - | Output(m, 'Lime green') |
371 | + | p2.BottomSurface = "Smooth" |
372 | - | if m == nil then |
372 | + | if gt == false then |
373 | - | Output("Meltdown R4!","Lime green") |
373 | + | p2.BrickColor = gCol2 |
374 | - | end |
374 | + | else |
375 | - | end |
375 | + | p2.BrickColor = wCol2 |
376 | - | end) |
376 | + | end |
377 | p2.Material = "Neon" | |
378 | - | AddCmd("Execute","exe","Execute a script",function(msg) |
378 | + | local currentframe = 0 |
379 | - | for _,m in pairs(msg) do |
379 | + | local frmR |
380 | - | local success,errore = loadstring(tostring(m)) |
380 | + | |
381 | - | if success and not errore then |
381 | + | frmR = game:GetService("RunService").RenderStepped:connect(function() |
382 | - | success() |
382 | + | currentframe = currentframe + 1 |
383 | - | else |
383 | + | if currentframe < 0.25*60 then |
384 | - | Output("Error while executing script: "..tostring(errore),'Really red') |
384 | + | p1.CFrame = char:WaitForChild("Torso").CFrame |
385 | - | end |
385 | + | p2.CFrame = char:WaitForChild("Torso").CFrame |
386 | - | end |
386 | + | p1.Transparency = p1.Transparency + (1/(0.25*60)) |
387 | - | end) |
387 | + | p2.Transparency = p2.Transparency + (1/(0.25*60)) |
388 | else | |
389 | - | AddCmd("Kill","kill","Kill a player",function(msg) |
389 | + | p1:Destroy() |
390 | - | for _, plr in pairs(msg) do |
390 | + | p2:Destroy() |
391 | - | if plr and plr.Character then |
391 | + | mcd = false |
392 | - | plr.Character:BreakJoints() |
392 | + | frmR:disconnect() |
393 | - | plr=plr.Name |
393 | + | end |
394 | - | Output('Killed player '..plr..'','Really red') |
394 | + | end) |
395 | - | end |
395 | + | end |
396 | - | end |
396 | + | elseif key == "g" and toggle == true and mcd == false then |
397 | - | end) |
397 | + | if gt == true then |
398 | gt = false | |
399 | - | AddCmd("Health","health","Set someone's health",function(plr,msg) |
399 | + | local p1 = Instance.new("Part",workspace) |
400 | - | local Split = msg:find(Splitkey) |
400 | + | local m1 = Instance.new("SpecialMesh",p1) |
401 | - | local PreSplit = msg:sub(1, Split - 1) |
401 | + | m1.MeshType = "Sphere" |
402 | - | local Plrs = getPlayers(PreSplit) |
402 | + | m1.Scale = Vector3.new(5,5,5) |
403 | - | local AfterSplit = msg:sub(tonumber(Split + 1)) |
403 | + | p1.Size = Vector3.new(1,1,1) |
404 | - | for _,plr in pairs(Plrs) do |
404 | + | p1.Anchored = true |
405 | - | plr.Character.Humanoid.Health = AfterSplit |
405 | + | p1.CanCollide = false |
406 | - | end |
406 | + | p1.TopSurface = "Smooth" |
407 | - | end) |
407 | + | p1.BottomSurface = "Smooth" |
408 | p1.BrickColor = gCol | |
409 | - | AddCmd("Character","char","Set a player's character appearance",function(plr,msg) |
409 | + | p1.Material = "Neon" |
410 | - | local Split = msg:find(Splitkey) |
410 | + | local p2 = Instance.new("Part",workspace) |
411 | - | local PreSplit = msg:sub(1, Split - 1) |
411 | + | local m2 = Instance.new("SpecialMesh",p2) |
412 | - | local Plrs = getPlayers(PreSplit) |
412 | + | m2.MeshType = "Sphere" |
413 | - | local AfterSplit = msg:sub(tostring(Split + 1)) |
413 | + | m2.Scale = Vector3.new(8,8,8) |
414 | - | for _,plr in pairs(Plrs) do |
414 | + | p2.Size = Vector3.new(1,1,1) |
415 | - | plr.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId="..AfterSplit |
415 | + | p2.Anchored = true |
416 | - | plr:LoadCharacter() |
416 | + | p2.CanCollide = false |
417 | - | end |
417 | + | p2.TopSurface = "Smooth" |
418 | - | end) |
418 | + | p2.BottomSurface = "Smooth" |
419 | p2.BrickColor = gCol2 | |
420 | - | AddCmd("No Tools","notools","Remove a player's tools",function(msg) |
420 | + | p2.Material = "Neon" |
421 | - | for _,plr in pairs(msg) do |
421 | + | local p3 = Instance.new("Part",workspace) |
422 | - | if plr then |
422 | + | local m3 = Instance.new("BlockMesh",p3) |
423 | - | for i,v in pairs(plr.Backpack:children()) do |
423 | + | m3.Scale = Vector3.new(7,7,7) |
424 | - | if v:IsA("Tool") or v:IsA("HopperBin") then |
424 | + | p3.Size = Vector3.new(1,1,1) |
425 | - | v:remove() |
425 | + | p3.Transparency = 0.4 |
426 | p3.Anchored = true | |
427 | p3.CanCollide = false | |
428 | - | end |
428 | + | p3.TopSurface = "Smooth" |
429 | - | end |
429 | + | p3.BottomSurface = "Smooth" |
430 | - | end) |
430 | + | p3.BrickColor = gCol |
431 | p3.Material = "Neon" | |
432 | - | AddCmd("Orb Tool","orbtool","Give someone a tool that looks like an orb",function(msg) |
432 | + | local p4 = Instance.new("Part",workspace) |
433 | - | for _,plr in pairs(msg) do |
433 | + | local m4 = Instance.new("BlockMesh",p4) |
434 | - | if plr then |
434 | + | m4.Scale = Vector3.new(10,10,10) |
435 | - | local tool = Instance.new('Tool',plr.Backpack) |
435 | + | p4.Size = Vector3.new(1,1,1) |
436 | - | tool.Name = "Orb" |
436 | + | p4.Transparency = 0.4 |
437 | - | local h = Instance.new('Part',tool) |
437 | + | p4.Anchored = true |
438 | - | h.Name = 'Handle' |
438 | + | p4.CanCollide = false |
439 | - | h.Size = Vector3.new(1.3,1.3,1.3) |
439 | + | p4.TopSurface = "Smooth" |
440 | - | h.BrickColor = BrickColor.new('Lime green') |
440 | + | p4.BottomSurface = "Smooth" |
441 | - | h.Material = "SmoothPlastic" |
441 | + | p4.BrickColor = gCol2 |
442 | - | h.TopSurface=0 |
442 | + | p4.Material = "Neon" |
443 | - | h.BottomSurface=0 |
443 | + | |
444 | - | local m = Instance.new('SpecialMesh',h) |
444 | + | ClearGhosts() |
445 | - | m.MeshType = "Sphere" |
445 | + | |
446 | - | m.Scale = Vector3.new(1,1,1) |
446 | + | for i=1,amountGhosts do |
447 | - | end |
447 | + | CreateGhost() |
448 | - | end |
448 | + | end |
449 | - | end) |
449 | + | |
450 | local currentframe = 0 | |
451 | - | AddCmd("Music List","mlist","Show the music list",function(msg) |
451 | + | local frmR |
452 | - | Dismiss() |
452 | + | |
453 | - | Output("[ BYPASSED ]","Really red",function() local s = Instance.new('Sound',workspace) s.SoundId = "rbxassetid://505534951" s.Volume = 1 s.Pitch = 1 s.Looped = true s:play() end) |
453 | + | frmR = game:GetService("RunService").RenderStepped:connect(function() |
454 | - | Output("Tobu - Candyland","Lime green",function() local s = Instance.new('Sound',workspace) s.SoundId = "rbxassetid://222095512" s.Volume = 1 s.Pitch = 1 s.Looped = true s:play() end) |
454 | + | currentframe = currentframe + 1 |
455 | - | end) |
455 | + | if currentframe < 1*60 then |
456 | p1.CFrame = char:WaitForChild("Torso").CFrame | |
457 | - | AddCmd("No Character","unchar","Reset the player's character back to their own",function(msg) |
457 | + | p2.CFrame = char:WaitForChild("Torso").CFrame |
458 | - | for _,plr in pairs,getPlayers(msg) do |
458 | + | p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) |
459 | - | if plr then |
459 | + | p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) |
460 | - | plr.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId="..plr.userId |
460 | + | m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25) |
461 | - | plr:LoadCharacter() |
461 | + | m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25) |
462 | - | end |
462 | + | m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25) |
463 | - | end |
463 | + | m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25) |
464 | - | end) |
464 | + | p1.Transparency = p1.Transparency + (1/(1*60)) |
465 | p2.Transparency = p2.Transparency + (1/(1*60)) | |
466 | - | AddCmd("AFK","afk","Make tablets saying you are afk",function(msg) |
466 | + | p3.Transparency = p3.Transparency + (1/(1*60)) |
467 | - | Output(p.Name.." is AFK","Really red") |
467 | + | p4.Transparency = p4.Transparency + (1/(1*60)) |
468 | - | Output(p.Name.." is AFK","Really red") |
468 | + | else |
469 | - | Output(p.Name.." is AFK","Really red") |
469 | + | p1:Destroy() |
470 | - | Output(p.Name.." is AFK","Really red") |
470 | + | p2:Destroy() |
471 | - | Output(p.Name.." is AFK","Really red") |
471 | + | p3:Destroy() |
472 | - | Output(p.Name.." is AFK","Really red") |
472 | + | p4:Destroy() |
473 | - | Output(p.Name.." is AFK","Really red") |
473 | + | frmR:disconnect() |
474 | - | Output(p.Name.." is AFK","Really red") |
474 | + | end |
475 | - | Output(p.Name.." is AFK","Really red") |
475 | + | end) |
476 | - | end) |
476 | + | else |
477 | gt = true | |
478 | - | AddCmd("God","god","God a player",function(msg) |
478 | + | local p1 = Instance.new("Part",workspace) |
479 | - | for _, plr in pairs(msg) do |
479 | + | local m1 = Instance.new("SpecialMesh",p1) |
480 | - | if plr and plr.Character then |
480 | + | m1.MeshType = "Sphere" |
481 | - | plr.Character.Humanoid.MaxHealth = math.huge |
481 | + | m1.Scale = Vector3.new(5,5,5) |
482 | - | plr=plr.Name |
482 | + | p1.Size = Vector3.new(1,1,1) |
483 | - | Output('Godded player '..plr..'','Lime green') |
483 | + | p1.Anchored = true |
484 | - | end |
484 | + | p1.CanCollide = false |
485 | - | end |
485 | + | p1.TopSurface = "Smooth" |
486 | - | end) |
486 | + | p1.BottomSurface = "Smooth" |
487 | p1.BrickColor = wCol | |
488 | - | AddCmd("Walk Speed","ws","Set someone's walkspeed",function(plr,msg) |
488 | + | p1.Material = "Neon" |
489 | - | local Split = msg:find(Splitkey) |
489 | + | local p2 = Instance.new("Part",workspace) |
490 | - | local PreSplit = msg:sub(1, Split - 1) |
490 | + | local m2 = Instance.new("SpecialMesh",p2) |
491 | - | local Plrs = getPlayers(PreSplit) |
491 | + | m2.MeshType = "Sphere" |
492 | - | local AfterSplit = msg:sub(tonumber(Split + 1)) |
492 | + | m2.Scale = Vector3.new(8,8,8) |
493 | - | for _,plr in pairs(Plrs) do |
493 | + | p2.Size = Vector3.new(1,1,1) |
494 | - | plr.Character.Humanoid.WalkSpeed = AfterSplit |
494 | + | p2.Anchored = true |
495 | - | end |
495 | + | p2.CanCollide = false |
496 | - | end) |
496 | + | p2.TopSurface = "Smooth" |
497 | p2.BottomSurface = "Smooth" | |
498 | - | AddCmd("Break GUIs","breakguis","Break the guis!! OH NOOO!!!!",function(msg) |
498 | + | p2.BrickColor = wCol2 |
499 | - | game.ItemChanged:connect(function(x) |
499 | + | p2.Material = "Neon" |
500 | - | if x:IsA("TextLabel") then |
500 | + | local p3 = Instance.new("Part",workspace) |
501 | - | x.Text = "[Meltdown R4]: Disabled." |
501 | + | local m3 = Instance.new("BlockMesh",p3) |
502 | - | elseif x:IsA("TextButton") then |
502 | + | m3.Scale = Vector3.new(7,7,7) |
503 | - | x.Text = "[Meltdown R4]: Disabled." |
503 | + | p3.Size = Vector3.new(1,1,1) |
504 | - | elseif x:IsA("TextBox") then |
504 | + | p3.Transparency = 0.4 |
505 | - | x.Text = "[Meltdown R4]: Disabled." |
505 | + | p3.Anchored = true |
506 | - | elseif x:IsA("Message") then |
506 | + | p3.CanCollide = false |
507 | - | x.Text = "[Meltdown R4]: Disabled." |
507 | + | p3.TopSurface = "Smooth" |
508 | - | elseif x:IsA("Hint") then |
508 | + | p3.BottomSurface = "Smooth" |
509 | - | x.Text = "[Meltdown R4]: Disabled." |
509 | + | p3.BrickColor = wCol |
510 | - | end |
510 | + | p3.Material = "Neon" |
511 | - | end) |
511 | + | local p4 = Instance.new("Part",workspace) |
512 | - | end) |
512 | + | local m4 = Instance.new("BlockMesh",p4) |
513 | m4.Scale = Vector3.new(10,10,10) | |
514 | - | AddCmd("Stun","stun","Stun a player",function(msg) |
514 | + | p4.Size = Vector3.new(1,1,1) |
515 | - | for _,plr in pairs(msg) do |
515 | + | p4.Transparency = 0.4 |
516 | - | if plr and plr.Character then |
516 | + | p4.Anchored = true |
517 | - | plr.Character.Humanoid.PlatformStand = true |
517 | + | p4.CanCollide = false |
518 | - | end |
518 | + | p4.TopSurface = "Smooth" |
519 | - | end |
519 | + | p4.BottomSurface = "Smooth" |
520 | - | end) |
520 | + | p4.BrickColor = wCol2 |
521 | p4.Material = "Neon" | |
522 | - | AddCmd("UnStun","unstun","Unstun a player",function(msg) |
522 | + | |
523 | - | for _,plr in pairs(msg) do |
523 | + | ClearGhosts() |
524 | - | if plr and plr.Character then |
524 | + | |
525 | - | plr.Character.Humanoid.PlatformStand = false |
525 | + | for i=1,amountGhosts do |
526 | - | end |
526 | + | CreateGhost() |
527 | - | end |
527 | + | end |
528 | - | end) |
528 | + | |
529 | local currentframe = 0 | |
530 | - | AddCmd("FF","ff","Give a player a forcefield",function(msg) |
530 | + | local frmR |
531 | - | for _, plr in pairs(msg) do |
531 | + | |
532 | - | if plr and plr.Character then |
532 | + | frmR = game:GetService("RunService").RenderStepped:connect(function() |
533 | - | Instance.new('ForceField',plr.Character) |
533 | + | currentframe = currentframe + 1 |
534 | - | end |
534 | + | if currentframe < 1*60 then |
535 | - | end |
535 | + | p1.CFrame = char:WaitForChild("Torso").CFrame |
536 | - | end) |
536 | + | p2.CFrame = char:WaitForChild("Torso").CFrame |
537 | p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
538 | - | AddCmd('Cmds','cmds','Show all commands',function(msg) |
538 | + | p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) |
539 | - | ShowCommands() |
539 | + | m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25) |
540 | - | end) |
540 | + | m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25) |
541 | m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25) | |
542 | - | AddCmd('Dismiss','dt','Dismiss the tablets',function(msg) |
542 | + | m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25) |
543 | - | Dismiss() |
543 | + | p1.Transparency = p1.Transparency + (1/(1*60)) |
544 | - | end) |
544 | + | p2.Transparency = p2.Transparency + (1/(1*60)) |
545 | p3.Transparency = p3.Transparency + (1/(1*60)) | |
546 | - | AddCmd('Respawn','respawn','Respawn a player',function(msg) |
546 | + | p4.Transparency = p4.Transparency + (1/(1*60)) |
547 | - | for _,plr in pairs(msg) do |
547 | + | else |
548 | - | if plr then |
548 | + | p1:Destroy() |
549 | - | plr:LoadCharacter() |
549 | + | p2:Destroy() |
550 | - | end |
550 | + | p3:Destroy() |
551 | - | end |
551 | + | p4:Destroy() |
552 | - | end) |
552 | + | frmR:disconnect() |
553 | end | |
554 | - | AddCmd("Hack Services","hservices","Hack the services so people can't use them",function(msg) |
554 | + | end) |
555 | - | Services.Workspace.Name = "####" |
555 | + | end |
556 | - | Services.Lighting.Name = "####" |
556 | + | end |
557 | - | Services.Players.Name = "####" |
557 | + | end) |
558 | - | Services.ReplicatedFirst.Name = "####" |
558 | + | end) |
559 | - | Services.ReplicatedStorage.Name = "####" |
559 | + | |
560 | - | Services.ServerScriptService.Name = "####" |
560 | + | local frm = 0 |
561 | - | Services.ServerStorage.Name = "####" |
561 | + | |
562 | - | Services.StarterGui.Name = "####" |
562 | + | local toRemove = {} |
563 | - | Services.StarterPack.Name = "####" |
563 | + | |
564 | - | Services.StarterPlayer.Name = "####" |
564 | + | game:GetService("RunService").RenderStepped:connect(function() |
565 | - | Services.SoundService.Name = "####" |
565 | + | frm = frm + 1 |
566 | - | Services.Chat.Name = "####" |
566 | + | if char.Parent == game:GetService("Workspace").CurrentCamera then |
567 | - | Services.HttpService.Name = "HTTP NOT AVAILABLE" |
567 | + | |
568 | - | Services.InsertService.Name = "INSERTING NOT AVAILABLE" |
568 | + | e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55) |
569 | - | end) |
569 | + | e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55) |
570 | ||
571 | - | AddCmd("Fix Services","fservices","Fix the services. People can use them.",function(msg) |
571 | + | local delay = 0.9 |
572 | - | Services.Workspace.Name = "Workspace" |
572 | + | |
573 | - | Services.Lighting.Name = "Lighting" |
573 | + | for i,v in pairs(ghosts) do |
574 | - | Services.Players.Name = "Players" |
574 | + | for _,b in pairs(v:GetChildren()) do |
575 | - | Services.ReplicatedFirst.Name = "ReplicatedFirst" |
575 | + | if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then |
576 | - | Services.ReplicatedStorage.Name = "ReplicatedStorage" |
576 | + | b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay) |
577 | - | Services.ServerScriptService.Name = "ServerScriptService" |
577 | + | end |
578 | - | Services.ServerStorage.Name = "ServerStorage" |
578 | + | end |
579 | - | Services.StarterGui.Name = "StarterGui" |
579 | + | delay = delay - (0.5/(#ghosts+1)) |
580 | - | Services.StarterPack.Name = "StarterPack" |
580 | + | end |
581 | - | Services.StarterPlayer.Name = "StarterPlayer" |
581 | + | |
582 | - | Services.Chat.Name = "Chat" |
582 | + | --[[if math.floor(frm/8) == frm/8 then |
583 | - | Services.SoundService.Name = "SoundService" |
583 | + | local isub = 0 |
584 | - | Services.HttpService.Name = "HttpService" |
584 | + | for i,v in pairs(ghosts) do |
585 | - | Services.InsertService.Name = "InsertService" |
585 | + | if #v:GetChildren() < 6 then |
586 | - | end) |
586 | + | v:Destroy() |
587 | table.remove(ghosts,i - isub) | |
588 | - | AddCmd("Force Chat","fc","Force someone to chat something",function(plr,msg) |
588 | + | isub = isub + 1 |
589 | - | local Split = msg:find(Splitkey) |
589 | + | CreateGhost() |
590 | - | local PreSplit = msg:sub(1, Split - 1) |
590 | + | end |
591 | - | local Plrs = getPlayers(PreSplit) |
591 | + | end |
592 | - | local AfterSplit = msg:sub(tostring(Split + 1)) |
592 | + | end]] |
593 | - | for _,plr in pairs(Plrs) do |
593 | + | |
594 | - | FC(plr, AfterSplit) |
594 | + | |
595 | - | end |
595 | + | --Animation states |
596 | - | end) |
596 | + | |
597 | local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4) | |
598 | - | AddCmd("Y Axis Settings","axis:y","Set the Y axis CFrame",function(msg) |
598 | + | local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true) |
599 | - | Output("Click the Y axis you want.","Institutional white") |
599 | + | |
600 | - | Output("Straight","Lime green",function() Dismiss() Settings.Axis_Y = "Straight" end) |
600 | + | if state ~= "busy" then |
601 | - | Output("Waves","Cyan",function() Dismiss() Settings.Axis_Y = "On" end) |
601 | + | if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then |
602 | - | Output("None","Really red",function() Dismiss() Settings.Axis_Y = "Off" end) |
602 | + | state = "idle" |
603 | - | end) |
603 | + | elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then |
604 | state = "running" | |
605 | - | p.Chatted:connect(function(m) |
605 | + | --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then |
606 | - | for i,v in pairs(Cmds) do |
606 | + | state = "falling" |
607 | - | if v["Say"]..bet1 == m:sub(1, #v["Say"]+#bet1) then |
607 | + | elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then |
608 | - | v["Function"](getPlayers(m:sub(#v["Say"]+#bet1+1)), m:sub(#v["Say"]+#bet1+1)) |
608 | + | state = "jumping"]] |
609 | - | end |
609 | + | end |
610 | - | end |
610 | + | char.Humanoid.WalkSpeed = 32 |
611 | - | end) |
611 | + | char.Humanoid.JumpPower = 70 |
612 | end | |
613 | - | wait(1) |
613 | + | |
614 | - | Output('Welcome to Meltdown X1 Administration, '..p.Name..'!','Lime green') |
614 | + | --Actual animations |
615 | - | Output('The suffix is '..bet1,'Royal purple') |
615 | + | |
616 | - | Output('Show Commands','Cyan',function() ShowCommands() end) |
616 | + | if state == "idle" then |
617 | - | Output('Dismiss','Really red',function() Dismiss() end) |
617 | + | char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06) |
618 | char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06) | |
619 | - | return module |
619 | + | char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06) |
620 | char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06) | |
621 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06) | |
622 | char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06) | |
623 | elseif state == "running" then | |
624 | char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06) | |
625 | char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06) | |
626 | char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06) | |
627 | char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06) | |
628 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06) | |
629 | char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06) | |
630 | end | |
631 | end) | |
632 | ||
633 | char.Humanoid.Died:connect(function() | |
634 | toggle = false | |
635 | ||
636 | ClearGhosts() | |
637 | ||
638 | char.Parent = game.Workspace | |
639 | char.Parent = game:GetService("Workspace") | |
640 | char:FindFirstChild("ForceField"):Destroy() | |
641 | char:FindFirstChild("Head").Transparency = 0 | |
642 | char:FindFirstChild("Torso").Transparency = 0 | |
643 | char:FindFirstChild("Right Arm").Transparency = 0 | |
644 | char:FindFirstChild("Left Arm").Transparency = 0 | |
645 | char:FindFirstChild("Right Leg").Transparency = 0 | |
646 | char:FindFirstChild("Left Leg").Transparency = 0 | |
647 | for i,v in pairs(char:GetChildren()) do | |
648 | if v:IsA("Accessory") then | |
649 | v:FindFirstChild("Handle").Transparency = 0 | |
650 | end | |
651 | end | |
652 | for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end | |
653 | plr:LoadCharacter() | |
654 | end) | |
655 | ||
656 | local msgidGlob = 0 | |
657 | local state = true | |
658 | local font = "Arcade" | |
659 | local tcol = Color3.fromRGB(255,217,0) | |
660 | local tscol = Color3.fromRGB(0,0,0) | |
661 | local fsiz = 28 | |
662 | local tr = true | |
663 | local tsr = false | |
664 | local fade = 2 | |
665 | ||
666 | local p = Instance.new("Part",game.Workspace) | |
667 | p.Size = Vector3.new(0.2,0.2,0.2) | |
668 | p.Transparency = 1 | |
669 | p.Anchored = true | |
670 | p.CanCollide = false | |
671 | p.Name = "Msg" | |
672 | p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0) | |
673 | ||
674 | local r = 255 | |
675 | local b = 0 | |
676 | local g = 0 | |
677 | ||
678 | plr.Chatted:connect(function(c) | |
679 | msgidGlob = msgidGlob + 1 | |
680 | local curMsgId = msgidGlob | |
681 | if string.lower(c) == "!disable" then | |
682 | state = false | |
683 | elseif string.lower(c) == "!enable" then | |
684 | state = true | |
685 | elseif string.lower(string.sub(c,1,6)) == "!font " then | |
686 | local old = font | |
687 | font = string.sub(c,7,#c) or old | |
688 | elseif string.lower(string.sub(c,1,8)) == "!tcolor " then | |
689 | if string.lower(string.sub(c,9,#c)) == "rainbow" then | |
690 | tr = true | |
691 | else | |
692 | tr = false | |
693 | local old = tcol | |
694 | tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old | |
695 | end | |
696 | elseif string.lower(string.sub(c,1,9)) == "!tscolor " then | |
697 | if string.sub(c,10,#c) == "rainbow" then | |
698 | tsr = true | |
699 | else | |
700 | tsr = false | |
701 | local old = tscol | |
702 | tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old | |
703 | end | |
704 | elseif string.lower(string.sub(c,1,6)) == "!size " then | |
705 | local old = fsiz | |
706 | fsiz = string.sub(c,7,#c) or old | |
707 | elseif string.lower(string.sub(c,1,6)) == "!fade " then | |
708 | local old = fade | |
709 | fade = string.sub(c,7,#c) or old | |
710 | end | |
711 | if plr.Character and state == true then | |
712 | if plr.Character:FindFirstChild("Head") then | |
713 | for i,v in pairs(p:GetChildren()) do | |
714 | if v:IsA("BillboardGui") and v.Name == "J2CMSG" then | |
715 | v:Destroy() | |
716 | end | |
717 | end | |
718 | local bbgui = Instance.new("BillboardGui",p) | |
719 | bbgui.Name = "J2CMSG" | |
720 | bbgui.AlwaysOnTop = true | |
721 | bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0) | |
722 | bbgui.Size = UDim2.new(0.2,0,0.14,0) | |
723 | local tl = Instance.new("TextLabel",bbgui) | |
724 | tl.BackgroundTransparency = 1 | |
725 | tl.BorderSizePixel = 0 | |
726 | tl.Size = UDim2.new(1,0,10,0) | |
727 | tl.Position = UDim2.new(0,0,-5,0) | |
728 | tl.Font = font or "SciFi" | |
729 | tl.FontSize = "Size"..fsiz or "Size36" | |
730 | tl.TextColor3 = tcol | |
731 | tl.TextScaled = false | |
732 | tl.TextWrapped = false | |
733 | tl.TextStrokeColor3 = tscol | |
734 | tl.TextStrokeTransparency = 0 | |
735 | ||
736 | game:GetService("RunService").RenderStepped:connect(function() | |
737 | if tr then | |
738 | if tl.Parent ~= nil then | |
739 | tl.TextColor3 = Color3.fromRGB(r,g,b) | |
740 | end | |
741 | end | |
742 | end) | |
743 | ||
744 | for i=1,#c do | |
745 | if msgidGlob == curMsgId then | |
746 | tl.Text = string.sub(c,1,i) | |
747 | if string.sub(c,i,i) ~= " " then | |
748 | local s = Instance.new("Sound",p) | |
749 | s.SoundId = "rbxassetid://418252437" | |
750 | s.Volume = 1 | |
751 | s.Pitch = 1 | |
752 | s:Play() | |
753 | game.Debris:AddItem(s,2) | |
754 | end | |
755 | wait() | |
756 | end | |
757 | end | |
758 | wait(fade) | |
759 | if msgidGlob == curMsgId then | |
760 | for i=1,10 do | |
761 | if msgidGlob == curMsgId then | |
762 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
763 | tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1 | |
764 | tl.Position = tl.Position + UDim2.new(0,0,0,-3) | |
765 | wait() | |
766 | end | |
767 | end | |
768 | if msgidGlob == curMsgId then | |
769 | bbgui:Destroy() | |
770 | end | |
771 | end | |
772 | end | |
773 | end | |
774 | end) | |
775 | ||
776 | coroutine.resume(coroutine.create(function() | |
777 | while wait() do | |
778 | for i=0,255,10 do g = i wait() end | |
779 | for i=255,0,-10 do r = i wait() end | |
780 | for i=0,255,10 do b = i wait() end | |
781 | for i=255,0,-10 do g = i wait() end | |
782 | for i=0,255,10 do r = i wait() end | |
783 | for i=255,0,-10 do b = i wait() end | |
784 | end | |
785 | end)) | |
786 | ||
787 | game:GetService("RunService").RenderStepped:connect(function() | |
788 | if p.Parent ~= nil then | |
789 | p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16) | |
790 | else | |
791 | p = Instance.new("Part",game.Workspace) | |
792 | p.Size = Vector3.new(0.2,0.2,0.2) | |
793 | p.Transparency = 1 | |
794 | p.Anchored = true | |
795 | p.CanCollide = false | |
796 | p.Name = "Msg" | |
797 | p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0) | |
798 | end | |
799 | end) | |
800 | ||
801 | print("Ghost loaded! Time elapsed: "..tick() - time) |