generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Quick Scripts

Previous Thread :: Next Thread 
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
18 Aug 2009 04:44 PM
Just type out a few quick scripts for fun, and post them here!


msg = "It can do anything, it's just fun. :D"
m = Instance.new("Message")
m.Parent = workspace
m.Text = ""
while true do
m.Text = ""
msg = string.reverse(msg)
for i = 1, #msg do
m.Text = m.Text ..string.sub(msg, i, i)
wait(0.1)
end
wait(1)
end



:D
Report Abuse
HadesDude is not online. HadesDude
Joined: 16 Feb 2009
Total Posts: 11982
18 Aug 2009 04:47 PM
vip = game.Players.YOURNAMEHERE

function OC(msg)

if (string.sub(msg,1,5) == "kill/") then
a = string.sub(msg,6)
game.Players[a].Character:BreakJoints()
end
end

vip.Chatted:connect(OC)
Report Abuse
HadesDude is not online. HadesDude
Joined: 16 Feb 2009
Total Posts: 11982
18 Aug 2009 04:50 PM
have fun >:D
Report Abuse
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
18 Aug 2009 04:53 PM
while true do
wait(0.1)
m=Instance.new("Message")
m.Parent = workspace
minigames=game.Lighting.Minigames:GetChildren()
minigame=minigames[math.random(1, #minigames)]
mini=minigame:clone()
mini.Parent=workspace
m.Text = "Minigame is " .. mini.Name
wait(2)
players=game.Players:GetChildren()
for i = 1, #players do
poss = mini:GetChildren()
pos = poss[math.random(1, #poss)]
players[i].Character.Torso.CFrame = CFrame.new(Vector3.new(pos.Position.x, pos.Position.y+2, pos.Position.z))
wait(3)
m.Text="Play"
wait(2)
m:remove()
wait(120)
mini:remove()
players[i].Character.Torso:remove()
m=Instance.new("Message")
m.Parent = workspace
m.Text = "Take a break"
wait(3)
m:remove()
wait(30)
end
end




Yes that is a minigame script I whipped up in 4 minutes.
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
18 Aug 2009 04:57 PM
Pyrimid Maker:


size = 100
for i = 0, size / 2 do
p = Instance.new("Part")
p.Parent = workspace
p.Anchored = true
p.BrickColor = BrickColor.new("Bright yellow")
p.Size = Vector3.new(size-i*2, 0, size-i*2)
p.Position = Vector3.new(0, 0, 0)
end
Report Abuse
KingGhost is not online. KingGhost
Joined: 07 Sep 2007
Total Posts: 13241
18 Aug 2009 04:59 PM
somethign random

ran = math.random(50,100)
for i = 0, ran / 2 do
b = Instance.new("Part")
b.Parent = workspace
b.Anchored = true
b.BrickColor = BrickColor.new(math.random(1,200)
p.Size = Vector3.new(ran*3,0,rand-4*10)
p.Position = Vector3.new(0, 0, 0)
end
Report Abuse
KingGhost is not online. KingGhost
Joined: 07 Sep 2007
Total Posts: 13241
18 Aug 2009 05:08 PM
I ment this lol

for i = 1,math.random(1,20) do
b = Instance.new("Part")
b.Anchored = true
b.Parent = workspace
b.CFrame = CFrame.fromEulerAnglesXYZ(math.random(1,50)+math.pi/250,1,math.ceil(16)*2+math.random(1,40))
wait(.3)
end
Report Abuse
totaka1 is not online. totaka1
Joined: 26 Apr 2009
Total Posts: 716
18 Aug 2009 05:18 PM
name = NAME

s = Instance.new("Seat")
s.Parent = game.Workspace
s.CFrame = game.Players[name]
w = Instance.new("Weld")
w.Part0 = game.Players[name].Character.Torso
w.Part1 = s
w.Parent = w.Part0



hope it works, just whipped it up... xD
Report Abuse
totaka1 is not online. totaka1
Joined: 26 Apr 2009
Total Posts: 716
18 Aug 2009 05:19 PM
oops, forgot somethin...



s = Instance.new("Seat")
s.Parent = game.Workspace
s.CFrame = game.Players[name].Character.Torso.CFrame
w = Instance.new("Weld")
w.Part0 = game.Players[name].Character.Torso
w.Part1 = s
w.Parent = w.Part0
Report Abuse
Molt is not online. Molt
Joined: 24 Mar 2009
Total Posts: 2329
18 Aug 2009 05:24 PM
print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value)



-- ROBLOX scripter hackers, see what you can do with this:
-- game:GetService("BadgeService"):UserHasBadge(userid, badgeid)


function OnTouch(part)
if (part.Parent:FindFirstChild("Humanoid") ~= nil) then
local p = game.Players:GetPlayerFromCharacter(part.Parent)
if (p ~= nil) then
if p.leaderstats.KO.Value == 50 then
print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
local b = game:GetService("BadgeService")
b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
end
end
end

script.Parent.Touched:connect(OnTouch)


Not Positive That Will Work Yet
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
18 Aug 2009 05:48 PM
function onTouch(hit)
if hit.Parent~=nil then
if hit.Parent:findFirstChild("Torso")~=nil then
mag = math.abs((script.Parent.Position-hit.Parent.Torso.Position).magnitude)
while true do
if math.abs((script.Parent.Position-hit.Parent.Torso.Position).magnitude) <= mag then
print "still touching me :D"
else
print "you stopped touching me T_T"
break
end
wait(1)
end
end
end
end
script.Parent.Touched:connect(onTouch)
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:03 PM
anthill
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:04 PM
subtraction
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:05 PM
Dirt
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:06 PM
THISS ISSS SPARTA!!!
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:06 PM
me
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:07 PM
9001
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:08 PM
baseplate
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:08 PM
lalala
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:09 PM
words
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:10 PM
halloween
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
26 Apr 2014 05:10 PM
Yes we get it, you bumped an old thread.
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:10 PM
bump bump bump bump bump bump bum...more
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:11 PM
bump!
Report Abuse
Numbering is not online. Numbering
Joined: 12 Feb 2012
Total Posts: 11108
26 Apr 2014 05:12 PM
8
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image