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: UGH!!!!!

Previous Thread :: Next Thread 
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 03:20 PM
I'm making a list of global functions for my place. I have no ideas on what to make..

I have like 3:

Make a Small Message:

_G["MakeMessage"] = function(string, delay, whisperboolean, whisperedplayer)

h = Instance.new("Hint")

if whisperboolean = true then

if game.Players.FindFirstChild(whisperedplayer) then

p = game.Players:findFirstChild(whisperedplayer)

h.Parent = p

h.Text = string

wait(delay)

h:Remove()

elseif whisperboolean = false then

h.Parent = game.Workspace

h.Text = string

wait(delay)

h:Remove()

end

_________


Make a part:


_G["MakePart"] = function(sizex, sizey, sizez, color, shape, name)

part = Instance.new("Part",Workspace)

part.Name = name

part.Size = Vector3.new(sizex, sizey, sizez)

part.BrickColor = BrickColor.new(color)

part.Shape = BrickColor.new(shape)

end

______________


_G["Ban"] = function(player, reason, time)

m = Instance.new("Message",player)

banned = {}

m.Text = "You have been banned for "..reason

table.insert(banned, player.Name)

player:Remove()

delay(wait, table.remove(banned, player.Name))

added = game.Players.PlayerAdded:connect(function (p)
if banned[1] ~= nil then
if p.Name == banned[1] then
banned[1]:Remove()
else
print("Players wait time was too long or not the player!")
end
end
end)
end




I so bester den juu
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
15 Jan 2013 03:22 PM
I am working on something similer to this, but simply using non-defined functions e.g.

function Hi(hi)
hi = "Herp"
print(hi)
end

Hi()
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 03:22 PM
AKA these aren't really for my place but short cuts for my command bar.

I so bester den juu
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 03:23 PM
I see what you're doing main.

I so bester den juu
Report Abuse
misgav11 is not online. misgav11
Joined: 21 Apr 2011
Total Posts: 3418
15 Jan 2013 03:24 PM
1)Is it a LocalScripts? Because they cant use _G
2) i need to know whats wrong with it, and if there is an out put, tell me what it is.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 03:25 PM
I see a mess up on the ban..

delay(time,

Anyway..

any ideas?

Keep in mind these are shortcuts so people won't have to type everything out.

I so bester den juu
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 03:26 PM
At misgav:

Read the thread post.

Also, you can use global variables/functions..

Just can't access them through a normal script.

I so bester den juu
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 07:06 PM
Give me dem idears..
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
15 Jan 2013 07:27 PM
_G["findChildren"] = function (parent)

for i,v in pairs(parent:GetChildren()) do
print(v.Name)
end
end

idk... uh...

_G["makeCircle"] = function (diameter, consistency, height)

local circle = Instance.new("Model", Workspace)
circle.Name = "Circle"

for circle = 1, 360, consistency do
local part = Instance.new("Part", circle)
part.Size = Vector3.new(1,1,1)
part.Anchored = true
part.CFrame = CFrame.new(0, height, 0) * CFrame.Angles(0,math.rad(circle),0) * CFrame.new(0, 0, diameter)
end
end

idk whatever u want
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Jan 2013 07:31 PM
I like that circle one.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
15 Jan 2013 07:32 PM
yes indeed
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
15 Jan 2013 07:50 PM
This script really has no purpose...

I do what I want.


    _G["burnPart"] = function (part)

      local fire = Instance.new("Fire", part)
      fire.Size = 10
      fire.Heat = 10
      local smoke = Instance.new("Smoke", part)
      smoke.Color = Color3.new(0,0,0)

      wait(3)

      part.BrickColor = BrickColor.new("Black")

      wait(3)

      part:Destroy()

    end

Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
16 Jan 2013 07:43 AM
I got another one!

_G["Troll"] = function(player)
player.Character = workspace
end


I so bester den juu
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
16 Jan 2013 02:22 PM
Need help..


Making a guide:


_G["CreateGuide"] = function(numberofpages, title)
--How would I do the number of pages thingy without a for loop?
end

I so bester den juu
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
16 Jan 2013 02:24 PM
And I don't want to do a while loops..


if numberofpages = 10 then

i = 10

while i > 0 do
wait()
frame = Instance.new("Frame")
frame.Name = "Frame"..i
i = i - 1
end

I don't want this to be done.

I want something simple..


I so bester den juu
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
16 Jan 2013 03:17 PM
--You may only pick 1 ability else the script will error.

_G["CreateSuit"] = function(maincolor, secondarycolor, coreboolean, coreshape, corecolor, capeboolean, capecolor, shoulderpadboolean, shoudlderpadcolor, kneedpadboolean, kneedpadcolor, abilityFire, abilityIce, abilityEarth, abilityAir)

function checkcore()
return coreboolean
end

function checkcape()
return capeboolean
end

function checkpadS()
return shoulderpadboolean
end

function checkpadK()
return kneepadboolean
end

function checkability()
if abilityFire ~= false then
return fire
elseif abilityIce ~= false then
return ice
elseif abilityEarth ~= false then
return earth
elseif abilityAir ~= false then
return air
end
end

mc = BrickColor.new(maincolor)
sc = BrickColor.new(secondarycolor)

--Not finished working on making arms and legs and cape and colors and stuffas.

end

I so bester den juu
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