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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|