#Ray Cast
1 messages · Page 1 of 1 (latest)
i want it tohave a speed
if you want to slow it down for some reason you could do a short raycast and then a small delay and then another one from the first raycasts end point
but will it cause performance issue?
you can do like 100 raycasts a second (i think) so you should be fine
ok ty
why do u want it to have speed
?
theres no reason to set a speed for raycast
fr lol'
what do u think is better for Combat
HitBox Module
or normal Raycast ??
i dont work w hitboxes
so RayCast ??
or what do you use ?
can u tell me how to make a Sect or Guld system much Efficiently
wht?
guild
local DTS = game:GetService("DataStoraService")
local GS = DTS:GetDataStore("GuildStorage")
local currentkey = "Beta"
local module = {}
local function getguilds()
local sucess , data = pcall(function()
return GS:GetAsync(currentkey)
end)
if not sucess then
print("fialed to get data deu to unknown errors")
return nil
return data
end
local function saveguilds(guildstosve)
local success,err = pcall(function()
GS:SetAsync(currentkey,guildstosave)
end)
if not success then
print("failed to save data"
end
end
function module:GetGuildName(guildid)
local guilds = getguilds()
if guilds[guildid] then
return guild[guildi]
end
function module:CreateGuild(guildid, Name, creator)
local guilds = getguilds()
for id, guild in pairs(guilds) do
if guild.Name == Name then
return false, "name is allready taken"
end
end
guilds[guildid] = {
Name = Name,
Members = {[creator.Id] = "Leader"},
RequestedMembers = {}, -- well be conenig players the leder reqested to join
}
saveguilds(guilds)
end
function module:AddMember(guildid, playerid, requesterid)
local guilds = getguilds()
if not guilds[guildid] then return false, "Guild not found" end
if guild.Members[requesterid] ~= "Leader" then return "does not have permission to add a player" end
for id, guild in pairs(guilds) do
if guild.Members[playerid] then
return false, "Player already in a guild"
end
end
guild.RequestedMembers[playerid] = "Member"
saveguilds(guilds)
end
function module:RemoveMember(guildid,playerid,requesterid)
local guilds = getguilds()
if not guilds[guildid] then return false, "Guild not found" end
if guild.Members[requesterid] ~= "Leader" then return "does not have permission to add a player" end
guild.RequestedMembers[playerid] = nil
saveguilds(guilds)
end
function module:DestroyGuild(guildid,requesterid)
local guilds = getguilds()
if not guilds[guildid] then return false, "Guild not found" end
guilds[guildid] = nil
saveguilds(guilds)
end
return module
its kind of incomplete
make a new forum abt this
ye i dont know how to
u dont know how?
ye
ive been a developer for almost 3 years and i dont know how to post in forum
are u on mobile?
pc
#1020374354867007528 u can click newpost
theres no new post 😭
owh
alr
how do u post in roblox forum :