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: Basic Scripting

Previous Thread :: Next Thread 
sapG is not online. sapG
Joined: 29 Jan 2011
Total Posts: 943
24 Nov 2011 06:30 PM
This forum was made for some basic scripting!

---Player entered script---
local BadgeID = 12312321 -->Put the badges ID there
function onEntered(player)
wait(1)
local a = game:GetService("BadgeService")
a:AwardBadge(player.userId,BadgeID)
end
game.Players.PlayerAdded:connect(onEntered)
---You met the creator script---
local BadgeID = 12312321 --Change to the Badges ID
function onEntered(player)
if player.Name == "YOURNAMEHERE" then --Insert your name here
local b = game.Players:GetChildren()
for i = 1, #b do
local a = game:GetService("BadgeService")
end
end
end
game.Players.PlayerAdded:connect(onEntered)
---Badge save---


local BadgeID = 1232112 -- Insert Badge Id Here
function onEntered(player)
if game:GetService("BadgeService"):UserHasBadge(player.userId,BadgeID) then
player.leaderstats.Tix.Value = 1000 --Change to what you want
player.leaderstats.Bux.Value = 1000 --Change to what you want
end
end
---Controllabe Camera--- (Make sure you put script into StarterPack)
repeat wait() until game.Workspace.CurrentCamera
local cam = game.Workspace.CurrentCamera
cam.CameraSubject = game.Workspace.Part -- make sure this is defined
---Glow Brick Script---
while true do
for i=1, 9, 1 do
-- Go up
script.Parent.Reflectance = i * .1
wait(.1)
end
for i=9, 1, -1 do
-- Go down
script.Parent.Reflectance = i * .1
wait(.1)
end
end
---Lava Script---
function onTouched(hit)
human = hit.Parent:FindFirstChild("Humanoid") -- returns "Humanoid" if exists, else returns nil
if human ~= nil then -- if the toucher is human, then
human:TakeDamage(human.MaxHealth) -- damage the human
end
end

script.Parent.Touched:connect(onTouched)
---Invisibilaty---
print("Invisibility hopper script loaded")

local enabled = true
local reloadTime = 4 -- Additional time to reload
local invisibilityTime = 8 -- Time the person will be invisible

function setCursor(mouse)
if enabled then
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
else
mouse.Icon = "rbxasset://textures\\ArrowFarCursor.png"
end
end

--Construct a number value to use later
local scriptTimeOut = Instance.new("NumberValue")
scriptTimeOut.Name = "InvisibilityTime"
scriptTimeOut.Value = invisibilityTime

function onButton1Down(mouse)
if enabled then
enabled = false
setCursor(mouse) -- Not ready anymore
playerScript = script.Parent.Fade:clone() -- Copy the fading script
scriptTimeOut:clone().Parent = playerScript
playerScript.Parent = game.Players.LocalPlayer.Character -- Place it in the player

wait(reloadTime + invisibilityTime) -- Wait for a proper reload time
enabled = true -- Ready again
end
setCursor(mouse) -- Set apropriate cursor
end

script.Parent.Selected:connect(function(mouse) -- When the weapon is selected, make the script recognize clicks
print("Invisibility selected")
setCursor(mouse) -- Make the mouse indicate readiness
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end)
---MORE WILL BE ADDED!---
Hoped I helped!
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Nov 2011 06:31 PM
s = "boon oftg"
print(s:reverse())

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
24 Nov 2011 06:32 PM
Lol'd.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
24 Nov 2011 06:33 PM
LOL swim
Report Abuse
sapG is not online. sapG
Joined: 29 Jan 2011
Total Posts: 943
24 Nov 2011 07:59 PM
=3
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
24 Nov 2011 08:14 PM
"This forum was made for some basic scripting!"

No, it was made for helping people learn to script by helping them resolve their problems so they can learn from their mistakes. Arbitrarily posting scripts (this thread) defeats the purpose of Scripting Helpers.

Get out.


----------
    ~ pwendu46 ~
Report Abuse
sapG is not online. sapG
Joined: 29 Jan 2011
Total Posts: 943
25 Nov 2011 11:32 AM
Shut up.
pwendu44.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
25 Nov 2011 11:51 AM
@sap Why?
Report Abuse
sapG is not online. sapG
Joined: 29 Jan 2011
Total Posts: 943
25 Nov 2011 11:55 AM
Cause hes trollen.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
25 Nov 2011 11:57 AM
trollen = dutch for 'to troll'.
You aren't dutch, therefore you have no riughts to talk dutch or you will have to talk dutch with me.

~Music lover Myrco (call me Myrco)
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
25 Nov 2011 11:58 AM
*rights

~Music lover Myrco (call me Myrco)
Report Abuse
sapG is not online. sapG
Joined: 29 Jan 2011
Total Posts: 943
25 Nov 2011 12:04 PM
Nooblet!
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
25 Nov 2011 12:27 PM
No I'm Myrco :D

~Myrco; Music lover, nederlands/dutch and a scripter
Report Abuse
sapG is not online. sapG
Joined: 29 Jan 2011
Total Posts: 943
25 Nov 2011 12:31 PM
...
Report Abuse
Paul13379001 is not online. Paul13379001
Joined: 06 Jun 2011
Total Posts: 1384
25 Nov 2011 12:31 PM
I think sap has every right to speak whatever language he wishes. Languages arent guarded by secret service.
Report Abuse
aaronzepeda33 is not online. aaronzepeda33
Joined: 26 Aug 2009
Total Posts: 964
25 Nov 2011 12:40 PM
But it is true what swimguy said. This forum wasn't made for free basic scripts.
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
25 Nov 2011 12:55 PM
well .. he is trying to help people .. at least maybe will help some people to use this instead of requesting :P
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