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: Would this work?

Previous Thread :: Next Thread 
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 09:31 PM
It's supposed to take all vip's hats and remove them. Then, it's supposed to replace them with domino crown, dominus empyreus, and domino crown.

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.PlayerAdded:connect(function(plyr)
if v == plyr.Name then
local p = plyr:GetChildren()
for i = 1, #p do
if p[i].ClassName == "Hat" then
p[i]:remove()
end
end)
end
end
local x = game:GetService("InsertService"):LoadAsset(19398258) --This is swordpack
for i,c in pairs(x:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local z = game:GetService("InsertService"):LoadAsset(21070012) -- this is dominus empyreus
for i,c in pairs(z:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local y = game:GetService("InsertService"):LoadAsset(1031429) --and this is domino crown.
for i,c in pairs(y:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 09:34 PM
oops meant swordpack, dominus empyreus and domino crown.
Report Abuse
IL0LD is not online. IL0LD
Joined: 04 Sep 2011
Total Posts: 37
28 Oct 2011 09:51 PM
Should
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 09:58 PM
@Ilol. Are you sure you know what you're saying?
Report Abuse
IL0LD is not online. IL0LD
Joined: 04 Sep 2011
Total Posts: 37
28 Oct 2011 09:59 PM
No
But why dont you test it?
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 10:11 PM
cant im on my iphone.
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 10:18 PM
also this should do the same thing whenever the player respawns:

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.PlayerAdded:connect(function(plyr)
if v == plyr.Name then
local p = plyr:GetChildren()
for i = 1, #p do
if p[i].ClassName == "Hat" then
p[i]:remove()
end
end)
end
end
local x = game:GetService("InsertService"):LoadAsset(19398258) --This is swordpack
for i,c in pairs(x:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local z = game:GetService("InsertService"):LoadAsset(21070012) -- this is dominus empyreus
for i,c in pairs(z:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local y = game:GetService("InsertService"):LoadAsset(1031429) --and this is domino crown.
for i,c in pairs(y:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end

It's supposed to take all vip's hats and remove them. Then, it's supposed to replace them with domino crown, dominus empyreus, and domino crown.

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.CharacterAdded:connect(function(plyr)
if v == plyr.Name then
local p = plyr:GetChildren()
for i = 1, #p do
if p[i].ClassName == "Hat" then
p[i]:remove()
end
end)
end
end
local x = game:GetService("InsertService"):LoadAsset(19398258) --This is swordpack
for i,c in pairs(x:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local z = game:GetService("InsertService"):LoadAsset(21070012) -- this is dominus empyreus
for i,c in pairs(z:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local y = game:GetService("InsertService"):LoadAsset(1031429) --and this is domino crown.
for i,c in pairs(y:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 10:20 PM
woah mega mess up.

It's supposed to take all vip's hats and remove them. Then, it's supposed to replace them with domino crown, dominus empyreus, and domino crown.

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.CharacterAdded:connect(function(plyr)
if v == plyr.Name then
local p = plyr:GetChildren()
for i = 1, #p do
if p[i].ClassName == "Hat" then
p[i]:remove()
end
end)
end
end
local x = game:GetService("InsertService"):LoadAsset(19398258) --This is swordpack
for i,c in pairs(x:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local z = game:GetService("InsertService"):LoadAsset(21070012) -- this is dominus empyreus
for i,c in pairs(z:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
local y = game:GetService("InsertService"):LoadAsset(1031429) --and this is domino crown.
for i,c in pairs(y:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end
end
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
28 Oct 2011 10:21 PM
Actually, no it wouldn't. There are errors, and it could be shortened and cleaned up a lot.
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 10:41 PM
could you post the better version of it?
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
28 Oct 2011 11:27 PM
please reply
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
29 Oct 2011 10:37 AM
Bump
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Oct 2011 12:52 PM
I could, but it would take some time. I need to know more details about it to fix it for you, IF I decide to.
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
29 Oct 2011 03:06 PM
It is supposed to remove all of the vip's hats and replace them with emyreus, domino crown, and swordpack on entering and respawning.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Oct 2011 08:19 PM
Ah. I see. Too lazy to fix though, and it isn't mine so....don't know what to tell ya.
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
29 Oct 2011 08:25 PM
If ur not gonna help, please leave, as that's considered spam.
Report Abuse
willkillu is not online. willkillu
Joined: 18 Feb 2010
Total Posts: 1187
29 Oct 2011 08:27 PM
Make the script remove the characters hat
make it clone the hat from lighting
define the handle positional inputs on the hat ( not scripted)
tooo lazy to make one sorry im tired
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Oct 2011 08:28 PM
^

Same.
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
29 Oct 2011 08:53 PM
how about,

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.CharacterAdded:connect(function(plyr)
for i, v in pairs(Vip) do
if v == plyr.Name then
local p = plyr:GetChildren()
for i = 1, #p do
if p[i].ClassName == "Hat" then
p[i]:remove()
local x = game:GetService("InsertService"):LoadAsset(19398258)
for i,c in pairs(x:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
local z = game:GetService("InsertService"):LoadAsset(21070012)
for i,c in pairs(z:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
local y = game:GetService("InsertService"):LoadAsset(1031429)
for i,c in pairs(y:GetChildren()) do
if c:IsA("Hat") then
c.Parent = plyr
end)
end
end
end
end
end
end
end
end
end
end -- too many ends?
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Oct 2011 09:12 PM
This really needs cleaning up. Would you be willing to pitch in a little donation if I made this script for you?
Report Abuse
willkillu is not online. willkillu
Joined: 18 Feb 2010
Total Posts: 1187
29 Oct 2011 09:14 PM
Lol thats it bud lure him in XD
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Oct 2011 09:25 PM
I'm not luring anyone, I am just tired of working for free and want something back from the community.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Oct 2011 11:03 PM
Try this. Make sure to publish it to test it.



VipList = {"VenomGuardian", "WindGuardian", "techepicface","Player"}
VipHatIDs = {19398258, 21070012, 1031429}


function IsVip(Player)
for i, VipName in ipairs(VipList) do
if string.lower(Player.Name) == string.lower(VipName) then
return true
end
return false
end
end


VipHatContainer = Instance.new("Model",game.Lighting)
VipHatContainer.Name = "VipHatContainer"
for i, ID in ipairs(VipHatIDs) do
local model = game:GetService("InsertService"):LoadAsset(ID)
if(model:IsA("Model")) then
local tab = model
for i, v in pairs(tab:GetChildren()) do
if v:IsA("Hat") then
v.Parent = VipHatContainer
end
end
end
end

game:GetService("Players").PlayerAdded:connect(function(newPlyr)
if IsVip(newPlyr) then
char = newPlyr.Character
plyr = newPlyr
msg = Instance.new("Message",plyr.PlayerGui)
msg.Name = "VipThankYou"
msg.Text = "Thank you for buying VIP."
plyr.CharacterAdded:connect(function(character)
for i, v in pairs(c:GetChildren()) do
if v:IsA("Hat") then v:remove() end
end
for i, Hat in pairs(VipHatContainer:GetChildren()) do
if Hat:IsA("Hat") then Hat:clone().Parent = c end
end
end)
wait(3)
msg:remove()
end
end)
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
30 Oct 2011 02:58 PM
It doesn't work... how about this?

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.CharacterAdded:connect(function(plyr)
for i, v in pairs(Vip)
if v == plyr.Name then
local a = plyr:GetChildren()
for i = 1, #a do
if c[i].ClassName == "Hat" then
c[i]:remove()
local b = game.Lighting.HatPack:GetChildren()
local c =b:clone()
c.Parent = plyr.Backpack
end)
end
end
end
end
Report Abuse
VenomGuardian is not online. VenomGuardian
Joined: 14 Jul 2011
Total Posts: 174
30 Oct 2011 03:01 PM
oops messed up.

Vip = {"VenomGuardian", "WindGuardian", "techepicface"}

game.Players.CharacterAdded:connect(function(plyr)
for i, v in pairs(Vip)
if v == plyr.Name then
local a = plyr:GetChildren()
for i = 1, #a do
if a[i].ClassName == "Hat" then
a[i]:remove()
local b = game.Lighting.HatPack:GetChildren()
local c =b:clone()
c.Parent = plyr.Backpack
end)
end
end
end
end
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