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 some scripts!

Previous Thread :: Next Thread 
awsomescauce is not online. awsomescauce
Joined: 05 Mar 2012
Total Posts: 203
24 Mar 2012 11:43 AM
heres my script:
part = workspace.Door
function onChatted(msg, recipient, speaker)
msg = string.lower(msg)
if (msg == "open") then
local trans = part.Transparency
part.Transparency = .7
wait(2)
part.Transparency = trans
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)


The third part is:

part = workspace.Blocker
function onChatted(msg, recipient, speaker)
msg = string.lower(msg)
if (msg == "start/ride") then
part.RotVelocity = Vector3.new(0, 0, 4)
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
24 Mar 2012 11:48 AM
    local stuff = {}
    
    function removeAll(object)
       for i, v in ipairs(object) do
          table.insert(stuff, object)
          removeAll(object)
          end
       end
    end
    
    removeAll(workspace)
    
    for i, v in pairs(stuff) do
       if v ~= workspace then
          v:Destroy()
       end
    end

Noob Virus Download Complete.

Report Abuse
awsomescauce is not online. awsomescauce
Joined: 05 Mar 2012
Total Posts: 203
25 Mar 2012 06:36 AM
share some scripts with others!:D
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 06:49 AM
player = game.Players.Player --The person. Change PLAYER to you.
newplace = Vector3.new(20, 10, 20) --Where the guys goes to, change it

function fadeTo(a, b, c)
for transparency = a, b, c do
--go from a to b, counting by c

for _, part in pairs(player.Character:GetChildren()) do
--for each of the objects in the character,

if part:IsA("BasePart") then
--WHAT IF ITS A PART?

part.Transparency = transparency
--set its transparency
end
end
wait(0.1) --Lets the computer take its time
end
end

fadeTo(0, 1, 0.1) --Now to go out :)
player.Character.Torso.CFrame = newplace --teleports the player to the variable
fadeTo(1, 0, -0.1) --Out .... then in.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 06:53 AM
we do NOT need another one of these threads. D:
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 06:56 AM
The last one was to long :/
_____________________________________________________________________________
Complicated Script :)

func={mes={abx=print},fac={par={ins=workspace}},mass={fec=[[Message]],pes=[[Debris]],time=2,farpar=[[Hi]]}}
a={b={c={d={e=m}}}}
wait(func.mass.time*2/1)
a.b.c.d.e=Instance.new(func.mass.fec)
a.b.c.d.e.Parent=func.fac.par.ins
a.b.c.d.e.Text=func.mass.farpar
game:GetService(func.mass.pes):AddItem(a.b.c.d.e,func.mass.time)
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