#Proximity Prompt

1 messages · Page 1 of 1 (latest)

lyric bone
#

I've placed a script inside a proximity prompt with this code and it doesn't work somehow

languid yewBOT
#

studio** You are now Level 2! **studio

lyric bone
#

like it doesn't print anything when triggered

trail oyster
#

show explorer?

gloomy mauve
#

is it directly parented to the prompt?

trail oyster
#

also is it a script cuz localscript wont work

lyric bone
lyric bone
trail oyster
#

can u show explorer just to be sure

trail oyster
#

is the part in workspace?

lyric bone
#

yes

strange ocean
#

use

#

function(plr)

#

just player

trail oyster
#

:Player doesnt change anything

#

thats just to type check

lyric bone
#

does the properties change anything?

trail oyster
#

Show the properties of the proximity

#

ill get on studio rq and try to get it working for me

lyric bone
#

the part's properties are the default

#

just changed the anchored to true

trail oyster
#

well it worked for me lol

strange ocean
#

yea weird

trail oyster
strange ocean
#

it should work

trail oyster
#

Have you changed the camera subject somewhere

lyric bone
trail oyster
#

its just what the camera rotates around but if you dont know its fine

#

uhh

#

ill copy ur proximity settings

lyric bone
#

I also tried uninstalling roblox studio

#

still doesn't work

#

I'll see if it works in another place

trail oyster
#

yep still works for me even with your proximity prompt settings

#

it must be another script doing something

gloomy mauve
#

try waiting for the part to load?

lyric bone
#

nothing else

strange ocean
#

weird

languid yewBOT
#

studio** You are now Level 8! **studio

trail oyster
#

Try a different studio place and see if it works in there

strange ocean
#

check if the script runs

#

add print before

lyric bone
strange ocean
#

show ur server script

#

in service

lyric bone
strange ocean
#

but it shouldnt disturb that script its craxy

lyric bone
#

Ill just disable it and see if it works

trail oyster
#

alr

strange ocean
#

yea try

#

works?

crude mango
#

is your server script delete every scripts inside the workspace?

strange ocean
#

u can add print"(works") before ur proximity prompt script so see if it works

#

if it doesnt print anything

#

ur server script is the main cause then

lyric bone
#

yeah the serverscript script is the cause

trail oyster
#

Hmm

#

Which part of it though

crude mango
#

Can I see?

lyric bone
#

I deleted a data saving section and it now works?

trail oyster
#

Thats really weird lol

lyric bone
trail oyster
#

can u send it as this

lyric bone
#

Plrs.PlayerAdded:Connect(function(Plr)
Create("Folder", Plr, "leaderstats")
local l = Plr:WaitForChild("leaderstats")
Create("IntValue", l, "Cash")
local c = l:WaitForChild("Cash")

local success, errormsg = pcall(function()
    local Data = DS:GetAsync(Plr.UserId)
    if Data then
        c.Value = Data[1]
    else
        c.Value = 50
    end
end)

task.wait(1)
for i, v in Map:FindFirstChild("Bases"):GetChildren() do
    if v:FindFirstChild("Owner") and v.Owner.Value == "None" then
        v.Owner.Value = Plr.Name
        task.wait(1)
        local char = Plr.Character or Plr.CharacterAdded:Wait()
        char.HumanoidRootPart.Position = v.Floor.Position + Vector3.new(0,2,0)
        break
    end
end

Plr.CharacterAdded:Connect(function(char)
    for i, v in Map:FindFirstChild("Bases"):GetChildren() do
        if v:FindFirstChild("Owner") and v.Owner.Value == tostring(Plr.Name) then
            char.HumanoidRootPart.Position = v.Floor.Position + Vector3.new(0,2,0)
            break
        end
    end
end)

end)

function Save(Plr:Player)
local success, errormsg = pcall(function()
local l:Folder = Plr:WaitForChild("leaderstats")

    DS:SetAsync(Plr.UserId, {
        l.Cash.Value
    })
end)

end

Plrs.PlayerRemoving:Connect(Save)
game:BindToClose(function()
for _,plr:Player in Plrs:GetPlayers() do
Save(plr)
end
end)

#

that?

trail oyster
#

its probably the

char.HumanoidRootPart.Position = v.Floor.Position + Vector3.new(0,2,0)

line

#

i dont see anything else that could cause it lol

lyric bone
#

ok Ill try it

#

nope

lyric bone
#

but then how do i teleport the player 😭

crude mango
#

teleport the model?

lyric bone
#

pivoto?

crude mango
#

yeah

lyric bone
#

ok it works now