#Ray Cast

1 messages · Page 1 of 1 (latest)

tulip marsh
#

is there a way to give raycast a speed

primal sorrel
#

wdym

#

their instant

tulip marsh
#

i want it tohave a speed

primal sorrel
#

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

tulip marsh
#

but will it cause performance issue?

primal sorrel
#

you can do like 100 raycasts a second (i think) so you should be fine

tulip marsh
#

ok ty

rustic tapir
rustic tapir
#

theres no reason to set a speed for raycast

hollow dome
#

fr lol'

hollow dome
# rustic tapir ?

what do u think is better for Combat
HitBox Module

or normal Raycast ??

rustic tapir
hollow dome
hollow dome
rustic tapir
#

idk

#

i dont do hitboxes

hollow dome
rustic tapir
#

wht?

hollow dome
#
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

rustic tapir
#

make a new forum abt this

hollow dome
rustic tapir
#

u dont know how?

hollow dome
#

ive been a developer for almost 3 years and i dont know how to post in forum

rustic tapir
#

are u on mobile?

hollow dome
rustic tapir
hollow dome
rustic tapir
#

?

hollow dome
#

owh

rustic tapir
#

alr

hollow dome
#

i tho in roblox forum 💀

hollow dome