#need help with tweenservice or something

1 messages · Page 1 of 1 (latest)

cosmic light
#

this is a different scripting language ahsl but its just luau modified once again 🤦‍♂️

#

and this time the dev disabled getservice

#

so i cant use that

#

now i need help

#

im trying to get it to fade in from the right once i press f2

celest canopy
#

holy 200 lines

#

highlight the thing not working bro

#

like highlight the code

cosmic light
#

local TweenService = game.TweenService
local localplr = game.Players.LocalPlayer

-- Wait for PlayerGui
while not localplr or not localplr.PlayerGui do
task.wait()
localplr = game.Players.LocalPlayer
end

local panelRight = localplr.PlayerGui:WaitForChild("AHSL-Panel2")

local tweenInfo = TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)

local visible = panelRight.Visible
panelRight.BackgroundTransparency = visible and 0 or 1

local function fadeIn()
panelRight.Visible = true
local tween = TweenService:Create(panelRight, tweenInfo, {BackgroundTransparency = 0})
tween:Play()
tween.Completed:Wait()
visible = true
end

local function fadeOut()
local tween = TweenService:Create(panelRight, tweenInfo, {BackgroundTransparency = 1})
tween:Play()
tween.Completed:Wait()
panelRight.Visible = false
visible = false
end

BindingService.BindPress(Enum.KeyCode.F2, function()
if visible then
fadeOut()
else
fadeIn()
end
end)

#

thing is, this is a custom scripting language, similar to lua, and the help page even says go to roblox documentation
(which i tried)

hot steppe
brave radish
#

what the fuck is this

#

brother

#

this variable wont work

#

also why use a custom scripting language

#

seems a bit

#

useless

cosmic light
#

its in a game

#

the game lets you create a game inside a game

#

for example

#

it uses its own services

#

its not called tweenservice its called "Tween"

#

this is what i get when i run "print(Tween)

hot steppe
#

this was not what scripting help was made for

cosmic light
#

its still scripting correct?

#

its just another modified version of lua