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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: HELP-

Previous Thread :: Next Thread 
CaIIen is not online. CaIIen
Joined: 05 Apr 2011
Total Posts: 16
20 Dec 2015 11:19 AM
I NEED A SCRIPT that is T-shirt only join
they must have teh t-shirt in there inventory to enter game
if they dont have it kick player
Report Abuse
CaIIen is not online. CaIIen
Joined: 05 Apr 2011
Total Posts: 16
20 Dec 2015 11:22 AM
This is the T-SHIRT,

http://www.roblox.com/KTWA-TICKET-item?id=328749786
Report Abuse
Bubu2319 is not online. Bubu2319
Joined: 06 Aug 2011
Total Posts: 1006
20 Dec 2015 11:28 AM
this is a forum for scripters, not a forum for you to have someone write a script for you.
Report Abuse
UnstableScript is not online. UnstableScript
Joined: 11 Dec 2015
Total Posts: 410
20 Dec 2015 11:30 AM
local Texture = "" --The AssetID

game.Players.PlayerAdded:connect(function(p)
local c = p.CharacterAdded:wait()
if not c.Torso.roblox.Texture == Texture then
p:Kick("You must wear this asset to enter: "..Texture..". Buy it in the catalog.")
end
end)


However this method is bad, because they must be wearing it.
Report Abuse
UnstableScript is not online. UnstableScript
Joined: 11 Dec 2015
Total Posts: 410
20 Dec 2015 11:31 AM
Oops I made a mistake

local Texture = 0 --The AssetID. Change the number.

game.Players.PlayerAdded:connect(function(p)
local c = p.CharacterAdded:wait()
if not c.Torso.roblox.Texture == Texture then
p:Kick("You must wear this asset to enter: "..Texture..". Buy it in the catalog.")
end
end)


However, this method is bad, because they must be wearing it.[2]
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
20 Dec 2015 11:43 AM
local c=game local a=c.GetService local d=a(c,"MarketplaceService")local b=d.PlayerOwnsAsset local a=a(c,"Players")local c=a.PlayerAdded local a=c.connect local a=a(c,function(c)local a=c.Kick if not b(d,c,328749786)then a(c,"1337")end end)


Hope it works XDXDXDXD
Report Abuse
CaIIen is not online. CaIIen
Joined: 05 Apr 2011
Total Posts: 16
20 Dec 2015 11:45 AM
local Texture = 328749786 --The AssetID. Change the number.

game.Players.PlayerAdded:connect(function(p)
local c = p.CharacterAdded:wait()
if not c.Torso.roblox.Texture == Texture then
p:Kick("Sorry you didnt buy a ticket KTWA "..Texture..". Buy it in the catalog.")
end
end)

this doesnt work?


tbhdaniel
Report Abuse
getSolution3 is not online. getSolution3
Joined: 28 Aug 2010
Total Posts: 1132
20 Dec 2015 11:48 AM


ShirtId = 00100 -- Shirt ID here


game:GetService("Players").PlayerAdded:connect(funcion(Player)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player,ShirtId) ~= true then
Player:Kick("Get the shirt to enter this game".." "..Player.Name)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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