This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for _,v in pairs(game.Workspace.Grid:GetChildren()) do | |
v.ClickDetector.MouseClick:Connect(function(player) | |
if v:GetAttribute("Occupied") == "YES" then | |
local BuildingToUpgrade | |
for _,building in pairs(game.Workspace.Buildings:GetChildren()) do | |
if tonumber(building:GetAttribute("CorrespondingGridNumber")) == tonumber(v.Name) then | |
print("Corresponding building found") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local SoundService = game:GetService("SoundService") | |
local function destroyv(player,v) | |
if v:FindFirstChild("SelectionBox") then | |
v:FindFirstChildOfClass("SelectionBox"):Destroy() | |
end | |
if v:FindFirstChild(tostring(player.TempVal.SelectedObject.Value)) then | |
v:FindFirstChild(tostring(player.TempVal.SelectedObject.Value)):Destroy() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ToolFolder = game.ReplicatedStorage.Tools | |
local Template = script.Template | |
local player = game.Players.LocalPlayer | |
local PageIndex = 1 | |
local Pages = { | |
[1] = "Primary", | |
[2] = "Secondary", | |
[3] = "Melee", | |
[4] = "Misc" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local rStorage = game:GetService("ReplicatedStorage") | |
local rEvents = rStorage:WaitForChild("RemoteEvents") | |
local plr = game.Players.LocalPlayer | |
rEvents.HidePlayers.OnClientEvent:Connect(function() | |
for i,v in pairs(game.Players:GetChildren()) do | |
if v.Name ~= plr.Name then | |
local char = workspace:WaitForChild(v.Name) | |
for i,part in pairs(char:GetDescendants()) do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local tool = script.Parent | |
local idleAnim = script:WaitForChild("Idle") | |
local idleAnimTrack | |
local swingAnim = script:WaitForChild("Swing") | |
local swingAnimTrack | |
local count = 1 | |
local slashSound = script:WaitForChild("SlashSound") | |
local sheathSound = script:WaitForChild("SheathSound") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local gui = script.Parent | |
local text = gui.TextBackground.Text | |
local op1 = gui.TextBackground.Option1 | |
local op2 = gui.TextBackground.Option2 | |
local distanceToUI = 7 | |
local playerd = game.Players.LocalPlayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local myData = game:GetService("DataStoreService"):GetDataStore("yeah") | |
game.Players.PlayerAdded:Connect(function(plr) | |
local ChickensOwned = Instance.new("Folder", plr) | |
ChickensOwned.Name = "ChickensOwned" | |
pcall(function() | |
local data = myData:GetAsync(plr.UserId) | |
for _,v in pairs(data) do | |
local chicken = Instance.new("StringValue", ChickensOwned) | |
chicken.Name = "Chicken" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local myData = game:GetService("DataStoreService"):GetDataStore("CodezStore") | |
game.Players.PlayerAdded:Connect(function(plr) | |
local StagesOwned = Instance.new("Folder", plr) | |
StagesOwned.Name = "StagesOwned" | |
pcall(function() | |
local data = myData:GetAsync(plr.UserId) | |
for _, v in pairs(data) do | |
local newStage = Instance.new("BoolValue", plr.StagesOwned) | |
newStage.Name = v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local plr = game.Players.LocalPlayer | |
local cam = workspace.CurrentCamera | |
local TS = game:GetService("TweenService") | |
local arenaInstructions = {"Welcome to the Wide Arena!", "Your chickens will battle against everybody else's Chicken!", "The winner will win a prize of 500 Coins!", "May the best Chicken win!"} | |
local impossible = false | |
local function cameraShake() | |
for i = 1, 20 do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ProximityPromptService = game:GetService("ProximityPromptService") | |
local function onPromptTriggered(promptObject, player) | |
end | |
local function onPromptHoldBegan(promptObject, player) | |
end |
NewerOlder