Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
3

Why does roblox sometimes delete or add codes into my script?

Asked by 5 months ago

So , when I test my scripts usually its ok and normal but sometimes it adds a line or removes a line. The worst was that it deleted the whole script and I had to redo it.

local InRadians = math.rad(28)
local cos = math.cos(InRadians)
local t = game.Players.LocalPlayer.PlayerGui:WaitForChild()
local label = t.ScreenGui.TextLabel
t.Text = cos

This is the script I wrote (it doesnt work and i am trying to fix it)

When I run the script this happens

local InRadians = math.rad(28)
local cos = math.cos(InRadians)
local t = game.Players.LocalPlayer.PlayerGui:WaitForChild()
local label = t.ScreenGui.TextLabel
t.Text = cos
t.Text = cos -- It added a line automatically without me doing it

It happened a few times already so I just wanna know if anybody is experiencing this as well?

0
that's weird, could it be a plugin you have installed? i highly doubt it's roblox studio. riceburrito16 40 — 5mo
0
i have 4 plugins but i dont think that if its the plugin it could have been an accident cause my plugins are all for building and just nothing to do with scripting. also i dont use free models so it cant be free models fault right? RebornedSnoop 170 — 5mo

1 answer

Log in to vote
2
Answered by 5 months ago

Roblox Studio does not delete or add lines of code. It is highly likely someone who has access ro edit your game removed them.

0
Sorry what do you mean by "access ro edit" is that team create? If that is team create then its not possible as I work alone. RebornedSnoop 170 — 5mo
Ad

Answer this question