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
 

THIS SCRIPT WONT WORK!

Previous Thread :: Next Thread 
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 07:43 PM
I WILL EXPLODE IF I DON'T FIX IT, please help

Please fix:

group = 930988 -- change to group ID
deb = true
function Check(p)
if p ~= nil then
deb = false
local human = p.Parent
if human ~= nil then
local player = game.Players:GetPlayerFromCharacter(human)
if player ~= nil then
if player:IsInGroup(group) then
player.TeamColor = BrickColor.new("Bright blue")
end
end
end
end
end
script.Parent.Touched:connect(Check)

Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 07:44 PM
BUMP OF RAGE!

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
22 Aug 2013 07:45 PM
local Group = 930988

function Check(Hit)
local Player = Game.Players:GetPlayerFromCharacter(Hit.Parent)
if Player and Player:IsInGroup(Group) then
Player.Neutral = false
Player.TeamColor = BrickColor.new("Bright blue")
end
end

script.Parent.Touched:connect(Check)
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 07:50 PM
I put this in a Part, and it no work!

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 07:52 PM
I put in local script?

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 07:54 PM
Group = 930988
Enabled = false
script.Parent.Touched:connect(function(hit)
local player = GetPlayerFromCharacter(hit.Parent)
if player and player:IsInGroup(Group) and not enabled then
enabled = true
player.TeamColor = BrickColor.new("Bright blue")
end
end)

~Make the simple, amazing~
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
22 Aug 2013 07:55 PM
It should be a normal script.
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 07:56 PM
Correction to my script:

Group = 930988
Enabled = false
script.Parent.Touched:connect(function(hit)
local player = GetPlayerFromCharacter(hit.Parent)
if player and player:IsInGroup(Group) and not enabled then
enabled = true
player.TeamColor = BrickColor.new("Bright blue")
wait()
end
enabled = false
end)

~Make the simple, amazing~
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 07:56 PM
I put in part, right?

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 07:57 PM
GAHHH I didnt capitalize enabled.. Here the final script xD
Group = 930988
enabled = false
script.Parent.Touched:connect(function(hit)
local player = GetPlayerFromCharacter(hit.Parent)
if player and player:IsInGroup(Group) and not enabled then
enabled = true
player.TeamColor = BrickColor.new("Bright blue")
wait()
end
enabled = false
end)

~Make the simple, amazing~
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 07:58 PM
Create a script paste that^^^^ in it and put it in a part.

~Make the simple, amazing~
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 08:00 PM
Still doesn't work, I put it in a spawn part.

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 08:03 PM
No work ):

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 08:03 PM
You can't test it in studio by playing solo. Upload the place and then test it online. Player in solo does not belong to any groups.

~Make the simple, amazing~
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 08:04 PM
I did, I played it online... Still doesn't work

-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 08:07 PM
Other than that just make sure you have the group id number right, make sure the team color is "Bright blue" and not "Really blue."

~Make the simple, amazing~
Report Abuse
LordGando is not online. LordGando
Joined: 05 Jul 2011
Total Posts: 6723
22 Aug 2013 08:15 PM
Still not working q.q
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
22 Aug 2013 09:16 PM
The script that I gave you looks fine to me, so it must be something in your place messing it up.

~Make the simple, amazing~
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