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: Share your scripts here

Previous Thread :: Next Thread 
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 08:59 PM
Post any scripts you have here
Report Abuse
kevinreturns is not online. kevinreturns
Joined: 28 Oct 2008
Total Posts: 6615
06 Dec 2009 09:07 PM
print(tostring(Vector3.new(3,3,3)))
Report Abuse
ScriptMasterMatt is not online. ScriptMasterMatt
Joined: 01 Sep 2009
Total Posts: 1164
06 Dec 2009 09:09 PM
game.Workspace.YOURNAMEHERE.Humanoid.Health=0

game.Workspace.YOURNAMEHERE.Head:Remove()

game.Workspace.YOURNAMEHERE.Humanoid.WalkSpeed=100

~SMM~
Report Abuse
ScriptMasterMatt is not online. ScriptMasterMatt
Joined: 01 Sep 2009
Total Posts: 1164
06 Dec 2009 09:12 PM
game.Workspace.Base.CanCollide=false

game.Workspace.Base.CanCollide=true
Report Abuse
Nothing67 is not online. Nothing67
Joined: 24 Aug 2008
Total Posts: 2224
06 Dec 2009 09:13 PM
SMM, do you have any other commands that don't involve suicide? XD
Report Abuse
ScriptMasterMatt is not online. ScriptMasterMatt
Joined: 01 Sep 2009
Total Posts: 1164
06 Dec 2009 09:14 PM
lol
Report Abuse
ScriptMasterMatt is not online. ScriptMasterMatt
Joined: 01 Sep 2009
Total Posts: 1164
06 Dec 2009 09:15 PM
game.Workspace.YOURNAMEHERE.Torso:Remove()
Report Abuse
ScriptMasterMatt is not online. ScriptMasterMatt
Joined: 01 Sep 2009
Total Posts: 1164
06 Dec 2009 09:19 PM
Laser Hand Tool
--------------------------------

if script.Parent.className~="HopperBin" then
ma=Instance.new("HopperBin")
ma.Name="Laser "
--ma.Parent=game.Lighting
ma.Parent=game.Players.YOURNAMEHERE.Backpack
script.Parent=ma
end

local Selected = false
local Shoot = true
function Click(Target)
if(Target.Target.Parent:findFirstChild("Humanoid")~=nil)then
Target.Target.Parent.Humanoid.Health = 0
end
local P = Instance.new("Part")
P.Name = "Laser"
local Place0 = script.Parent.Parent.Parent.Character["Left Arm"].CFrame
P.formFactor = 0
P.Size = Vector3.new(1,1,(Place0.p - Target.Hit.p).magnitude)
P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
P.Parent = game.Workspace
P.Color = Color3.new(0,0,1)
P.Transparency = 0.5
P.Reflectance = 0.5
P.Anchored = true
P.CanCollide = false
local E = Instance.new("Explosion")
E.Position = Target.Hit.p
E.Parent = game.Workspace
for i = 1,10 do
P.Transparency = 0.5+(i*0.05)
P.Reflectance = i*0.05
wait(0.1)
end
P:Rremove()
end
function Select(Mouse)
local Arm = script.Parent.Parent.Parent.Character:findFirstChild("Left Arm")
if(Arm==nil)then
script.Parent:Remove()
script:Remove()
end
Selected = true
local Torso = script.Parent.Parent.Parent.Character:findFirstChild("Torso")
if(Torso==nil)then
script.Parent:Remove()
script:Remove()
end
local ArmWeld = Torso:findFirstChild("Left Shoulder")
if(ArmWeld~=nil)then
ArmWeld.Parent = nil
end
Mouse.Button1Down:connect(function()Click(Mouse)end)
Arm.Anchored = true
while Selected do
local Place0 = script.Parent.Parent.Parent.Character.Torso.CFrame
Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector
local Place1 = Place0 + ((Place0.p-Mouse.Hit.p).unit * -2)
Arm.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
wait()
end
Arm.Anchored = false
if(ArmWeld~=nil)then
ArmWeld.Parent = Torso
end
end
function Deselect()
Selected = false
end
script.Parent.Selected:connect(Select)
script.Parent.Deselected:connect(Deselect)
Report Abuse
gamerfreak101 is not online. gamerfreak101
Joined: 07 May 2008
Total Posts: 53
06 Dec 2009 09:21 PM
Reset Tool
__________________________________________________




local name = "gamerfreak101"
local player = nil
local p = Instance.new("HopperBin")
p.Name = "Reset Tool"
p.Parent = game.Players[name]
script.Parent = p

function PM(msg, length)
local h = Instance.new("Hint")
h.Parent = script.Parent.Parent.Parent
h.Text = msg
wait(length)
h:remove()
end

script.Parent.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()
if script.Parent.Parent.Parent.Character:findFirstChild("Humanoid") ~= nil and mouse.Target ~= nil then
script.Parent.Parent.Parent.Character:findFirstChild("Humanoid").Health = 0
end
end)
end)
Report Abuse
gamerfreak101 is not online. gamerfreak101
Joined: 07 May 2008
Total Posts: 53
06 Dec 2009 09:22 PM
--Make a large base plate



local pt = Instance.new("Part")
pt.BrickColor = BrickColor.new("Silver")
pt.Anchored = true
pt.CanCollide = true
pt.BottomSurface = "Weld"
pt.Parent = workspace
pt.Name = "OMG"
pt.Size = Vector3.new(1000, 1, 1000)
Report Abuse
gamerfreak101 is not online. gamerfreak101
Joined: 07 May 2008
Total Posts: 53
06 Dec 2009 09:23 PM
--make a spawn



local pt = Instance.new("SpawnLocation") -- Spawn
pt.BrickColor = BrickColor.new("Silver")
pt.Anchored = true
pt.CanCollide = true
pt.BottomSurface = "Weld"
pt.Parent = workspace
pt.Name = "Spawn Point"
pt.Size = Vector3.new(6, 1.2, 6)
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 09:26 PM
Make a tree

-------------------------------------------


local p = Instance.new("Model") -- Model
p.Parent = workspace
p.Name = "Tree"
local pt = Instance.new("Part") -- Branch
pt.BrickColor = BrickColor.new("Brown")
pt.Anchored = true
pt.Parent = p
pt.Name = "Logs"
pt.Size = Vector3.new(10, 100, 20)
pt.Position = Vector3.new(0, 0, 0)
local pt = Instance.new("Part") -- Branch
pt.BrickColor = BrickColor.new("Bright green")
pt.Anchored = true
pt.TopSurface = "Smooth"
pt.BottomSurface = "Smooth"
pt.Parent = p
pt.Name = "Leafs"
pt.Shape = "Ball"
pt.Size = Vector3.new(20, 20, 20)
pt.Position = Vector3.new(0, 0, 0)
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 09:27 PM
Fix the color of the base
-----------------------------

while true do
wait(0.1)
workspace.Base.BrickColor = BrickColor.new(23)
end
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 09:28 PM
Kill all scripts
------------------------------------

for _,c in pairs(game.Players:GetChildren()) do
if c.Character ~= nil and c.Character:findFirstChild("Humanoid") ~= nil then
c.Character:findFirstChild("Humanoid").Health = 0
end
end


------------------------------------
game.Workspace:BreakJoints()
Report Abuse
warmachine11 is not online. warmachine11
Joined: 21 Feb 2009
Total Posts: 106
06 Dec 2009 09:29 PM
Create a purple brick :)
------------------------------------

local p = Instance.new("Part")
p.BrickColor = BrickColor.new(104)
p.Parent = Workspace
p.Anchored = true
p.Size = Vector3.new(7, 1.2, 7)
Report Abuse
warmachine11 is not online. warmachine11
Joined: 21 Feb 2009
Total Posts: 106
06 Dec 2009 09:31 PM
Clean script
--------------------------------------

for _,c in pairs(workspace:GetChildren()) do
if c.className == "Part" and c.Name ~= "Part" and c.Name ~= "Base" then
c:remove()
end
end
Report Abuse
warmachine11 is not online. warmachine11
Joined: 21 Feb 2009
Total Posts: 106
06 Dec 2009 09:31 PM
Make the base trip out
---------------------------------------

workspace.Base.BrickColor = BrickColor.new(math.random(20, 30))
Report Abuse
warmachine11 is not online. warmachine11
Joined: 21 Feb 2009
Total Posts: 106
06 Dec 2009 09:32 PM
--Wierd Hedz!

for _,c in pairs(game.Players:GetChildren()) do
c.Character.Head.Mesh.Scale = Vector3.new(1.5, 1.5, 2.5)
end

-- normal hedz!

for _,c in pairs(game.Players:GetChildren()) do
c.Character.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
end
Report Abuse
warmachine11 is not online. warmachine11
Joined: 21 Feb 2009
Total Posts: 106
06 Dec 2009 09:33 PM
Create your own force field
-------------------------------------------------

local a = Instance.new("ForceField")
a.Parent = workspace.YOURNAMEHERE
Report Abuse
warmachine11 is not online. warmachine11
Joined: 21 Feb 2009
Total Posts: 106
06 Dec 2009 09:33 PM
Create a tornado off bricks
--------------------------------------------

local m = Instance.new("Model")
m.Parent = workspace
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(1, 1.2, 1)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(1, 1.2, 2)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(2, 1.2, 2)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(2, 1.2, 3)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(3, 1.2, 3)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(3, 1.2, 4)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(4, 1.2, 4)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(4, 1.2, 5)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(5, 1.2, 5)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(5, 1.2, 6)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(6, 1.2, 6)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(6, 1.2, 7)
local p = Instance.new("Part")
p.Parent = m
p.Anchored = true
p.Size = Vector3.new(7, 1.2, 7)
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 09:37 PM
Give your self a floating pad
-------------------------------------------

local name = "YOURNAMEHERE"

local p = Instance.new("Part")
p.Parent = workspace
p.Locked = true
p.BrickColor = BrickColor.new("White")
p.BrickColor = BrickColor.new(104)
p.Size = Vector3.new(8, 1.2, 8)
p.Anchored = true
local m = Instance.new("CylinderMesh")
m.Scale = Vector3.new(1, 0.5, 1)
m.Parent = p
while true do
p.CFrame = CFrame.new(game.Players:findFirstChild(name).Character.Torso.CFrame.x, game.Players:findFirstChild(name).Character.Torso.CFrame.y - 4, game.Players:findFirstChild(name).Character.Torso.CFrame.z)
wait()
end
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 09:39 PM
Axe
------------------------------------------

target = game.Players.YOURNAMEHERE
a = Instance.new("Part")
a.Name = "Handle"
a.Anchored = false
a.CanCollide = true
a.BrickColor = BrickColor.new("Black")
a.Position = Vector3.new(100,100,100)
a.formFactor = 0
a.size = Vector3.new(1,5,1)
a.Parent = game.Workspace

function onTouched1(hit)
local head = hit.Parent:findFirstChild("Head")
local huma = hit.Parent:findFirstChild("Humanoid")
local torso = hit.Parent:findFirstChild("Torso")
if head ~= nil and torso ~= nil and huma ~= nil and torso ~= nil then
huma.Health = huma.Health - 100
else

end
a.BrickColor = BrickColor.new("Black")
wait(1)
a.BrickColor = BrickColor.new("Neon orange") -- its cool
end -- closes the function...

a.Touched:connect(onTouched1)

local t = Instance.new("Tool") -- finality
t.Name = "Axe"
t.Parent = target.Character
a.Parent = t
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 09:40 PM
Invisibility Script
-------------------------------

c= game.Players:GetChildren()
for i= 1, #c do
p= c[i].Character:GetChildren()
for i= 1, #p do
if p[i].className == "Part" then
p[i].Transparency = 1
end
end
end
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 10:15 PM
Max Players and Minimum Players
-----------------------------------------
game.Workspace.Players.MaxPlayers=20
-----------------------------------------
game.Workspace.Players.MaxPlayers=6
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
06 Dec 2009 11:23 PM
game.Workspace.Base.Name=ROFL
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