Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Only working in studio, not online?

Asked by
ABlLITY 10
8 years ago

local plr = game.Players.LocalPlayer

local char = plr.Character

animate = char:findFirstChild("Animate")

animate:Destroy()

local par = script and script.Parent or char

pcall(function()

    par.Pandas:Destroy()

end)

if script then

    script.Name = "Ryojin"

end

local m = Instance.new("Model",char)

m.Name = "Ryojin"

function weld(a,b,c,d)

    local w = Instance.new("Weld",a)



    w.Part0 = a



    w.Part1 = b



    w.C0 = c or CFrame.new()



    w.C1 = d or CFrame.new()



    return w

end

local part = Instance.new("Part")

part.Material = "SmoothPlastic"

part.TopSurface,part.BottomSurface = 0,0

part.FormFactor = "Custom"

part.Size = Vector3.new(.2,.2,.2)

part:BreakJoints()

part.TopSurface = "SmoothNoOutlines"

part.BottomSurface = "SmoothNoOutlines"

part.RightSurface = "SmoothNoOutlines"

part.LeftSurface = "SmoothNoOutlines"

part.CanCollide = false

do

    local function CFrameFromTopBack(at, top, back)



            local right = top:Cross(back)



            return CFrame.new(at.x, at.y, at.z,



                              right.x, top.x, back.x,



                              right.y, top.y, back.y,



                              right.z, top.z, back.z)



    end

1 answer

Log in to vote
0
Answered by
itsJooJoo 195
8 years ago

https://scriptinghelpers.org/blog/it-works-in-studio-but-not-online

Ad

Answer this question