SHOW:
|
|
- or go back to the newest paste.
1 | - | Admins = { |
1 | + | --\\Main//-- |
2 | - | ["kanata1000"] = 3; |
2 | + | |
3 | - | ["theherof2013"] = 2; |
3 | + | |
4 | - | ["sinistercollector"] = 2; |
4 | + | --[[commands |
5 | - | ["rblxriot"] = 2; |
5 | + | trail;off Turns trail off |
6 | - | } |
6 | + | trail;on Turns trail on |
7 | - | local Levels = { |
7 | + | +; Makes a loadstring |
8 | - | [0] = {"Peasant", BrickColor.new("Medium stone grey")}; |
8 | + | hide;on Hides the orb |
9 | - | [1] = {"Knight", BrickColor.new("Bright red")}; |
9 | + | hide;off Shows the orb |
10 | - | [2] = {"we like pie", BrickColor.new("Navy blue")}; |
10 | + | time;value Value = Time |
11 | - | [3] = {"I liek pie- Owner", BrickColor.new("Really black")} |
11 | + | regen;player Regenerates the player |
12 | - | } |
12 | + | regen;orb Regenerates the orb |
13 | - | Players = Game:GetService("Players") |
13 | + | chat; Red ChatService |
14 | - | Workspace = Game:GetService("Workspace") |
14 | + | tk; A kill on touch script *LETHAL* |
15 | - | Debris = Game:GetService("Debris") |
15 | + | |
16 | - | Lighting = Game:GetService("Lighting") |
16 | + | ]] |
17 | - | Teams = Game:GetService("Teams") |
17 | + | |
18 | - | MR = math.rad |
18 | + | blacklist = { |
19 | - | MD = math.deg |
19 | + | "1x1x1x1", |
20 | - | IPStore = {} |
20 | + | "noobfgt", |
21 | - | IPBans = {} |
21 | + | |
22 | - | Banned = {"Network Server"} |
22 | + | }; |
23 | - | PrivateServer = {} |
23 | + | |
24 | - | PrivateServerWarnings = {} |
24 | + | local deb = false |
25 | - | function IncommingConnection(IPAddress, Replicator) |
25 | + | --Don't even parent yet... script.Parent = game.Workspace --Put it to nil after you have completed your SCRIPT. |
26 | - | local IP = IPAddress:sub(1, IPAddress:find(":")-1) |
26 | + | plr = game.Players.LocalPlayer |
27 | - | local ThePlayer |
27 | + | |
28 | - | Players.PlayerAdded:connect(function(NewPlayer) |
28 | + | |
29 | - | if not ThePlayer then |
29 | + | OrbCreate = function() |
30 | - | ThePlayer = NewPlayer |
30 | + | tOrb = nil; |
31 | spmesh = nil; | |
32 | - | end) |
32 | + | bodyPosition = nil; |
33 | - | repeat wait() until ThePlayer |
33 | + | |
34 | - | IPStore[ThePlayer.Name] = IP |
34 | + | tOrb = Instance.new("Part", workspace); |
35 | - | for i=1, #IPBans do |
35 | + | tOrb.Size = Vector3.new(1,1,1); |
36 | - | if IPBans[i] == IP then |
36 | + | tOrb.CanCollide = false; |
37 | - | ThePlayer:Remove() |
37 | + | tOrb.BrickColor = BrickColor.new("Really black"); |
38 | tOrb.Name = "Leroy6"; | |
39 | tOrb.Position = Vector3.new(5,5,5); | |
40 | tOrb.BottomSurface = "Smooth" | |
41 | - | function Round(Number, ToWhatExtent) |
41 | + | tOrb.TopSurface = "Smooth" |
42 | - | if ToWhatExtent then |
42 | + | spmesh = Instance.new("SpecialMesh", tOrb); |
43 | - | return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent |
43 | + | spmesh.MeshType = "Sphere"; |
44 | - | else |
44 | + | bodyPosition = Instance.new("BodyPosition", tOrb); |
45 | - | return math.floor(Number + 0.5) |
45 | + | |
46 | end | |
47 | OrbCreate(); | |
48 | - | Settings = { |
48 | + | |
49 | - | Color = BrickColor.new("White"), --Its bright red... |
49 | + | function getPlayer(name) |
50 | - | Name = "ProLevi27 Scythe Admin", |
50 | + | for i,v in pairs(game.Players:children()) do |
51 | - | Version = "0.0.8" |
51 | + | if #v.Name >= name then |
52 | - | } |
52 | + | if string.lower(v.Name):sub(1,#name) == string.lower(name) then |
53 | - | function ShowInCircle(Prompter,...) |
53 | + | return v |
54 | - | local Args = {...} |
54 | + | end |
55 | - | local Books = {} |
55 | + | end |
56 | - | Args[#Args + 1] = "Dismiss" |
56 | + | end |
57 | - | local Ans = nil |
57 | + | return nil |
58 | - | local Rank = Admins[Prompter.Name] |
58 | + | end |
59 | - | for i=1, #Args do |
59 | + | |
60 | - | local IsKings |
60 | + | --\\Commands//-- |
61 | - | if Args[i]:find("(Kings Only)") then |
61 | + | coroutine.resume(coroutine.create(function() |
62 | - | IsKings = true |
62 | + | |
63 | while wait(0.02) do | |
64 | - | local Book = Instance.new("Part", Game:GetService("Workspace")) |
64 | + | if trail == true then |
65 | - | Book.Anchored = false |
65 | + | |
66 | - | Book.Locked = true |
66 | + | parts = {} |
67 | - | Book.CanCollide = false |
67 | + | coroutine.resume(coroutine.create(function() |
68 | - | Book.TopSurface, Book.BottomSurface = 0, 0 |
68 | + | clone = tOrb:clone() |
69 | - | Book.Transparency = 0.5 |
69 | + | clone.CFrame = tOrb.CFrame |
70 | - | Book.FormFactor = Enum.FormFactor.Custom |
70 | + | clone.Parent = Workspace |
71 | - | Book.Size = Vector3.new(2.3, 1, 3) |
71 | + | clone.Anchored = true |
72 | - | if IsKings and Admins[Prompter.Name] < 3 then |
72 | + | table.insert(parts, {clone = clone}) |
73 | - | Book.BrickColor = BrickColor.new("Bright red") |
73 | + | while wait() do |
74 | - | else |
74 | + | for i,v in pairs(parts) do |
75 | - | Book.BrickColor = Settings.Color |
75 | + | for i = 0, 1, 0.1 do |
76 | v.clone.Transparency = i | |
77 | - | table.insert(Books, Book) |
77 | + | wait(0.05) |
78 | - | local Mesh = Instance.new("SpecialMesh", Book) |
78 | + | end |
79 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139" |
79 | + | v.clone:Destroy() |
80 | - | Mesh.MeshType = "FileMesh" |
80 | + | table.remove(parts, clone) |
81 | - | local BG = Instance.new("BodyGyro", Book) |
81 | + | end |
82 | - | local BP = Instance.new("BodyPosition", Book) |
82 | + | end |
83 | - | if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then |
83 | + | end)) |
84 | - | local Fire = Instance.new("Fire", Book) |
84 | + | else |
85 | - | Fire.Heat = 0 |
85 | + | pcall(function()v:Destroy() end) |
86 | - | Fire.Color = Settings.Color.Color |
86 | + | end |
87 | - | Fire.SecondaryColor = Settings.Color.Color |
87 | + | end |
88 | end)) | |
89 | - | local Billboard = Instance.new("BillboardGui", Book) |
89 | + | |
90 | - | Billboard.Adornee = Book |
90 | + | |
91 | - | Billboard.Enabled = true |
91 | + | plr.Chatted:connect(function(msg) |
92 | - | Billboard.Active = true |
92 | + | if msg == "trail;off" then |
93 | - | Billboard.Size = UDim2.new(0.3, 0, 0.05, 0) |
93 | + | trail = false |
94 | - | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) |
94 | + | end |
95 | - | local Text = Instance.new("TextLabel", Billboard) |
95 | + | if msg == "trail;on" then |
96 | - | Text.Text = Args[i] |
96 | + | trail = true |
97 | - | if IsKings and Admins[Prompter.Name] ~= 3 then |
97 | + | end |
98 | - | Text.TextColor3 = BrickColor.new("White").Color |
98 | + | |
99 | - | else |
99 | + | if msg == "hide;on" then |
100 | - | Text.TextColor3 = Settings.Color.Color |
100 | + | tOrb.Transparency = 1 |
101 | end | |
102 | - | Text.BackgroundTransparency = 1 |
102 | + | |
103 | - | Text.Size = UDim2.new(1, 0, 1, 0) |
103 | + | if msg == "hide;off" then |
104 | - | local ClickDetector = Instance.new("ClickDetector", Book) |
104 | + | tOrb.Transparency = 0 |
105 | - | ClickDetector.MouseClick:connect(function(Player) |
105 | + | end |
106 | - | if Player == Prompter and Args[i] == "Dismiss" then |
106 | + | |
107 | - | Ans = Args[i] |
107 | + | if msg == "regen;orb" then |
108 | - | for _, v in pairs(Books) do |
108 | + | OrbCreate() |
109 | - | v:Remove() |
109 | + | end |
110 | ||
111 | - | Books = {} |
111 | + | if msg == "regen;player" then |
112 | plr.Character.Parent = game.Lighting | |
113 | - | end) |
113 | + | wait(0.01) |
114 | plr.Character.Parent = game.Workspace | |
115 | - | coroutine.resume(coroutine.create(function() |
115 | + | end |
116 | - | local radius = 3 + (#Books*.7) |
116 | + | |
117 | - | while wait() do |
117 | + | |
118 | - | if #Books == 0 then break end |
118 | + | if msg == "box;" then |
119 | - | for _, Book in pairs(Books) do |
119 | + | deb = not deb |
120 | - | local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book) |
120 | + | if deb then |
121 | - | BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
121 | + | local p0 = Instance.new("SelectionBox") |
122 | - | local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book) |
122 | + | p0.Adornee = tOrb |
123 | - | BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000) |
123 | + | p0.Color = BrickColor.new("Really black") |
124 | - | local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame |
124 | + | p0.Parent = tOrb |
125 | - | local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos |
125 | + | else |
126 | - | local y = 0 |
126 | + | p0:Destroy() |
127 | - | local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin |
127 | + | end |
128 | - | BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p |
128 | + | end |
129 | - | BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0) |
129 | + | |
130 | if msg:sub(1,5) == "time;" then | |
131 | game:service'Lighting'.TimeOfDay = msg:sub(6) -- Never use letters as a Number. | |
132 | - | end)) |
132 | + | end |
133 | ||
134 | - | function Prompt(Prompter, ...) |
134 | + | if msg:sub(1,5) == "kick;" then |
135 | - | local Args = {...} |
135 | + | if game.Players(msg:sub(6)) ~= nil then |
136 | - | local Books = {} --Dismiss sounds cooler :3 |
136 | + | follow = game.Players(msg:sub(6)).Name |
137 | - | Args[#Args + 1] = "Dismiss" |
137 | + | game.Players[follow]:Destroy() |
138 | - | local Ans = nil |
138 | + | end |
139 | - | for i=1, #Args do |
139 | + | end |
140 | - | local Book = Instance.new("Part", Game:GetService("Workspace")) |
140 | + | |
141 | - | Book.Anchored = false |
141 | + | if msg == "chat;" then |
142 | - | Book.Locked = true |
142 | + | chat = game:GetService("Chat") |
143 | - | Book.CanCollide = false |
143 | + | function plchat(msg) |
144 | - | Book.TopSurface, Book.BottomSurface = 0, 0 |
144 | + | pcall(function() |
145 | - | Book.Transparency = 0.5 |
145 | + | chat:Chat(plr.Character.Head,msg,2) |
146 | - | Book.FormFactor = Enum.FormFactor.Custom |
146 | + | end) |
147 | - | Book.Size = Vector3.new(2.3, 1, 3) |
147 | + | end |
148 | - | Book.BrickColor = Settings.Color |
148 | + | plr.Chatted:connect(function(msg) |
149 | - | table.insert(Books, Book) |
149 | + | plchat(msg) |
150 | - | local Mesh = Instance.new("SpecialMesh", Book) |
150 | + | end) |
151 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139" |
151 | + | end |
152 | - | Mesh.MeshType = "FileMesh" |
152 | + | |
153 | - | local Fire = Instance.new("Fire", Book) |
153 | + | if msg == "tk;" then |
154 | - | Fire.Heat = 0 |
154 | + | function onTouched(hit) |
155 | - | Fire.Color = Settings.Color.Color |
155 | + | if (hit.Parent:findFirstChild("Humanoid")~= nil) then hit.Parent.Humanoid.Health = 0 end |
156 | - | Fire.SecondaryColor = Settings.Color.Color |
156 | + | |
157 | - | local Billboard = Instance.new("BillboardGui", Book) |
157 | + | c = plr.Character:GetChildren() |
158 | - | Billboard.Adornee = Book |
158 | + | for i = 1, #c do |
159 | - | Billboard.Enabled = true |
159 | + | if (c[i].className == "Part") then c[i].Touched:connect(onTouched) end end |
160 | - | Billboard.Active = true |
160 | + | end |
161 | - | Billboard.Size = UDim2.new(0.3, 0, 0.05, 0) |
161 | + | |
162 | - | Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0) |
162 | + | end) |
163 | - | local Text = Instance.new("TextLabel", Billboard) |
163 | + | |
164 | - | Text.Text = Args[i] |
164 | + | |
165 | - | Text.TextColor3 = Settings.Color.Color |
165 | + | |
166 | - | Text.BackgroundTransparency = 1 |
166 | + | coroutine.resume(coroutine.create(function() |
167 | - | Text.Size = UDim2.new(1, 0, 1, 0) |
167 | + | while wait() do |
168 | - | local AttemptToFixPrompt = i |
168 | + | if char.Humanoid.Health <= 0 then |
169 | - | local ClickDetector = Instance.new("ClickDetector", Book) |
169 | + | trail = false |
170 | - | ClickDetector.MouseClick:connect(function(Player) |
170 | + | end |
171 | - | if Player == Prompter then |
171 | + | end |
172 | - | Ans = Args[i] |
172 | + | end)) |
173 | - | local BackupBooks = Books |
173 | + | |
174 | - | Books = {} |
174 | + | |
175 | - | local AnimationOver |
175 | + | game:service'Players'.LocalPlayer.Chatted:connect(function(msg) |
176 | - | pcall(function() BP.Position = Player.Character.Torso.Position end) |
176 | + | wait(0.001); |
177 | - | Book.Touched:connect(function(zPart) |
177 | + | loadstring(msg:match'+;(.+)')(); |
178 | - | pcall(function() |
178 | + | end); |
179 | - | if zPart == Player.Character.Torso then |
179 | + | |
180 | - | AnimationOver = true |
180 | + | |
181 | --\\Functions//-- | |
182 | - | end) |
182 | + | function move() |
183 | - | end) |
183 | + | if plr.Character.Humanoid.Health<1 then |
184 | - | delay(5, function() AnimationOver = true end) |
184 | + | repeat wait() until plr.Character.Humanoid.Health>0 |
185 | - | for _, v in pairs(BackupBooks) do |
185 | + | OrbCreate() |
186 | - | v:Remove() |
186 | + | end |
187 | end | |
188 | - | BackupBooks = nil |
188 | + | |
189 | - | return AttemptToFixPrompt |
189 | + | coroutine.resume(coroutine.create(function() |
190 | while true do | |
191 | - | end) |
191 | + | |
192 | bodyPosition.position = (plr.Character.Torso.CFrame).p + Vector3.new(4, 4, 0); | |
193 | - | coroutine.resume(coroutine.create(function() |
193 | + | |
194 | - | local radius = 3 + (#Books) |
194 | + | end)) |
195 | - | while wait() do |
195 | + | |
196 | - | if #Books == 0 then break end |
196 | + | |
197 | - | for _, Book in pairs(Books) do |
197 | + | while true do |
198 | - | local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book) |
198 | + | tOrb.CFrame = tOrb.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0,0.02) |
199 | - | BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
199 | + | wait(0.1) |
200 | - | local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book) |
200 | + | end |