|
| 27 Dec 2011 12:10 AM |
model = game.Workspace.Clawknife messageText = "Regenerating..."
message = Instance.new("Message") Message.Text = messageText backup = model:clone
while true do wait(03) message.Parent = game.Workspace model:remove()
wait(5)
model = backup:clone() model.Parent = game.Workspace model:MakeJoints() message.Parent = nil end
print("Weapon Giver ok!") function onTouched(part) p = game.Players:playerFromCharacter(part.Parent) if p == nil then return end gun = Script.Parent.Clawknife:clone() if p.Backpack:FindFirstChild("Clawknife")~= nil then return end gun.Parent = p.Backpack end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 27 Dec 2011 12:13 AM |
oh yah?
weld = script.Parent.Weld P = 100 e = 0.3 t = 0
function factorial(f) v = 1 for i = 1, f do v = v * i end return v end
function bessel(x, n) local besselout = 0 for i = 1, 20 do besselout = besselout + ((-1^i)/(factorial(i) * factorial(i + n)) * (0.5 * x)^(2 * i + n)) end return besselout end
periapsis = Vector3.new(P / 1 + e, 0, 0).magnitude MB = (2 * math.pi * (P/2)) / P EB = MB for i = 1, 20 do EB = EB + ((2/i) * bessel(i * e, i) * math.sin(i * MB)) end TB = 2 * math.atan(math.sqrt(1 + e / 1 - e) * math.tan(EB / 2)) rB = P / (1 + e * math.cos(TB)) apoapsis = Vector3.new(rB * math.cos(TB), 0, 0).magnitude
while true do waitTime = wait() t = t + waitTime if (t >= P) then t = t - P end M = (2 * math.pi * t) / P E = M for i = 1, 20 do E = E + ((2/i) * bessel(i * e, i) * math.sin(i * M)) end T = 2 * math.atan(math.sqrt(1 + e / 1 - e) * math.tan(E / 2)) r = P / (1 + e * math.cos(T)) weld.C0 = CFrame.new(r * math.cos(T) + (apoapsis - periapsis), 0, r * math.sin(T)) end |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
| |
|
NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
| |
|
NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
|
| 27 Dec 2011 12:19 AM |
Wait, that one is bad. Here's my best.
for i=1,1000 do print("beef") end |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 12:50 AM |
beat this - SonOfSevenless originaly made this but I added a lot.
--Feel free to edit this but if it crashes then it's not my fault. --Brandonhare
--Please leave the 4 above lines alone.
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name) msg = string.lower(msg)
if (msg == "day") then game.Lighting.TimeOfDay = "14:00:00" end
if (msg == "night") then game.Lighting.TimeOfDay = "00:00:00" end
if (msg == "normal") then
game.Lighting.TimeOfDay = "0:00:00" game.Lighting.TopAmbientV9 = Color3.new(215,214,223) game.Lighting.SpotLightV9 = Color3.new(197,197,197) game.Lighting.BottomAmbientV9 = Color3.new(122,140,120) game.Lighting.TimeOfDay = "14:00:00"
end
if (msg == "neon") then
game.Lighting.TopAmbientV9 = Color3.new(0,255,255) game.Lighting.SpotLightV9 = Color3.new(0,255,255) game.Lighting.BottomAmbientV9 = Color3.new(0,255,255)
end
if (msg == "red") then
game.Lighting.TopAmbientV9 = Color3.new(255,0,0) game.Lighting.SpotLightV9 = Color3.new(255,0,0) game.Lighting.BottomAmbientV9 = Color3.new(255,0,0)
end
if (msg == "yellow") then
game.Lighting.TopAmbientV9 = Color3.new(255,255,0) game.Lighting.SpotLightV9 = Color3.new(255,255,0) game.Lighting.BottomAmbientV9 = Color3.new(255,255,0)
end
if (msg == "green") then --These colour changes are thanks to clockwork's Avada kadavra! tool. I just changes the numbers =) game.Lighting.TopAmbientV9 = Color3.new(0,255,0) game.Lighting.SpotLightV9 = Color3.new(0,255,0) game.Lighting.BottomAmbientV9 = Color3.new(0,255,0)
end
if (msg == "blue") then
game.Lighting.TopAmbientV9 = Color3.new(0,0,255) game.Lighting.SpotLightV9 = Color3.new(0,0,255) game.Lighting.BottomAmbientV9 = Color3.new(0,0,255)
end
if (msg == "black") then
game.Lighting.TimeOfDay = "00:00:00" game.Lighting.TopAmbientV9 = Color3.new(0,0,0) game.Lighting.SpotLightV9 = Color3.new(0,0,0) game.Lighting.BottomAmbientV9 = Color3.new(0,0,0)
end
if (msg == "white") then
game.Lighting.TimeOfDay = "00:00:00" game.Lighting.TopAmbientV9 = Color3.new(255,255,255) game.Lighting.SpotLightV9 = Color3.new(255,255,255) game.Lighting.BottomAmbientV9 = Color3.new(255,255,255)
end
-- Below is the admin commands. if (source ~= "brandonhare") then return end --Change brandonhare to your name.
if (msg == "die") then --Change this if you want. local m = Instance.new("Message") m.Text = "EVERYONE IS GONNA DIE!!!!!!!!!!"--Change this if you want. m.Parent = game.Workspace wait(4) local c = game.Players:children() for i=1,#c do if (string.lower(c[i].Name) ~= "brandonhare") then if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then c[i].Character.Humanoid.Health = 0 end end end wait(2) m.Parent = nil end
if (msg == "peoplewhite") then local c = game.Players:children() for i=1,#c do if (string.lower(c[i].Name) ~= "brandonhare") then --Change brandonhare to your name. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then c[i].Character:findFirstChild("Head").BrickColor = BrickColor.new(1) c[i].Character:findFirstChild("Torso").BrickColor = BrickColor.new(1) c[i].Character:findFirstChild("Left Arm").BrickColor = BrickColor.new(1) c[i].Character:findFirstChild("Right Arm").BrickColor = BrickColor.new(1) c[i].Character:findFirstChild("Left Leg").BrickColor = BrickColor.new(1) c[i].Character:findFirstChild("Right Leg").BrickColor = BrickColor.new(1)
end end end end
if (msg == "freeze") then local c = game.Players:children() for i=1,#c do if (string.lower(c[i].Name) ~= "brandonhare") then --Change brandonhare to your name. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then c[i].Character:findFirstChild("Torso").Anchored = true
end end end end
if (msg == "thaw") then local c = game.Players:children() for i=1,#c do if (string.lower(c[i].Name) ~= "brandonhare") then --Change brandonhare to your name. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then c[i].Character:findFirstChild("Torso").Anchored = false
end end end end
if (msg == "savagebeating") then --You may want to change this. local m = Instance.new("Message") m.Text = "OH NO! INVISIBLE MONKEYS ARE GOING TO HURT YOU!!!!"--Change this. It's random. m.Parent = game.Workspace wait(4) local c = game.Players:children() for i=1,#c do if (string.lower(c[i].Name) ~= "brandonhare") then --Change brandonhare to your name. if (c[i].Character ~= nil and c[i].Character.Humanoid ~= nil) then c[i].Character.Humanoid.Health = 1 end end end wait(2) m.Parent = nil end
if (msg == "zeekyboogydoog") then--Change this to boom! or somthing if you want too. local m = Instance.new("Message") m.Text = "RANDOM PEOPLE ARE SAYING ZEEKY BOOGY DOOG!!!!!!!"--You may want to change this m.Parent = game.Workspace wait(4) for i=1,100 do local x = math.random(17.5,76.5) local y = math.random(0,41.6) local z = math.random(-115,101)
local r = math.random(6,16)
local ex = Instance.new("Explosion") ex.Position = Vector3.new(x,y,z) ex.BlastRadius = r ex.Parent = game.Workspace wait(.05) end wait(2) m.Parent = nil end
if (msg == "brandonwantbigboom") then local m = Instance.new("Message") m.Text = "THIS LEVEL HAS 4 SECONDS TO LIVE!!!! You may touch the teapot after this." m.Parent = game.Workspace wait(4)
local ex = Instance.new("Explosion") ex.Position = Vector3.new(29.5,0.2,-7)--Change these numbers or the explosion might be somewhere unuseful. ex.BlastRadius = 300 ex.Parent = game.Workspace m.Parent = nil end
if (msg == "listen") then
local m = Instance.new("Message") m.Text = "EVERYONE STOP TALKING AND LISTEN TO BRANDONHARE!!!!!!!!" m.Parent = game.Workspace --Change BRANDONHARE (above) to your name. game.Lighting.TopAmbientV9 = Color3.new(255,0,0) game.Lighting.SpotLightV9 = Color3.new(255,0,0) game.Lighting.BottomAmbientV9 = Color3.new(255,0,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,255,0) game.Lighting.SpotLightV9 = Color3.new(255,255,0) game.Lighting.BottomAmbientV9 = Color3.new(255,255,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,0,0) game.Lighting.SpotLightV9 = Color3.new(255,0,0) game.Lighting.BottomAmbientV9 = Color3.new(255,0,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,255,0) game.Lighting.SpotLightV9 = Color3.new(255,255,0) game.Lighting.BottomAmbientV9 = Color3.new(255,255,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,0,0) game.Lighting.SpotLightV9 = Color3.new(255,0,0) game.Lighting.BottomAmbientV9 = Color3.new(255,0,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,255,0) game.Lighting.SpotLightV9 = Color3.new(255,255,0) game.Lighting.BottomAmbientV9 = Color3.new(255,255,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,0,0) game.Lighting.SpotLightV9 = Color3.new(255,0,0) game.Lighting.BottomAmbientV9 = Color3.new(255,0,0) wait(0.5) game.Lighting.TopAmbientV9 = Color3.new(255,255,0) game.Lighting.SpotLightV9 = Color3.new(255,255,0) game.Lighting.BottomAmbientV9 = Color3.new(255,255,0) wait(0.5) game.Lighting.TimeOfDay = "0:00:00" game.Lighting.TopAmbientV9 = Color3.new(215,214,223) game.Lighting.SpotLightV9 = Color3.new(197,197,197) game.Lighting.BottomAmbientV9 = Color3.new(122,140,120) game.Lighting.TimeOfDay = "14:00:00" m.Parent = nil --Big eh? end
--Add more commands here. (Just copy and paste an existing one)
end
function onPlayerEntered(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end
game.Players.ChildAdded:connect(onPlayerEntered)
|
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 27 Dec 2011 01:08 AM |
game:GetService("InsertService"):LoadAsset(44709620):GetChildren()[1].Parent = workspace["1waffle1"] My free model script is better than your free model script. |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 27 Dec 2011 01:15 AM |
| That's not advanced, that's just long. |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 27 Dec 2011 01:20 AM |
| while true do end --this is a way to go around _crash |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 01:25 AM |
while not false do end -- Wutnao?
"I WILL GIVE YOU BACON." - Deadmau5 ~Scarfacial |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
| |
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
|
| 27 Dec 2011 08:01 AM |
JJJJ44444alt fail.
look at first lines of code
SonOfSevenless originaly made this but I added a lot. --Feel free to edit this but if it crashes then it's not my fault. --Brandonhare
|
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 10:10 AM |
>> sys.exit(1)
My best script. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 10:13 AM |
wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) wait(0.1) game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1) --Add 10 lines for every second of changing time of day, make sure to add enough if you think ur servers will be up for long times k? |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 27 Dec 2011 01:42 PM |
"if (source ~= "brandonhare") then return end --Change brandonhare to your name."
So i herd u liek free modalz?
---------- ~ pwnedu46, the unicorn ~ |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 27 Dec 2011 04:14 PM |
*Attempts to post script*
"Your post is too long"
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO! |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 27 Dec 2011 04:37 PM |
instance.new.gun.gun gun.1shotkill gun.me
~Atheist, dutch, canadian, programmer, "markuper" |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 27 Dec 2011 04:56 PM |
My most elegant recent snippets:
repeat until UnfoldAnim.KeyframeReached:wait() == 'complete'
from the space-sentry, and:
function clamp0(n) return (n > 0) and n or 0 end function MinDistToPart(part, point) local a = part.CFrame:toObjectSpace(point) local b = part.Size/2 return math.sqrt(clamp0(math.abs(a.x)-b.x)^2 + clamp0(math.abs(a.y)-b.y)^2 + clamp0(math.abs(a.z)-b.z)^2) end
From the snowman gun.
|
|
|
| Report Abuse |
|
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
| |
|
|
| 27 Dec 2011 08:18 PM |
Here's mine:
local TROLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 08:25 PM |
@xLEGOx
What? You make gear for ROBLOX?
Does this mean we will finally get quality gear that isn't full of unreadable code? :O |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 10:26 PM |
while Scriptishish do end epicness()
Feel free to use it, it will make your place awesome. Trust me, I'm nice.
|
|
|
| Report Abuse |
|
|
|
| 27 Dec 2011 10:31 PM |
| im guessing stravant is the Mod of this forum. |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 28 Dec 2011 10:41 AM |
"What? You make gear for ROBLOX? Does this mean we will finally get quality gear that isn't full of unreadable code? :O"
Yes. Christmas Katana, Snowman Gun, and the Space Sentry are my most recent 3 since I started at it again. The first two are written very readably if you want to take a look at them... the space sentry is a horrible mess because I needed some giant hacks to make the animations work right for an NPC humanoid. Back in the day I made the connect-4, paper-plane and a couple others too. |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 10:47 AM |
-- TROLOLOLO, OOLOLOLO -- TROLLING -- BE -- TO -- SEASON -- THE -- TIS -- read the above lines backwards |
|
|
| Report Abuse |
|
|