Every time I wanted to test out my game it simply just stops at 33%, i'm not sure if its my scripts causing the studio to bugging out.
#Script1_BanService
--start of script
local sservice = game.ServerScriptService
if script.Parent ~= sservice then
script.Parent = game.ServerScriptService
end
--wait() can screw banservice check
local Bstat = game:GetService("DataStoreService"):GetDataStore("BanService_1")
local Wstat = game:GetService("DataStoreService"):GetDataStore("BanService_1")
local Rstat = game:GetService("DataStoreService"):GetDataStore("BanService_1")
--create ui message when ban/warning is true
--[[
local ReasonMessageValue = Instance.new("StringValue")--finish this man
local storedDatas = Instance.new("Folder")
storedDatas.Parent = game.ServerScriptService
ReasonMessageValue.Parent = storedDatas
ReasonMessageValue.Value = "nil"
ReasonMessageValue.Name = "Value"
]]-- Waste of time, idea discarded
--function sendval()
--end
--function sendtoui()
--end
game.Players.PlayerAdded:connect(function(player)
local Banned = "user_" ..player.userId
local Warning,Reason = "user_" ..player.userId
if Bstat:GetAsync(Banned) == 1 then
ReasonMessageValue.Text = ReasonMessageValue
kick()
end
end)

2 comments
What do you mean by, "It stops at 33%"? Nothing here seems like it would cause issues with your game itself or conflict with it in any way - and even if it did you could just pcall it.
You will get an error: 'ReasonMessageValue a nil value' because you commented the variable that defines it. You will also get a error for kick() because there are no functions named 'kick'. You can kick a player like this: player:Kick("reason in string"). Make sure you have autosave enabled so when it freezes you can restart studio and open the auto saved file.